Beta
ModelsExpand Collapse
class BetaApiError:
class BetaAuthenticationError:
class BetaBillingError:
class BetaError: A class that can be one of several variants.union
class BetaInvalidRequestError:
class BetaAuthenticationError:
class BetaBillingError:
class BetaPermissionError:
class BetaNotFoundError:
class BetaRateLimitError:
class BetaGatewayTimeoutError:
class BetaApiError:
class BetaOverloadedError:
class BetaErrorResponse:
required BetaError Error
class BetaInvalidRequestError:
class BetaAuthenticationError:
class BetaBillingError:
class BetaPermissionError:
class BetaNotFoundError:
class BetaRateLimitError:
class BetaGatewayTimeoutError:
class BetaApiError:
class BetaOverloadedError:
class BetaGatewayTimeoutError:
class BetaInvalidRequestError:
class BetaNotFoundError:
class BetaOverloadedError:
class BetaPermissionError:
class BetaRateLimitError:
BetaModels
List Models
Get a Model
ModelsExpand Collapse
class BetaModelInfo:
Unique model identifier.
RFC 3339 datetime string representing the time at which the model was released. May be set to an epoch value if the release date is unknown.
A human-readable name for the model.
JsonElement Type "model"constantObject type.
Object type.
For Models, this is always "model".
BetaMessages
Create a Message
Count tokens in a Message
ModelsExpand Collapse
class BetaAllThinkingTurns:
class BetaBase64ImageSource:
required MediaType MediaType
class BetaBase64PdfSource:
class BetaBashCodeExecutionOutputBlock:
class BetaBashCodeExecutionOutputBlockParam:
class BetaBashCodeExecutionResultBlock:
required IReadOnlyList<BetaBashCodeExecutionOutputBlock> Content
class BetaBashCodeExecutionResultBlockParam:
required IReadOnlyList<BetaBashCodeExecutionOutputBlockParam> Content
class BetaBashCodeExecutionToolResultBlock:
required Content Content
class BetaBashCodeExecutionToolResultError:
required ErrorCode ErrorCode
class BetaBashCodeExecutionResultBlock:
required IReadOnlyList<BetaBashCodeExecutionOutputBlock> Content
class BetaBashCodeExecutionToolResultBlockParam:
required Content Content
class BetaBashCodeExecutionToolResultErrorParam:
required ErrorCode ErrorCode
class BetaBashCodeExecutionResultBlockParam:
required IReadOnlyList<BetaBashCodeExecutionOutputBlockParam> Content
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaBashCodeExecutionToolResultError:
required ErrorCode ErrorCode
class BetaBashCodeExecutionToolResultErrorParam:
required ErrorCode ErrorCode
class BetaCacheControlEphemeral:
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaCacheCreation:
The number of input tokens used to create the 1 hour cache entry.
The number of input tokens used to create the 5 minute cache entry.
class BetaCitationCharLocation:
class BetaCitationCharLocationParam:
class BetaCitationConfig:
class BetaCitationContentBlockLocation:
class BetaCitationContentBlockLocationParam:
class BetaCitationPageLocation:
class BetaCitationPageLocationParam:
class BetaCitationSearchResultLocation:
class BetaCitationSearchResultLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationsConfigParam:
class BetaCitationsDelta:
required Citation Citation
class BetaCitationCharLocation:
class BetaCitationPageLocation:
class BetaCitationContentBlockLocation:
class BetaCitationsWebSearchResultLocation:
class BetaCitationSearchResultLocation:
class BetaCitationsWebSearchResultLocation:
class BetaClearThinking20251015Edit:
Keep KeepNumber of most recent assistant turns to keep thinking blocks for. Older turns will have their thinking blocks removed.
Number of most recent assistant turns to keep thinking blocks for. Older turns will have their thinking blocks removed.
class BetaThinkingTurns:
class BetaAllThinkingTurns:
class BetaClearThinking20251015EditResponse:
Number of input tokens cleared by this edit.
Number of thinking turns that were cleared.
The type of context management edit applied.
class BetaClearToolUses20250919Edit:
BetaInputTokensClearAtLeast? ClearAtLeastMinimum number of tokens that must be cleared when triggered. Context will only be modified if at least this many tokens can be removed.
Minimum number of tokens that must be cleared when triggered. Context will only be modified if at least this many tokens can be removed.
ClearToolInputs? ClearToolInputsWhether to clear all tool inputs (bool) or specific tool inputs to clear (list)
Whether to clear all tool inputs (bool) or specific tool inputs to clear (list)
Tool names whose uses are preserved from clearing
BetaToolUsesKeep KeepNumber of tool uses to retain in the conversation
Number of tool uses to retain in the conversation
Trigger TriggerCondition that triggers the context management strategy
Condition that triggers the context management strategy
class BetaInputTokensTrigger:
class BetaToolUsesTrigger:
class BetaClearToolUses20250919EditResponse:
Number of input tokens cleared by this edit.
Number of tool uses that were cleared.
The type of context management edit applied.
class BetaCodeExecutionOutputBlock:
class BetaCodeExecutionOutputBlockParam:
class BetaCodeExecutionResultBlock:
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaCodeExecutionResultBlockParam:
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
class BetaCodeExecutionTool20250522:
JsonElement Name "code_execution"constantName of the tool.
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
IReadOnlyList<AllowedCaller> AllowedCallers
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
When true, guarantees schema validation on tool names and inputs
class BetaCodeExecutionTool20250825:
JsonElement Name "code_execution"constantName of the tool.
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
IReadOnlyList<AllowedCaller> AllowedCallers
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
When true, guarantees schema validation on tool names and inputs
class BetaCodeExecutionTool20260120:Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
JsonElement Name "code_execution"constantName of the tool.
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
IReadOnlyList<AllowedCaller> AllowedCallers
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
If true, tool will not be included in initial system prompt. Only loaded when returned via tool_reference from tool search.
When true, guarantees schema validation on tool names and inputs
class BetaCodeExecutionToolResultBlock:
required BetaCodeExecutionToolResultBlockContent ContentCode execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
class BetaCodeExecutionToolResultError:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCodeExecutionResultBlock:
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaEncryptedCodeExecutionResultBlock:Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaCodeExecutionToolResultBlockContent: A class that can be one of several variants.union Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
class BetaCodeExecutionToolResultError:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCodeExecutionResultBlock:
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaEncryptedCodeExecutionResultBlock:Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaCodeExecutionToolResultBlockParam:
required BetaCodeExecutionToolResultBlockParamContent ContentCode execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
class BetaCodeExecutionToolResultErrorParam:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCodeExecutionResultBlockParam:
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
class BetaEncryptedCodeExecutionResultBlockParam:Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaCodeExecutionToolResultBlockParamContent: A class that can be one of several variants.union Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
class BetaCodeExecutionToolResultErrorParam:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCodeExecutionResultBlockParam:
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
class BetaEncryptedCodeExecutionResultBlockParam:Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
class BetaCodeExecutionToolResultError:
required BetaCodeExecutionToolResultErrorCode ErrorCode
enum BetaCodeExecutionToolResultErrorCode:
class BetaCodeExecutionToolResultErrorParam:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCompact20260112Edit:Automatically compact older context when reaching the configured trigger threshold.
Automatically compact older context when reaching the configured trigger threshold.
Additional instructions for summarization.
Whether to pause after compaction and return the compaction block to the user.
BetaInputTokensTrigger? TriggerWhen to trigger compaction. Defaults to 150000 input tokens.
When to trigger compaction. Defaults to 150000 input tokens.
class BetaCompactionBlock:A compaction block returned when autocompact is triggered.
A compaction block returned when autocompact is triggered.
When content is None, it indicates the compaction failed to produce a valid summary (e.g., malformed output from the model). Clients may round-trip compaction blocks with null content; the server treats them as no-ops.
Summary of compacted content, or null if compaction failed
class BetaCompactionBlockParam:A compaction block containing summary of previous context.
A compaction block containing summary of previous context.
Users should round-trip these blocks from responses to subsequent requests to maintain context across compaction boundaries.
When content is None, the block represents a failed compaction. The server treats these as no-ops. Empty string content is not allowed.
Summary of previously compacted content, or null if compaction failed
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaCompactionContentBlockDelta:
class BetaCompactionIterationUsage:Token usage for a compaction iteration.
Token usage for a compaction iteration.
required BetaCacheCreation? CacheCreationBreakdown of cached tokens by TTL
Breakdown of cached tokens by TTL
The number of input tokens used to create the 1 hour cache entry.
The number of input tokens used to create the 5 minute cache entry.
The number of input tokens used to create the cache entry.
The number of input tokens read from the cache.
The number of input tokens which were used.
The number of output tokens which were used.
Usage for a compaction iteration
class BetaContainer:Information about the container used in the request (for the code execution tool)
Information about the container used in the request (for the code execution tool)
Identifier for the container used in this request
The time at which the container will expire.
required IReadOnlyList<BetaSkill>? SkillsSkills loaded in the container
Skills loaded in the container
Skill ID
required Type TypeType of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
Skill version or 'latest' for most recent version
class BetaContainerParams:Container parameters with skills to be loaded.
Container parameters with skills to be loaded.
Container id
IReadOnlyList<BetaSkillParams>? SkillsList of skills to load in the container
List of skills to load in the container
Skill ID
required Type TypeType of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
Type of skill - either 'anthropic' (built-in) or 'custom' (user-defined)
Skill version or 'latest' for most recent version
class BetaContainerUploadBlock:Response model for a file uploaded to the container.
Response model for a file uploaded to the container.
class BetaContainerUploadBlockParam:A content block that represents a file to be uploaded to the container
Files uploaded via this block will be available in the container's input directory.
A content block that represents a file to be uploaded to the container Files uploaded via this block will be available in the container's input directory.
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaContentBlock: A class that can be one of several variants.union Response model for a file uploaded to the container.
Response model for a file uploaded to the container.
class BetaTextBlock:
required IReadOnlyList<BetaTextCitation>? CitationsCitations supporting the text block.
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in page_location, plain text results in char_location, and content document results in content_block_location.
class BetaCitationCharLocation:
class BetaCitationPageLocation:
class BetaCitationContentBlockLocation:
class BetaCitationsWebSearchResultLocation:
class BetaCitationSearchResultLocation:
class BetaThinkingBlock:
class BetaRedactedThinkingBlock:
class BetaToolUseBlock:
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaServerToolUseBlock:
required Name Name
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaWebSearchToolResultBlock:
required BetaWebSearchToolResultBlockContent Content
class BetaWebSearchToolResultError:
required BetaWebSearchToolResultErrorCode ErrorCode
IReadOnlyList<BetaWebSearchResultBlock>
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaWebFetchToolResultBlock:
required Content Content
class BetaWebFetchToolResultErrorBlock:
required BetaWebFetchToolResultErrorCode ErrorCode
class BetaWebFetchBlock:
required BetaDocumentBlock Content
required BetaCitationConfig? CitationsCitation configuration for the document
Citation configuration for the document
required Source Source
class BetaBase64PdfSource:
class BetaPlainTextSource:
The title of the document
ISO 8601 timestamp when the content was retrieved
Fetched content URL
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaCodeExecutionToolResultBlock:
required BetaCodeExecutionToolResultBlockContent ContentCode execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
class BetaCodeExecutionToolResultError:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCodeExecutionResultBlock:
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaEncryptedCodeExecutionResultBlock:Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
required IReadOnlyList<BetaCodeExecutionOutputBlock> Content
class BetaBashCodeExecutionToolResultBlock:
required Content Content
class BetaBashCodeExecutionToolResultError:
required ErrorCode ErrorCode
class BetaBashCodeExecutionResultBlock:
required IReadOnlyList<BetaBashCodeExecutionOutputBlock> Content
class BetaTextEditorCodeExecutionToolResultBlock:
required Content Content
class BetaTextEditorCodeExecutionToolResultError:
required ErrorCode ErrorCode
class BetaTextEditorCodeExecutionViewResultBlock:
required FileType FileType
class BetaTextEditorCodeExecutionCreateResultBlock:
class BetaTextEditorCodeExecutionStrReplaceResultBlock:
class BetaToolSearchToolResultBlock:
required Content Content
class BetaToolSearchToolResultError:
required ErrorCode ErrorCode
class BetaToolSearchToolSearchResultBlock:
required IReadOnlyList<BetaToolReferenceBlock> ToolReferences
class BetaMcpToolUseBlock:
The name of the MCP tool
The name of the MCP server
class BetaMcpToolResultBlock:
required Content Content
IReadOnlyList<BetaTextBlock>
required IReadOnlyList<BetaTextCitation>? CitationsCitations supporting the text block.
Citations supporting the text block.
The type of citation returned will depend on the type of document being cited. Citing a PDF results in page_location, plain text results in char_location, and content document results in content_block_location.
class BetaCitationCharLocation:
class BetaCitationPageLocation:
class BetaCitationContentBlockLocation:
class BetaCitationsWebSearchResultLocation:
class BetaCitationSearchResultLocation:
class BetaContainerUploadBlock:Response model for a file uploaded to the container.
Response model for a file uploaded to the container.
class BetaCompactionBlock:A compaction block returned when autocompact is triggered.
A compaction block returned when autocompact is triggered.
When content is None, it indicates the compaction failed to produce a valid summary (e.g., malformed output from the model). Clients may round-trip compaction blocks with null content; the server treats them as no-ops.
Summary of compacted content, or null if compaction failed
class BetaContentBlockParam: A class that can be one of several variants.union Regular text content.
Regular text content.
class BetaTextBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
class BetaImageBlockParam:
required Source Source
class BetaBase64ImageSource:
required MediaType MediaType
class BetaUrlImageSource:
class BetaFileImageSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaRequestDocumentBlock:
required Source Source
class BetaBase64PdfSource:
class BetaPlainTextSource:
class BetaContentBlockSource:
required Content Content
IReadOnlyList<BetaContentBlockSourceContent>
class BetaTextBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
class BetaImageBlockParam:
required Source Source
class BetaBase64ImageSource:
required MediaType MediaType
class BetaUrlImageSource:
class BetaFileImageSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaUrlPdfSource:
class BetaFileDocumentSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
BetaCitationsConfigParam? Citations
class BetaSearchResultBlockParam:
required IReadOnlyList<BetaTextBlockParam> Content
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
BetaCitationsConfigParam Citations
class BetaThinkingBlockParam:
class BetaRedactedThinkingBlockParam:
class BetaToolUseBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaToolResultBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
Content Content
IReadOnlyList<Block>
class BetaTextBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
class BetaImageBlockParam:
required Source Source
class BetaBase64ImageSource:
required MediaType MediaType
class BetaUrlImageSource:
class BetaFileImageSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaSearchResultBlockParam:
required IReadOnlyList<BetaTextBlockParam> Content
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
BetaCitationsConfigParam Citations
class BetaRequestDocumentBlock:
required Source Source
class BetaBase64PdfSource:
class BetaPlainTextSource:
class BetaContentBlockSource:
required Content Content
IReadOnlyList<BetaContentBlockSourceContent>
class BetaTextBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
class BetaImageBlockParam:
required Source Source
class BetaBase64ImageSource:
required MediaType MediaType
class BetaUrlImageSource:
class BetaFileImageSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaUrlPdfSource:
class BetaFileDocumentSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
BetaCitationsConfigParam? Citations
class BetaToolReferenceBlockParam:Tool reference block that can be included in tool_result content.
Tool reference block that can be included in tool_result content.
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaServerToolUseBlockParam:
required Name Name
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaWebSearchToolResultBlockParam:
required BetaWebSearchToolResultBlockParamContent Content
IReadOnlyList<BetaWebSearchResultBlockParam>
class BetaWebSearchToolRequestError:
required BetaWebSearchToolResultErrorCode ErrorCode
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaWebFetchToolResultBlockParam:
required Content Content
class BetaWebFetchToolResultErrorBlockParam:
required BetaWebFetchToolResultErrorCode ErrorCode
class BetaWebFetchBlockParam:
required BetaRequestDocumentBlock Content
required Source Source
class BetaBase64PdfSource:
class BetaPlainTextSource:
class BetaContentBlockSource:
required Content Content
IReadOnlyList<BetaContentBlockSourceContent>
class BetaTextBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
IReadOnlyList<BetaTextCitationParam>? Citations
class BetaCitationCharLocationParam:
class BetaCitationPageLocationParam:
class BetaCitationContentBlockLocationParam:
class BetaCitationWebSearchResultLocationParam:
class BetaCitationSearchResultLocationParam:
class BetaImageBlockParam:
required Source Source
class BetaBase64ImageSource:
required MediaType MediaType
class BetaUrlImageSource:
class BetaFileImageSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaUrlPdfSource:
class BetaFileDocumentSource:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
BetaCitationsConfigParam? Citations
Fetched content URL
ISO 8601 timestamp when the content was retrieved
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
Caller CallerTool invocation directly from the model.
Tool invocation directly from the model.
class BetaDirectCaller:Tool invocation directly from the model.
Tool invocation directly from the model.
class BetaServerToolCaller:Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
class BetaServerToolCaller20260120:
class BetaCodeExecutionToolResultBlockParam:
required BetaCodeExecutionToolResultBlockParamContent ContentCode execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
class BetaCodeExecutionToolResultErrorParam:
required BetaCodeExecutionToolResultErrorCode ErrorCode
class BetaCodeExecutionResultBlockParam:
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
class BetaEncryptedCodeExecutionResultBlockParam:Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
required IReadOnlyList<BetaCodeExecutionOutputBlockParam> Content
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaBashCodeExecutionToolResultBlockParam:
required Content Content
class BetaBashCodeExecutionToolResultErrorParam:
required ErrorCode ErrorCode
class BetaBashCodeExecutionResultBlockParam:
required IReadOnlyList<BetaBashCodeExecutionOutputBlockParam> Content
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.
class BetaTextEditorCodeExecutionToolResultBlockParam:
required Content Content
class BetaTextEditorCodeExecutionToolResultErrorParam:
required ErrorCode ErrorCode
class BetaTextEditorCodeExecutionViewResultBlockParam:
required FileType FileType
class BetaTextEditorCodeExecutionCreateResultBlockParam:
class BetaTextEditorCodeExecutionStrReplaceResultBlockParam:
BetaCacheControlEphemeral? CacheControlCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
Ttl TtlThe time-to-live for the cache control breakpoint.
The time-to-live for the cache control breakpoint.
This may be one the following values:
5m: 5 minutes1h: 1 hour
Defaults to 5m.