Messages
Count tokens in a Message
ModelsExpand Collapse
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type Base64PDFSource struct{…}
type BashCodeExecutionOutputBlock struct{…}
type BashCodeExecutionOutputBlockParamResp struct{…}
type BashCodeExecutionResultBlock struct{…}
Content []BashCodeExecutionOutputBlock
type BashCodeExecutionResultBlockParamResp struct{…}
Content []BashCodeExecutionOutputBlockParamResp
type BashCodeExecutionToolResultBlock struct{…}
Content BashCodeExecutionToolResultBlockContentUnion
type BashCodeExecutionToolResultError struct{…}
ErrorCode BashCodeExecutionToolResultErrorCode
type BashCodeExecutionResultBlock struct{…}
Content []BashCodeExecutionOutputBlock
type BashCodeExecutionToolResultBlockParamResp struct{…}
Content BashCodeExecutionToolResultBlockParamContentUnionResp
type BashCodeExecutionToolResultErrorParamResp struct{…}
ErrorCode BashCodeExecutionToolResultErrorCode
type BashCodeExecutionResultBlockParamResp struct{…}
Content []BashCodeExecutionOutputBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type BashCodeExecutionToolResultError struct{…}
ErrorCode BashCodeExecutionToolResultErrorCode
type BashCodeExecutionToolResultErrorCode string
type BashCodeExecutionToolResultErrorParamResp struct{…}
ErrorCode BashCodeExecutionToolResultErrorCode
type CacheControlEphemeral struct{…}
TTL CacheControlEphemeralTTLoptionalThe 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.
type CacheCreation struct{…}
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.
type CitationCharLocation struct{…}
type CitationCharLocationParamResp struct{…}
type CitationContentBlockLocation struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationPageLocation struct{…}
type CitationPageLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationsConfig struct{…}
type CitationsConfigParamResp struct{…}
type CitationsDelta struct{…}
Citation CitationsDeltaCitationUnion
type CitationCharLocation struct{…}
type CitationPageLocation struct{…}
type CitationContentBlockLocation struct{…}
type CitationsWebSearchResultLocation struct{…}
type CitationsSearchResultLocation struct{…}
type CitationsSearchResultLocation struct{…}
type CitationsWebSearchResultLocation struct{…}
type CodeExecutionOutputBlock struct{…}
type CodeExecutionOutputBlockParamResp struct{…}
type CodeExecutionResultBlock struct{…}
Content []CodeExecutionOutputBlock
type CodeExecutionResultBlockParamResp struct{…}
Content []CodeExecutionOutputBlockParamResp
type CodeExecutionTool20250522 struct{…}
Name CodeExecutionName of the tool.
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
AllowedCallers []stringoptional
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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
type CodeExecutionTool20250825 struct{…}
Name CodeExecutionName of the tool.
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
AllowedCallers []stringoptional
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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
type CodeExecutionTool20260120 struct{…}Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
Code execution tool with REPL state persistence (daemon mode + gVisor checkpoint).
Name CodeExecutionName of the tool.
Name of the tool.
This is how the tool will be called by the model and in tool_use blocks.
AllowedCallers []stringoptional
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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
type CodeExecutionToolResultBlock struct{…}
Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
type CodeExecutionToolResultError struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionResultBlock struct{…}
Content []CodeExecutionOutputBlock
type EncryptedCodeExecutionResultBlock struct{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
Content []CodeExecutionOutputBlock
type CodeExecutionToolResultBlockContentUnion interface{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
type CodeExecutionToolResultError struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionResultBlock struct{…}
Content []CodeExecutionOutputBlock
type EncryptedCodeExecutionResultBlock struct{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
Content []CodeExecutionOutputBlock
type CodeExecutionToolResultBlockParamResp struct{…}
Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
type CodeExecutionToolResultErrorParamResp struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionResultBlockParamResp struct{…}
Content []CodeExecutionOutputBlockParamResp
type EncryptedCodeExecutionResultBlockParamResp struct{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
Content []CodeExecutionOutputBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type CodeExecutionToolResultBlockParamContentUnionResp interface{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
type CodeExecutionToolResultErrorParamResp struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionResultBlockParamResp struct{…}
Content []CodeExecutionOutputBlockParamResp
type EncryptedCodeExecutionResultBlockParamResp struct{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
Content []CodeExecutionOutputBlockParamResp
type CodeExecutionToolResultError struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionToolResultErrorCode string
type CodeExecutionToolResultErrorParamResp struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type Container struct{…}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.
type ContainerUploadBlock struct{…}Response model for a file uploaded to the container.
Response model for a file uploaded to the container.
type ContainerUploadBlockParamResp struct{…}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.
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type ContentBlockUnion interface{…}Response model for a file uploaded to the container.
Response model for a file uploaded to the container.
type TextBlock struct{…}
Citations []TextCitationUnionCitations 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.
type CitationCharLocation struct{…}
type CitationPageLocation struct{…}
type CitationContentBlockLocation struct{…}
type CitationsWebSearchResultLocation struct{…}
type CitationsSearchResultLocation struct{…}
type ThinkingBlock struct{…}
type RedactedThinkingBlock struct{…}
type ToolUseBlock struct{…}
Caller ToolUseBlockCallerUnionTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
type ServerToolUseBlock struct{…}
Caller ServerToolUseBlockCallerUnionTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
Name ServerToolUseBlockName
type WebSearchToolResultBlock struct{…}
Caller WebSearchToolResultBlockCallerUnionTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
type WebSearchToolResultError struct{…}
ErrorCode WebSearchToolResultErrorCode
type WebSearchToolResultBlockContentArray []WebSearchResultBlock
type WebFetchToolResultBlock struct{…}
Caller WebFetchToolResultBlockCallerUnionTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
Content WebFetchToolResultBlockContentUnion
type WebFetchToolResultErrorBlock struct{…}
ErrorCode WebFetchToolResultErrorCode
type WebFetchBlock struct{…}
Content DocumentBlock
Citations CitationsConfigCitation configuration for the document
Citation configuration for the document
Source DocumentBlockSourceUnion
type Base64PDFSource struct{…}
type PlainTextSource struct{…}
The title of the document
ISO 8601 timestamp when the content was retrieved
Fetched content URL
type CodeExecutionToolResultBlock struct{…}
Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
type CodeExecutionToolResultError struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionResultBlock struct{…}
Content []CodeExecutionOutputBlock
type EncryptedCodeExecutionResultBlock struct{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
Content []CodeExecutionOutputBlock
type BashCodeExecutionToolResultBlock struct{…}
Content BashCodeExecutionToolResultBlockContentUnion
type BashCodeExecutionToolResultError struct{…}
ErrorCode BashCodeExecutionToolResultErrorCode
type BashCodeExecutionResultBlock struct{…}
Content []BashCodeExecutionOutputBlock
type TextEditorCodeExecutionToolResultBlock struct{…}
Content TextEditorCodeExecutionToolResultBlockContentUnion
type TextEditorCodeExecutionToolResultError struct{…}
type TextEditorCodeExecutionViewResultBlock struct{…}
FileType TextEditorCodeExecutionViewResultBlockFileType
type TextEditorCodeExecutionCreateResultBlock struct{…}
type TextEditorCodeExecutionStrReplaceResultBlock struct{…}
type ToolSearchToolResultBlock struct{…}
Content ToolSearchToolResultBlockContentUnion
type ToolSearchToolResultError struct{…}
ErrorCode ToolSearchToolResultErrorCode
type ToolSearchToolSearchResultBlock struct{…}
ToolReferences []ToolReferenceBlock
type ContainerUploadBlock struct{…}Response model for a file uploaded to the container.
Response model for a file uploaded to the container.
type ContentBlockParamUnionResp interface{…}Regular text content.
Regular text content.
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type DocumentBlockParamResp struct{…}
Source DocumentBlockParamSourceUnionResp
type Base64PDFSource struct{…}
type PlainTextSource struct{…}
type ContentBlockSource struct{…}
Content ContentBlockSourceContentUnion
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type URLPDFSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations CitationsConfigParamRespoptional
type SearchResultBlockParamResp struct{…}
Content []TextBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations CitationsConfigParamRespoptional
type ThinkingBlockParamResp struct{…}
type RedactedThinkingBlockParamResp struct{…}
type ToolUseBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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 ToolUseBlockParamCallerUnionRespoptionalTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
type ToolResultBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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 []ToolResultBlockParamContentUnionRespoptional
[]ToolResultBlockParamContentUnionResp
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type SearchResultBlockParamResp struct{…}
Content []TextBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations CitationsConfigParamRespoptional
type DocumentBlockParamResp struct{…}
Source DocumentBlockParamSourceUnionResp
type Base64PDFSource struct{…}
type PlainTextSource struct{…}
type ContentBlockSource struct{…}
Content ContentBlockSourceContentUnion
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type URLPDFSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations CitationsConfigParamRespoptional
type ToolReferenceBlockParamResp struct{…}Tool reference block that can be included in tool_result content.
Tool reference block that can be included in tool_result content.
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type ServerToolUseBlockParamResp struct{…}
Name ServerToolUseBlockParamName
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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 ServerToolUseBlockParamCallerUnionRespoptionalTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
type WebSearchToolResultBlockParamResp struct{…}
type WebSearchToolRequestError struct{…}
ErrorCode WebSearchToolResultErrorCode
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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 WebSearchToolResultBlockParamCallerUnionRespoptionalTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
type WebFetchToolResultBlockParamResp struct{…}
Content WebFetchToolResultBlockParamContentUnionResp
type WebFetchToolResultErrorBlockParamResp struct{…}
ErrorCode WebFetchToolResultErrorCode
type WebFetchBlockParamResp struct{…}
Content DocumentBlockParamResp
Source DocumentBlockParamSourceUnionResp
type Base64PDFSource struct{…}
type PlainTextSource struct{…}
type ContentBlockSource struct{…}
Content ContentBlockSourceContentUnion
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type URLPDFSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations CitationsConfigParamRespoptional
Fetched content URL
ISO 8601 timestamp when the content was retrieved
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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 WebFetchToolResultBlockParamCallerUnionRespoptionalTool invocation directly from the model.
Tool invocation directly from the model.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type ServerToolCaller struct{…}Tool invocation generated by a server-side tool.
Tool invocation generated by a server-side tool.
type ServerToolCaller20260120 struct{…}
type CodeExecutionToolResultBlockParamResp struct{…}
Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
type CodeExecutionToolResultErrorParamResp struct{…}
ErrorCode CodeExecutionToolResultErrorCode
type CodeExecutionResultBlockParamResp struct{…}
Content []CodeExecutionOutputBlockParamResp
type EncryptedCodeExecutionResultBlockParamResp struct{…}Code execution result with encrypted stdout for PFC + web_search results.
Code execution result with encrypted stdout for PFC + web_search results.
Content []CodeExecutionOutputBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type BashCodeExecutionToolResultBlockParamResp struct{…}
Content BashCodeExecutionToolResultBlockParamContentUnionResp
type BashCodeExecutionToolResultErrorParamResp struct{…}
ErrorCode BashCodeExecutionToolResultErrorCode
type BashCodeExecutionResultBlockParamResp struct{…}
Content []BashCodeExecutionOutputBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type TextEditorCodeExecutionToolResultBlockParamResp struct{…}
Content TextEditorCodeExecutionToolResultBlockParamContentUnionResp
type TextEditorCodeExecutionToolResultErrorParamResp struct{…}
type TextEditorCodeExecutionViewResultBlockParamResp struct{…}
FileType TextEditorCodeExecutionViewResultBlockParamFileType
type TextEditorCodeExecutionCreateResultBlockParamResp struct{…}
type TextEditorCodeExecutionStrReplaceResultBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type ToolSearchToolResultBlockParamResp struct{…}
Content ToolSearchToolResultBlockParamContentUnionResp
type ToolSearchToolResultErrorParamResp struct{…}
ErrorCode ToolSearchToolResultErrorCode
type ToolSearchToolSearchResultBlockParamResp struct{…}
ToolReferences []ToolReferenceBlockParamResp
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type ContainerUploadBlockParamResp struct{…}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.
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type ContentBlockSource struct{…}
Content ContentBlockSourceContentUnion
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type ContentBlockSourceContentItemUnion interface{…}
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type DirectCaller struct{…}Tool invocation directly from the model.
Tool invocation directly from the model.
type DocumentBlock struct{…}
Citations CitationsConfigCitation configuration for the document
Citation configuration for the document
Source DocumentBlockSourceUnion
type Base64PDFSource struct{…}
type PlainTextSource struct{…}
The title of the document
type DocumentBlockParamResp struct{…}
Source DocumentBlockParamSourceUnionResp
type Base64PDFSource struct{…}
type PlainTextSource struct{…}
type ContentBlockSource struct{…}
Content ContentBlockSourceContentUnion
type TextBlockParamResp struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
Citations []TextCitationParamUnionRespoptional
type CitationCharLocationParamResp struct{…}
type CitationPageLocationParamResp struct{…}
type CitationContentBlockLocationParamResp struct{…}
type CitationWebSearchResultLocationParamResp struct{…}
type CitationSearchResultLocationParamResp struct{…}
type ImageBlockParamResp struct{…}
Source ImageBlockParamSourceUnionResp
type Base64ImageSource struct{…}
MediaType Base64ImageSourceMediaType
type URLImageSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.
type URLPDFSource struct{…}
CacheControl CacheControlEphemeraloptionalCreate a cache control breakpoint at this content block.
Create a cache control breakpoint at this content block.
TTL CacheControlEphemeralTTLoptionalThe 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.