Package com.anthropic.models.messages
Class ToolSearchToolResultBlock
-
- All Implemented Interfaces:
public final class ToolSearchToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classToolSearchToolResultBlock.BuilderA builder for ToolSearchToolResultBlock.
public final classToolSearchToolResultBlock.Content
-
Method Summary
Modifier and Type Method Description final ToolSearchToolResultBlockParamtoParam()final ToolSearchToolResultBlock.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("tool_search_tool_result")final JsonField<ToolSearchToolResultBlock.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 ToolSearchToolResultBlock.BuildertoBuilder()final ToolSearchToolResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ToolSearchToolResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of ToolSearchToolResultBlock. -
-
Method Detail
-
toParam
final ToolSearchToolResultBlockParam toParam()
-
content
final ToolSearchToolResultBlock.Content content()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tool_search_tool_result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_content
final JsonField<ToolSearchToolResultBlock.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 ToolSearchToolResultBlock.Builder toBuilder()
-
validate
final ToolSearchToolResultBlock 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 ToolSearchToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of ToolSearchToolResultBlock.
The following fields are required:
.content() .toolUseId()
-
-
-
-