Class BetaWebSearchToolResultBlock
-
- All Implemented Interfaces:
public final class BetaWebSearchToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebSearchToolResultBlock.BuilderA builder for BetaWebSearchToolResultBlock.
public final classBetaWebSearchToolResultBlock.CallerTool invocation directly from the model.
-
Method Summary
Modifier and Type Method Description final BetaWebSearchToolResultBlockParamtoParam()final BetaWebSearchToolResultBlockContentcontent()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 Optional<BetaWebSearchToolResultBlock.Caller>caller()Tool invocation directly from the model. final JsonField<BetaWebSearchToolResultBlockContent>_content()Returns the raw JSON value of content. final JsonField<String>_toolUseId()Returns the raw JSON value of toolUseId. final JsonField<BetaWebSearchToolResultBlock.Caller>_caller()Returns the raw JSON value of caller. final Map<String, JsonValue>_additionalProperties()final BetaWebSearchToolResultBlock.BuildertoBuilder()final BetaWebSearchToolResultBlockvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaWebSearchToolResultBlock.Builderbuilder()Returns a mutable builder for constructing an instance of BetaWebSearchToolResultBlock. -
-
Method Detail
-
toParam
final BetaWebSearchToolResultBlockParam toParam()
-
content
final BetaWebSearchToolResultBlockContent 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 Optional<BetaWebSearchToolResultBlock.Caller> caller()
Tool invocation directly from the model.
-
_content
final JsonField<BetaWebSearchToolResultBlockContent> _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.
-
_caller
final JsonField<BetaWebSearchToolResultBlock.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 BetaWebSearchToolResultBlock.Builder toBuilder()
-
validate
final BetaWebSearchToolResultBlock 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 BetaWebSearchToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebSearchToolResultBlock.
The following fields are required:
.content() .toolUseId()
-
-
-
-