Class BetaWebFetchToolResultBlock
-
- All Implemented Interfaces:
public final class BetaWebFetchToolResultBlock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaWebFetchToolResultBlock.BuilderA builder for BetaWebFetchToolResultBlock.
public final classBetaWebFetchToolResultBlock.Contentpublic final classBetaWebFetchToolResultBlock.CallerTool invocation directly from the model.
-
Method Summary
-
-
Method Detail
-
toParam
final BetaWebFetchToolResultBlockParam toParam()
-
content
final BetaWebFetchToolResultBlock.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 Optional<BetaWebFetchToolResultBlock.Caller> caller()
Tool invocation directly from the model.
-
_content
final JsonField<BetaWebFetchToolResultBlock.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.
-
_caller
final JsonField<BetaWebFetchToolResultBlock.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 BetaWebFetchToolResultBlock.Builder toBuilder()
-
validate
final BetaWebFetchToolResultBlock validate()
-
builder
final static BetaWebFetchToolResultBlock.Builder builder()
Returns a mutable builder for constructing an instance of BetaWebFetchToolResultBlock.
The following fields are required:
.content() .toolUseId()
-
-
-
-