Class WebSearchToolResultBlock
-
- All Implemented Interfaces:
public final class WebSearchToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWebSearchToolResultBlock.BuilderA builder for WebSearchToolResultBlock.
public final classWebSearchToolResultBlock.CallerTool invocation directly from the model.
-
Method Summary
Modifier and Type Method Description final WebSearchToolResultBlockParamtoParam()final WebSearchToolResultBlock.Callercaller()Tool invocation directly from the model. final WebSearchToolResultBlockContentcontent()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_search_tool_result")final JsonField<WebSearchToolResultBlock.Caller>_caller()Returns the raw JSON value of caller. final JsonField<WebSearchToolResultBlockContent>_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 WebSearchToolResultBlock.BuildertoBuilder()final WebSearchToolResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static WebSearchToolResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of WebSearchToolResultBlock. -
-
Method Detail
-
toParam
final WebSearchToolResultBlockParam toParam()
-
caller
final WebSearchToolResultBlock.Caller caller()
Tool invocation directly from the model.
-
content
final WebSearchToolResultBlockContent content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("web_search_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<WebSearchToolResultBlock.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<WebSearchToolResultBlockContent> _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 WebSearchToolResultBlock.Builder toBuilder()
-
validate
final WebSearchToolResultBlock validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static WebSearchToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of WebSearchToolResultBlock.
The following fields are required:
.caller() .content() .toolUseId()
-
-
-
-