Class WebFetchToolResultBlock
-
- All Implemented Interfaces:
public final class WebFetchToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebFetchToolResultBlock.BuilderA builder for WebFetchToolResultBlock.
public final classWebFetchToolResultBlock.CallerTool invocation directly from the model.
public final classWebFetchToolResultBlock.Content
-
Method Summary
Modifier and Type Method Description final WebFetchToolResultBlockParamtoParam()final WebFetchToolResultBlock.Callercaller()Tool invocation directly from the model. final WebFetchToolResultBlock.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 JsonField<WebFetchToolResultBlock.Caller>_caller()Returns the raw JSON value of caller. final JsonField<WebFetchToolResultBlock.Content>_content()Returns the raw JSON value of content. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final Map<String, JsonValue>_additionalProperties()final WebFetchToolResultBlock.BuildertoBuilder()final WebFetchToolResultBlockvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebFetchToolResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of WebFetchToolResultBlock. -
-
Method Detail
-
toParam
final WebFetchToolResultBlockParam toParam()
-
caller
final WebFetchToolResultBlock.Caller caller()
Tool invocation directly from the model.
-
content
final WebFetchToolResultBlock.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).
-
_caller
final JsonField<WebFetchToolResultBlock.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_content
final JsonField<WebFetchToolResultBlock.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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final WebFetchToolResultBlock.Builder toBuilder()
-
validate
final WebFetchToolResultBlock validate()
-
builder
final static WebFetchToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of WebFetchToolResultBlock.
The following fields are required:
.caller() .content() .toolUseId()
-
-
-
-