Class WebFetchToolResultBlockParam
-
- All Implemented Interfaces:
public final class WebFetchToolResultBlockParam
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebFetchToolResultBlockParam.BuilderA builder for WebFetchToolResultBlockParam.
public final classWebFetchToolResultBlockParam.Contentpublic final classWebFetchToolResultBlockParam.CallerTool invocation directly from the model.
-
Method Summary
Modifier and Type Method Description final WebFetchToolResultBlockParam.Contentcontent()final StringtoolUseId()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("web_fetch_tool_result")final Optional<CacheControlEphemeral>cacheControl()Create a cache control breakpoint at this content block. final Optional<WebFetchToolResultBlockParam.Caller>caller()Tool invocation directly from the model. final JsonField<WebFetchToolResultBlockParam.Content>_content()Returns the raw JSON value of content. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final JsonField<CacheControlEphemeral>_cacheControl()Returns the raw JSON value of cacheControl. final JsonField<WebFetchToolResultBlockParam.Caller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final WebFetchToolResultBlockParam.BuildertoBuilder()final WebFetchToolResultBlockParamvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebFetchToolResultBlockParam.Builderbuilder()Returns a mutable builder for constructing an instance of WebFetchToolResultBlockParam. -
-
Method Detail
-
content
final WebFetchToolResultBlockParam.Content content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("web_fetch_tool_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
cacheControl
final Optional<CacheControlEphemeral> cacheControl()
Create a cache control breakpoint at this content block.
-
caller
final Optional<WebFetchToolResultBlockParam.Caller> caller()
Tool invocation directly from the model.
-
_content
final JsonField<WebFetchToolResultBlockParam.Content> _content()
Returns the raw JSON value of content.
Unlike content, this method doesn't throw if the JSON field has an unexpected type.
-
_toolUseId
final JsonField<String> _toolUseId()
Returns the raw JSON value of toolUseId.
Unlike toolUseId, this method doesn't throw if the JSON field has an unexpected type.
-
_cacheControl
final JsonField<CacheControlEphemeral> _cacheControl()
Returns the raw JSON value of cacheControl.
Unlike cacheControl, this method doesn't throw if the JSON field has an unexpected type.
-
_caller
final JsonField<WebFetchToolResultBlockParam.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebFetchToolResultBlockParam.Builder toBuilder()
-
validate
final WebFetchToolResultBlockParam validate()
-
builder
final static WebFetchToolResultBlockParam.Builder builder()
Returns a mutable builder for constructing an instance of WebFetchToolResultBlockParam.
The following fields are required:
.content() .toolUseId()
-
-
-
-