gaato/anthropic/gen does not have a README file
impl FromJson for AllowedCallerimpl ToJson for AllowedCallerfn AllowedCaller::from_json(value : Json, path : DecodeContext) -> AllowedCaller raise JsonDecodeErrorpub(all) struct AssistantInputMessage {
content : InputMessageContent
role : String
} derive(Eq, Debug)impl FromJson for AssistantInputMessageimpl ToJson for AssistantInputMessagefn AssistantInputMessage::from_json(value : Json, path : DecodeContext) -> AssistantInputMessage raise JsonDecodeErrorfn AssistantInputMessage::new(content~ : InputMessageContent, role~ : String) -> AssistantInputMessageimpl FromJson for AuthenticationErrorimpl ToJson for AuthenticationErrorfn AuthenticationError::from_json(value : Json, path : DecodeContext) -> AuthenticationError raise JsonDecodeErrorfn from_json(value : Json, path : DecodeContext) -> AvailableToolsLimitExceededErrorDetails raise JsonDecodeErrorfn AvailableToolsLimitExceededErrorDetails::from_json(value : Json, path : DecodeContext) -> AvailableToolsLimitExceededErrorDetails raise JsonDecodeErrorfn AvailableToolsLimitExceededErrorDetails::not_equal(x : AvailableToolsLimitExceededErrorDetails, y : AvailableToolsLimitExceededErrorDetails) -> Boolfn AvailableToolsLimitExceededErrorDetails::to_json(_self : AvailableToolsLimitExceededErrorDetails) -> Jsonpub(all) struct Base64ImageSource {
data : String
media_type : Base64ImageSourceMediaType
type_ : String
} derive(Eq, Debug)impl FromJson for Base64ImageSourceimpl ToJson for Base64ImageSourcefn Base64ImageSource::from_json(value : Json, path : DecodeContext) -> Base64ImageSource raise JsonDecodeErrorfn Base64ImageSource::new(data~ : String, media_type~ : Base64ImageSourceMediaType, type_~ : String) -> Base64ImageSourceimpl FromJson for Base64ImageSourceMediaTypefn from_json(value : Json, path : DecodeContext) -> Base64ImageSourceMediaType raise JsonDecodeErrorimpl ToJson for Base64ImageSourceMediaTypefn Base64ImageSourceMediaType::equal(Base64ImageSourceMediaType, Base64ImageSourceMediaType) -> Boolfn Base64ImageSourceMediaType::from_json(value : Json, path : DecodeContext) -> Base64ImageSourceMediaType raise JsonDecodeErrorfn Base64ImageSourceMediaType::not_equal(x : Base64ImageSourceMediaType, y : Base64ImageSourceMediaType) -> Boolimpl FromJson for Base64PDFSourceimpl ToJson for Base64PDFSourcefn Base64PDFSource::from_json(value : Json, path : DecodeContext) -> Base64PDFSource raise JsonDecodeErrorfn from_json(value : Json, path : DecodeContext) -> BashCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn BashCodeExecutionToolResultErrorCode::from_json(value : Json, path : DecodeContext) -> BashCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn BashCodeExecutionToolResultErrorCode::not_equal(x : BashCodeExecutionToolResultErrorCode, y : BashCodeExecutionToolResultErrorCode) -> Boolfn BashCodeExecutionToolResultErrorCode::to_json(self : BashCodeExecutionToolResultErrorCode) -> Jsonpub(all) struct BashTool20250124 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[BashTool20250124CacheControl]
defer_loading : Bool?
input_examples : Array[Map[String, Json]]?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for BashTool20250124impl ToJson for BashTool20250124fn BashTool20250124::from_json(value : Json, path : DecodeContext) -> BashTool20250124 raise JsonDecodeErrorfn BashTool20250124::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : BashTool20250124CacheControl, defer_loading? : Bool, input_examples? : Array[Map[String, Json]], strict? : Bool) -> BashTool20250124pub(all) enum BashTool20250124CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for BashTool20250124CacheControlfn from_json(value : Json, path : DecodeContext) -> BashTool20250124CacheControl raise JsonDecodeErrorimpl ToJson for BashTool20250124CacheControlfn BashTool20250124CacheControl::equal(BashTool20250124CacheControl, BashTool20250124CacheControl) -> Boolfn BashTool20250124CacheControl::from_json(value : Json, path : DecodeContext) -> BashTool20250124CacheControl raise JsonDecodeErrorfn BashTool20250124CacheControl::not_equal(x : BashTool20250124CacheControl, y : BashTool20250124CacheControl) -> Boolimpl FromJson for BillingErrorimpl ToJson for BillingErrorfn BillingError::from_json(value : Json, path : DecodeContext) -> BillingError raise JsonDecodeErrorimpl FromJson for BrowserCloseTabConfigimpl ToJson for BrowserCloseTabConfigfn BrowserCloseTabConfig::from_json(value : Json, path : DecodeContext) -> BrowserCloseTabConfig raise JsonDecodeErrorimpl FromJson for BrowserDoubleClickConfigimpl ToJson for BrowserDoubleClickConfigfn BrowserDoubleClickConfig::from_json(value : Json, path : DecodeContext) -> BrowserDoubleClickConfig raise JsonDecodeErrorfn BrowserDoubleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserDoubleClickConfigfn BrowserDoubleClickConfig::not_equal(x : BrowserDoubleClickConfig, y : BrowserDoubleClickConfig) -> Boolimpl FromJson for BrowserFileUploadConfigimpl ToJson for BrowserFileUploadConfigfn BrowserFileUploadConfig::from_json(value : Json, path : DecodeContext) -> BrowserFileUploadConfig raise JsonDecodeErrorfn BrowserFileUploadConfig::not_equal(x : BrowserFileUploadConfig, y : BrowserFileUploadConfig) -> Boolimpl FromJson for BrowserFindConfigimpl ToJson for BrowserFindConfigfn BrowserFindConfig::from_json(value : Json, path : DecodeContext) -> BrowserFindConfig raise JsonDecodeErrorimpl FromJson for BrowserFormInputConfigimpl ToJson for BrowserFormInputConfigfn BrowserFormInputConfig::from_json(value : Json, path : DecodeContext) -> BrowserFormInputConfig raise JsonDecodeErrorfn BrowserFormInputConfig::not_equal(x : BrowserFormInputConfig, y : BrowserFormInputConfig) -> Boolimpl FromJson for BrowserGetPageTextConfigimpl ToJson for BrowserGetPageTextConfigfn BrowserGetPageTextConfig::from_json(value : Json, path : DecodeContext) -> BrowserGetPageTextConfig raise JsonDecodeErrorfn BrowserGetPageTextConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserGetPageTextConfigfn BrowserGetPageTextConfig::not_equal(x : BrowserGetPageTextConfig, y : BrowserGetPageTextConfig) -> Boolimpl FromJson for BrowserHoldKeyConfigimpl ToJson for BrowserHoldKeyConfigfn BrowserHoldKeyConfig::from_json(value : Json, path : DecodeContext) -> BrowserHoldKeyConfig raise JsonDecodeErrorimpl FromJson for BrowserHoverConfigimpl ToJson for BrowserHoverConfigfn BrowserHoverConfig::from_json(value : Json, path : DecodeContext) -> BrowserHoverConfig raise JsonDecodeErrorimpl FromJson for BrowserJavascriptExecConfigfn from_json(value : Json, path : DecodeContext) -> BrowserJavascriptExecConfig raise JsonDecodeErrorimpl ToJson for BrowserJavascriptExecConfigfn BrowserJavascriptExecConfig::equal(BrowserJavascriptExecConfig, BrowserJavascriptExecConfig) -> Boolfn BrowserJavascriptExecConfig::from_json(value : Json, path : DecodeContext) -> BrowserJavascriptExecConfig raise JsonDecodeErrorfn BrowserJavascriptExecConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserJavascriptExecConfigfn BrowserJavascriptExecConfig::not_equal(x : BrowserJavascriptExecConfig, y : BrowserJavascriptExecConfig) -> Boolimpl FromJson for BrowserKeyConfigimpl ToJson for BrowserKeyConfigfn BrowserKeyConfig::from_json(value : Json, path : DecodeContext) -> BrowserKeyConfig raise JsonDecodeErrorimpl FromJson for BrowserLeftClickConfigimpl ToJson for BrowserLeftClickConfigfn BrowserLeftClickConfig::from_json(value : Json, path : DecodeContext) -> BrowserLeftClickConfig raise JsonDecodeErrorfn BrowserLeftClickConfig::not_equal(x : BrowserLeftClickConfig, y : BrowserLeftClickConfig) -> Boolimpl FromJson for BrowserLeftClickDragConfigfn from_json(value : Json, path : DecodeContext) -> BrowserLeftClickDragConfig raise JsonDecodeErrorimpl ToJson for BrowserLeftClickDragConfigfn BrowserLeftClickDragConfig::equal(BrowserLeftClickDragConfig, BrowserLeftClickDragConfig) -> Boolfn BrowserLeftClickDragConfig::from_json(value : Json, path : DecodeContext) -> BrowserLeftClickDragConfig raise JsonDecodeErrorfn BrowserLeftClickDragConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserLeftClickDragConfigfn BrowserLeftClickDragConfig::not_equal(x : BrowserLeftClickDragConfig, y : BrowserLeftClickDragConfig) -> Boolimpl FromJson for BrowserLeftMouseDownConfigfn from_json(value : Json, path : DecodeContext) -> BrowserLeftMouseDownConfig raise JsonDecodeErrorimpl ToJson for BrowserLeftMouseDownConfigfn BrowserLeftMouseDownConfig::equal(BrowserLeftMouseDownConfig, BrowserLeftMouseDownConfig) -> Boolfn BrowserLeftMouseDownConfig::from_json(value : Json, path : DecodeContext) -> BrowserLeftMouseDownConfig raise JsonDecodeErrorfn BrowserLeftMouseDownConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserLeftMouseDownConfigfn BrowserLeftMouseDownConfig::not_equal(x : BrowserLeftMouseDownConfig, y : BrowserLeftMouseDownConfig) -> Boolimpl FromJson for BrowserLeftMouseUpConfigimpl ToJson for BrowserLeftMouseUpConfigfn BrowserLeftMouseUpConfig::from_json(value : Json, path : DecodeContext) -> BrowserLeftMouseUpConfig raise JsonDecodeErrorfn BrowserLeftMouseUpConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserLeftMouseUpConfigfn BrowserLeftMouseUpConfig::not_equal(x : BrowserLeftMouseUpConfig, y : BrowserLeftMouseUpConfig) -> Boolimpl FromJson for BrowserListTabsConfigimpl ToJson for BrowserListTabsConfigfn BrowserListTabsConfig::from_json(value : Json, path : DecodeContext) -> BrowserListTabsConfig raise JsonDecodeErrorimpl FromJson for BrowserMiddleClickConfigimpl ToJson for BrowserMiddleClickConfigfn BrowserMiddleClickConfig::from_json(value : Json, path : DecodeContext) -> BrowserMiddleClickConfig raise JsonDecodeErrorfn BrowserMiddleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserMiddleClickConfigfn BrowserMiddleClickConfig::not_equal(x : BrowserMiddleClickConfig, y : BrowserMiddleClickConfig) -> Boolimpl FromJson for BrowserMouseMoveConfigimpl ToJson for BrowserMouseMoveConfigfn BrowserMouseMoveConfig::from_json(value : Json, path : DecodeContext) -> BrowserMouseMoveConfig raise JsonDecodeErrorfn BrowserMouseMoveConfig::not_equal(x : BrowserMouseMoveConfig, y : BrowserMouseMoveConfig) -> Boolfn BrowserNavigateConfig::from_json(value : Json, path : DecodeContext) -> BrowserNavigateConfig raise JsonDecodeErrorimpl FromJson for BrowserNewTabConfigimpl ToJson for BrowserNewTabConfigfn BrowserNewTabConfig::from_json(value : Json, path : DecodeContext) -> BrowserNewTabConfig raise JsonDecodeErrorimpl FromJson for BrowserReadConsoleConfigimpl ToJson for BrowserReadConsoleConfigfn BrowserReadConsoleConfig::from_json(value : Json, path : DecodeContext) -> BrowserReadConsoleConfig raise JsonDecodeErrorfn BrowserReadConsoleConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserReadConsoleConfigfn BrowserReadConsoleConfig::not_equal(x : BrowserReadConsoleConfig, y : BrowserReadConsoleConfig) -> Boolimpl FromJson for BrowserReadNetworkConfigimpl ToJson for BrowserReadNetworkConfigfn BrowserReadNetworkConfig::from_json(value : Json, path : DecodeContext) -> BrowserReadNetworkConfig raise JsonDecodeErrorfn BrowserReadNetworkConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserReadNetworkConfigfn BrowserReadNetworkConfig::not_equal(x : BrowserReadNetworkConfig, y : BrowserReadNetworkConfig) -> Boolimpl FromJson for BrowserReadPageConfigimpl ToJson for BrowserReadPageConfigfn BrowserReadPageConfig::from_json(value : Json, path : DecodeContext) -> BrowserReadPageConfig raise JsonDecodeErrorimpl FromJson for BrowserRightClickConfigimpl ToJson for BrowserRightClickConfigfn BrowserRightClickConfig::from_json(value : Json, path : DecodeContext) -> BrowserRightClickConfig raise JsonDecodeErrorfn BrowserRightClickConfig::not_equal(x : BrowserRightClickConfig, y : BrowserRightClickConfig) -> Boolimpl FromJson for BrowserScreenshotConfigimpl ToJson for BrowserScreenshotConfigfn BrowserScreenshotConfig::from_json(value : Json, path : DecodeContext) -> BrowserScreenshotConfig raise JsonDecodeErrorfn BrowserScreenshotConfig::not_equal(x : BrowserScreenshotConfig, y : BrowserScreenshotConfig) -> Boolimpl FromJson for BrowserScrollConfigimpl ToJson for BrowserScrollConfigfn BrowserScrollConfig::from_json(value : Json, path : DecodeContext) -> BrowserScrollConfig raise JsonDecodeErrorimpl FromJson for BrowserScrollToConfigimpl ToJson for BrowserScrollToConfigfn BrowserScrollToConfig::from_json(value : Json, path : DecodeContext) -> BrowserScrollToConfig raise JsonDecodeErrorfn from_json(value : Json, path : DecodeContext) -> BrowserStateChangeDownloadCompleted raise JsonDecodeErrorfn BrowserStateChangeDownloadCompleted::from_json(value : Json, path : DecodeContext) -> BrowserStateChangeDownloadCompleted raise JsonDecodeErrorfn BrowserStateChangeDownloadCompleted::new(download_id~ : String, type_~ : String, url~ : String, path? : String, size_bytes? : Int) -> BrowserStateChangeDownloadCompletedfn BrowserStateChangeDownloadCompleted::not_equal(x : BrowserStateChangeDownloadCompleted, y : BrowserStateChangeDownloadCompleted) -> Boolimpl FromJson for BrowserStateChangeDownloadFailedfn from_json(value : Json, path : DecodeContext) -> BrowserStateChangeDownloadFailed raise JsonDecodeErrorimpl ToJson for BrowserStateChangeDownloadFailedfn BrowserStateChangeDownloadFailed::from_json(value : Json, path : DecodeContext) -> BrowserStateChangeDownloadFailed raise JsonDecodeErrorfn BrowserStateChangeDownloadFailed::new(download_id~ : String, type_~ : String, url~ : String, error? : String) -> BrowserStateChangeDownloadFailedfn BrowserStateChangeDownloadFailed::not_equal(x : BrowserStateChangeDownloadFailed, y : BrowserStateChangeDownloadFailed) -> Boolfn from_json(value : Json, path : DecodeContext) -> BrowserStateChangeDownloadStarted raise JsonDecodeErrorimpl ToJson for BrowserStateChangeDownloadStartedfn BrowserStateChangeDownloadStarted::from_json(value : Json, path : DecodeContext) -> BrowserStateChangeDownloadStarted raise JsonDecodeErrorfn BrowserStateChangeDownloadStarted::new(download_id~ : String, type_~ : String, url~ : String) -> BrowserStateChangeDownloadStartedfn BrowserStateChangeDownloadStarted::not_equal(x : BrowserStateChangeDownloadStarted, y : BrowserStateChangeDownloadStarted) -> Boolimpl FromJson for BrowserStateChangeTabOpenedfn from_json(value : Json, path : DecodeContext) -> BrowserStateChangeTabOpened raise JsonDecodeErrorimpl ToJson for BrowserStateChangeTabOpenedfn BrowserStateChangeTabOpened::equal(BrowserStateChangeTabOpened, BrowserStateChangeTabOpened) -> Boolfn BrowserStateChangeTabOpened::from_json(value : Json, path : DecodeContext) -> BrowserStateChangeTabOpened raise JsonDecodeErrorfn BrowserStateChangeTabOpened::new(tab_id~ : String, type_~ : String) -> BrowserStateChangeTabOpenedfn BrowserStateChangeTabOpened::not_equal(x : BrowserStateChangeTabOpened, y : BrowserStateChangeTabOpened) -> Boolimpl FromJson for BrowserStateTabEntryimpl ToJson for BrowserStateTabEntryfn BrowserStateTabEntry::from_json(value : Json, path : DecodeContext) -> BrowserStateTabEntry raise JsonDecodeErrorfn BrowserStateTabEntry::new(tab_id~ : String, title~ : String, url~ : String, active? : Bool) -> BrowserStateTabEntryimpl FromJson for BrowserSwitchTabConfigimpl ToJson for BrowserSwitchTabConfigfn BrowserSwitchTabConfig::from_json(value : Json, path : DecodeContext) -> BrowserSwitchTabConfig raise JsonDecodeErrorfn BrowserSwitchTabConfig::not_equal(x : BrowserSwitchTabConfig, y : BrowserSwitchTabConfig) -> Boolpub(all) struct BrowserToolset20260801 {
cache_control : Presence[BrowserToolset20260801CacheControl]
configs : Presence[BrowserToolsetConfigs]
type_ : String
} derive(Eq, Debug)impl FromJson for BrowserToolset20260801impl ToJson for BrowserToolset20260801fn BrowserToolset20260801::from_json(value : Json, path : DecodeContext) -> BrowserToolset20260801 raise JsonDecodeErrorfn BrowserToolset20260801::new(type_~ : String, cache_control? : BrowserToolset20260801CacheControl, configs? : BrowserToolsetConfigs) -> BrowserToolset20260801fn BrowserToolset20260801::not_equal(x : BrowserToolset20260801, y : BrowserToolset20260801) -> Boolpub(all) enum BrowserToolset20260801CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> BrowserToolset20260801CacheControl raise JsonDecodeErrorimpl ToJson for BrowserToolset20260801CacheControlfn BrowserToolset20260801CacheControl::from_json(value : Json, path : DecodeContext) -> BrowserToolset20260801CacheControl raise JsonDecodeErrorfn BrowserToolset20260801CacheControl::not_equal(x : BrowserToolset20260801CacheControl, y : BrowserToolset20260801CacheControl) -> Boolpub(all) struct BrowserToolsetConfigs {
close_tab : Presence[BrowserCloseTabConfig]
double_click : Presence[BrowserDoubleClickConfig]
file_upload : Presence[BrowserFileUploadConfig]
find : Presence[BrowserFindConfig]
form_input : Presence[BrowserFormInputConfig]
get_page_text : Presence[BrowserGetPageTextConfig]
hold_key : Presence[BrowserHoldKeyConfig]
hover : Presence[BrowserHoverConfig]
javascript_exec : Presence[BrowserJavascriptExecConfig]
key : Presence[BrowserKeyConfig]
left_click : Presence[BrowserLeftClickConfig]
left_click_drag : Presence[BrowserLeftClickDragConfig]
left_mouse_down : Presence[BrowserLeftMouseDownConfig]
left_mouse_up : Presence[BrowserLeftMouseUpConfig]
list_tabs : Presence[BrowserListTabsConfig]
middle_click : Presence[BrowserMiddleClickConfig]
mouse_move : Presence[BrowserMouseMoveConfig]
navigate : Presence[BrowserNavigateConfig]
new_tab : Presence[BrowserNewTabConfig]
read_console : Presence[BrowserReadConsoleConfig]
read_network : Presence[BrowserReadNetworkConfig]
read_page : Presence[BrowserReadPageConfig]
right_click : Presence[BrowserRightClickConfig]
screenshot : Presence[BrowserScreenshotConfig]
scroll : Presence[BrowserScrollConfig]
scroll_to : Presence[BrowserScrollToConfig]
switch_tab : Presence[BrowserSwitchTabConfig]
triple_click : Presence[BrowserTripleClickConfig]
type_ : Presence[BrowserTypeConfig]
wait : Presence[BrowserWaitConfig]
zoom : Presence[BrowserZoomConfig]
} derive(Eq, Debug)impl FromJson for BrowserToolsetConfigsimpl ToJson for BrowserToolsetConfigsfn BrowserToolsetConfigs::from_json(value : Json, path : DecodeContext) -> BrowserToolsetConfigs raise JsonDecodeErrorfn BrowserToolsetConfigs::new(close_tab? : BrowserCloseTabConfig, double_click? : BrowserDoubleClickConfig, file_upload? : BrowserFileUploadConfig, find? : BrowserFindConfig, form_input? : BrowserFormInputConfig, get_page_text? : BrowserGetPageTextConfig, hold_key? : BrowserHoldKeyConfig, hover? : BrowserHoverConfig, javascript_exec? : BrowserJavascriptExecConfig, key? : BrowserKeyConfig, left_click? : BrowserLeftClickConfig, left_click_drag? : BrowserLeftClickDragConfig, left_mouse_down? : BrowserLeftMouseDownConfig, left_mouse_up? : BrowserLeftMouseUpConfig, list_tabs? : BrowserListTabsConfig, middle_click? : BrowserMiddleClickConfig, mouse_move? : BrowserMouseMoveConfig, navigate? : BrowserNavigateConfig, new_tab? : BrowserNewTabConfig, read_console? : BrowserReadConsoleConfig, read_network? : BrowserReadNetworkConfig, read_page? : BrowserReadPageConfig, right_click? : BrowserRightClickConfig, screenshot? : BrowserScreenshotConfig, scroll? : BrowserScrollConfig, scroll_to? : BrowserScrollToConfig, switch_tab? : BrowserSwitchTabConfig, triple_click? : BrowserTripleClickConfig, type_? : BrowserTypeConfig, wait? : BrowserWaitConfig, zoom? : BrowserZoomConfig) -> BrowserToolsetConfigsimpl FromJson for BrowserTripleClickConfigimpl ToJson for BrowserTripleClickConfigfn BrowserTripleClickConfig::from_json(value : Json, path : DecodeContext) -> BrowserTripleClickConfig raise JsonDecodeErrorfn BrowserTripleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserTripleClickConfigfn BrowserTripleClickConfig::not_equal(x : BrowserTripleClickConfig, y : BrowserTripleClickConfig) -> Boolimpl FromJson for BrowserTypeConfigimpl ToJson for BrowserTypeConfigfn BrowserTypeConfig::from_json(value : Json, path : DecodeContext) -> BrowserTypeConfig raise JsonDecodeErrorimpl FromJson for BrowserWaitConfigimpl ToJson for BrowserWaitConfigfn BrowserWaitConfig::from_json(value : Json, path : DecodeContext) -> BrowserWaitConfig raise JsonDecodeErrorimpl FromJson for BrowserZoomConfigimpl ToJson for BrowserZoomConfigfn BrowserZoomConfig::from_json(value : Json, path : DecodeContext) -> BrowserZoomConfig raise JsonDecodeErrorpub(all) struct CacheControlEphemeral {
ttl : CacheControlEphemeralTtl?
type_ : String
} derive(Eq, Debug)impl FromJson for CacheControlEphemeralimpl ToJson for CacheControlEphemeralfn CacheControlEphemeral::from_json(value : Json, path : DecodeContext) -> CacheControlEphemeral raise JsonDecodeErrorfn CacheControlEphemeral::new(type_~ : String, ttl? : CacheControlEphemeralTtl) -> CacheControlEphemeralimpl FromJson for CacheControlEphemeralTtlimpl ToJson for CacheControlEphemeralTtlfn CacheControlEphemeralTtl::from_json(value : Json, path : DecodeContext) -> CacheControlEphemeralTtl raise JsonDecodeErrorfn CacheControlEphemeralTtl::not_equal(x : CacheControlEphemeralTtl, y : CacheControlEphemeralTtl) -> Boolimpl FromJson for CacheCreationimpl ToJson for CacheCreationfn CacheCreation::from_json(value : Json, path : DecodeContext) -> CacheCreation raise JsonDecodeErrorfn CacheCreation::new(ephemeral_1h_input_tokens~ : Int, ephemeral_5m_input_tokens~ : Int) -> CacheCreationimpl FromJson for CacheMissMessagesChangedimpl ToJson for CacheMissMessagesChangedfn CacheMissMessagesChanged::from_json(value : Json, path : DecodeContext) -> CacheMissMessagesChanged raise JsonDecodeErrorfn CacheMissMessagesChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissMessagesChangedfn CacheMissMessagesChanged::not_equal(x : CacheMissMessagesChanged, y : CacheMissMessagesChanged) -> Boolimpl FromJson for CacheMissModelChangedimpl ToJson for CacheMissModelChangedfn CacheMissModelChanged::from_json(value : Json, path : DecodeContext) -> CacheMissModelChanged raise JsonDecodeErrorfn CacheMissModelChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissModelChangedimpl FromJson for CacheMissPreviousMessageNotFoundfn from_json(value : Json, path : DecodeContext) -> CacheMissPreviousMessageNotFound raise JsonDecodeErrorimpl ToJson for CacheMissPreviousMessageNotFoundfn CacheMissPreviousMessageNotFound::from_json(value : Json, path : DecodeContext) -> CacheMissPreviousMessageNotFound raise JsonDecodeErrorfn CacheMissPreviousMessageNotFound::not_equal(x : CacheMissPreviousMessageNotFound, y : CacheMissPreviousMessageNotFound) -> Boolpub(all) enum CacheMissReason {
MessagesChanged(CacheMissMessagesChanged)
ModelChanged(CacheMissModelChanged)
PreviousMessageNotFound(CacheMissPreviousMessageNotFound)
SystemChanged(CacheMissSystemChanged)
ToolsChanged(CacheMissToolsChanged)
Unavailable(CacheMissUnavailable)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for CacheMissReasonimpl ToJson for CacheMissReasonfn CacheMissReason::from_json(value : Json, path : DecodeContext) -> CacheMissReason raise JsonDecodeErrorimpl FromJson for CacheMissSystemChangedimpl ToJson for CacheMissSystemChangedfn CacheMissSystemChanged::from_json(value : Json, path : DecodeContext) -> CacheMissSystemChanged raise JsonDecodeErrorfn CacheMissSystemChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissSystemChangedfn CacheMissSystemChanged::not_equal(x : CacheMissSystemChanged, y : CacheMissSystemChanged) -> Boolimpl FromJson for CacheMissToolsChangedimpl ToJson for CacheMissToolsChangedfn CacheMissToolsChanged::from_json(value : Json, path : DecodeContext) -> CacheMissToolsChanged raise JsonDecodeErrorfn CacheMissToolsChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissToolsChangedfn CacheMissUnavailable::from_json(value : Json, path : DecodeContext) -> CacheMissUnavailable raise JsonDecodeErrorimpl FromJson for CapabilitySupportimpl ToJson for CapabilitySupportfn CapabilitySupport::from_json(value : Json, path : DecodeContext) -> CapabilitySupport raise JsonDecodeErrorpub(all) struct CitationsDelta {
citation : CitationsDeltaCitation
type_ : String
} derive(Eq, Debug)impl FromJson for CitationsDeltaimpl ToJson for CitationsDeltafn CitationsDelta::from_json(value : Json, path : DecodeContext) -> CitationsDelta raise JsonDecodeErrorpub(all) enum CitationsDeltaCitation {
CharLocation(ResponseCharLocationCitation)
ContentBlockLocation(ResponseContentBlockLocationCitation)
PageLocation(ResponsePageLocationCitation)
SearchResultLocation(ResponseSearchResultLocationCitation)
WebSearchResultLocation(ResponseWebSearchResultLocationCitation)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for CitationsDeltaCitationimpl ToJson for CitationsDeltaCitationfn CitationsDeltaCitation::from_json(value : Json, path : DecodeContext) -> CitationsDeltaCitation raise JsonDecodeErrorfn CitationsDeltaCitation::not_equal(x : CitationsDeltaCitation, y : CitationsDeltaCitation) -> Boolfn from_json(value : Json, path : DecodeContext) -> ClaudeCodeKeyCreatorNotMemberErrorDetails raise JsonDecodeErrorfn ClaudeCodeKeyCreatorNotMemberErrorDetails::from_json(value : Json, path : DecodeContext) -> ClaudeCodeKeyCreatorNotMemberErrorDetails raise JsonDecodeErrorfn ClaudeCodeKeyCreatorNotMemberErrorDetails::not_equal(x : ClaudeCodeKeyCreatorNotMemberErrorDetails, y : ClaudeCodeKeyCreatorNotMemberErrorDetails) -> Boolfn ClaudeCodeKeyCreatorNotMemberErrorDetails::to_json(_self : ClaudeCodeKeyCreatorNotMemberErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> ClaudeCodeVersionTooOldErrorDetails raise JsonDecodeErrorfn ClaudeCodeVersionTooOldErrorDetails::from_json(value : Json, path : DecodeContext) -> ClaudeCodeVersionTooOldErrorDetails raise JsonDecodeErrorfn ClaudeCodeVersionTooOldErrorDetails::not_equal(x : ClaudeCodeVersionTooOldErrorDetails, y : ClaudeCodeVersionTooOldErrorDetails) -> Boolfn ClaudeCodeVersionTooOldErrorDetails::to_json(_self : ClaudeCodeVersionTooOldErrorDetails) -> Jsonimpl FromJson for CmekKeyDisabledErrorDetailsfn from_json(value : Json, path : DecodeContext) -> CmekKeyDisabledErrorDetails raise JsonDecodeErrorimpl ToJson for CmekKeyDisabledErrorDetailsfn CmekKeyDisabledErrorDetails::equal(CmekKeyDisabledErrorDetails, CmekKeyDisabledErrorDetails) -> Boolfn CmekKeyDisabledErrorDetails::from_json(value : Json, path : DecodeContext) -> CmekKeyDisabledErrorDetails raise JsonDecodeErrorfn CmekKeyDisabledErrorDetails::not_equal(x : CmekKeyDisabledErrorDetails, y : CmekKeyDisabledErrorDetails) -> Boolfn from_json(value : Json, path : DecodeContext) -> CmekKeyNetworkBlockedErrorDetails raise JsonDecodeErrorimpl ToJson for CmekKeyNetworkBlockedErrorDetailsfn CmekKeyNetworkBlockedErrorDetails::from_json(value : Json, path : DecodeContext) -> CmekKeyNetworkBlockedErrorDetails raise JsonDecodeErrorfn CmekKeyNetworkBlockedErrorDetails::not_equal(x : CmekKeyNetworkBlockedErrorDetails, y : CmekKeyNetworkBlockedErrorDetails) -> Boolimpl FromJson for CmekKeyUnreachableErrorDetailsfn from_json(value : Json, path : DecodeContext) -> CmekKeyUnreachableErrorDetails raise JsonDecodeErrorimpl ToJson for CmekKeyUnreachableErrorDetailsfn CmekKeyUnreachableErrorDetails::from_json(value : Json, path : DecodeContext) -> CmekKeyUnreachableErrorDetails raise JsonDecodeErrorfn CmekKeyUnreachableErrorDetails::not_equal(x : CmekKeyUnreachableErrorDetails, y : CmekKeyUnreachableErrorDetails) -> Boolpub(all) struct CodeExecutionTool20250522 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[CodeExecutionTool20250522CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for CodeExecutionTool20250522impl ToJson for CodeExecutionTool20250522fn CodeExecutionTool20250522::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20250522 raise JsonDecodeErrorfn CodeExecutionTool20250522::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : CodeExecutionTool20250522CacheControl, defer_loading? : Bool, strict? : Bool) -> CodeExecutionTool20250522fn CodeExecutionTool20250522::not_equal(x : CodeExecutionTool20250522, y : CodeExecutionTool20250522) -> Boolpub(all) enum CodeExecutionTool20250522CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20250522CacheControl raise JsonDecodeErrorfn CodeExecutionTool20250522CacheControl::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20250522CacheControl raise JsonDecodeErrorfn CodeExecutionTool20250522CacheControl::not_equal(x : CodeExecutionTool20250522CacheControl, y : CodeExecutionTool20250522CacheControl) -> Boolfn CodeExecutionTool20250522CacheControl::to_json(self : CodeExecutionTool20250522CacheControl) -> Jsonpub(all) struct CodeExecutionTool20250825 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[CodeExecutionTool20250825CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for CodeExecutionTool20250825impl ToJson for CodeExecutionTool20250825fn CodeExecutionTool20250825::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20250825 raise JsonDecodeErrorfn CodeExecutionTool20250825::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : CodeExecutionTool20250825CacheControl, defer_loading? : Bool, strict? : Bool) -> CodeExecutionTool20250825fn CodeExecutionTool20250825::not_equal(x : CodeExecutionTool20250825, y : CodeExecutionTool20250825) -> Boolpub(all) enum CodeExecutionTool20250825CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20250825CacheControl raise JsonDecodeErrorfn CodeExecutionTool20250825CacheControl::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20250825CacheControl raise JsonDecodeErrorfn CodeExecutionTool20250825CacheControl::not_equal(x : CodeExecutionTool20250825CacheControl, y : CodeExecutionTool20250825CacheControl) -> Boolfn CodeExecutionTool20250825CacheControl::to_json(self : CodeExecutionTool20250825CacheControl) -> Jsonpub(all) struct CodeExecutionTool20260120 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[CodeExecutionTool20260120CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for CodeExecutionTool20260120impl ToJson for CodeExecutionTool20260120fn CodeExecutionTool20260120::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20260120 raise JsonDecodeErrorfn CodeExecutionTool20260120::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : CodeExecutionTool20260120CacheControl, defer_loading? : Bool, strict? : Bool) -> CodeExecutionTool20260120fn CodeExecutionTool20260120::not_equal(x : CodeExecutionTool20260120, y : CodeExecutionTool20260120) -> Boolpub(all) enum CodeExecutionTool20260120CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20260120CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260120CacheControl::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20260120CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260120CacheControl::not_equal(x : CodeExecutionTool20260120CacheControl, y : CodeExecutionTool20260120CacheControl) -> Boolfn CodeExecutionTool20260120CacheControl::to_json(self : CodeExecutionTool20260120CacheControl) -> Jsonpub(all) struct CodeExecutionTool20260521 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[CodeExecutionTool20260521CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for CodeExecutionTool20260521impl ToJson for CodeExecutionTool20260521fn CodeExecutionTool20260521::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20260521 raise JsonDecodeErrorfn CodeExecutionTool20260521::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : CodeExecutionTool20260521CacheControl, defer_loading? : Bool, strict? : Bool) -> CodeExecutionTool20260521fn CodeExecutionTool20260521::not_equal(x : CodeExecutionTool20260521, y : CodeExecutionTool20260521) -> Boolpub(all) enum CodeExecutionTool20260521CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20260521CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260521CacheControl::from_json(value : Json, path : DecodeContext) -> CodeExecutionTool20260521CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260521CacheControl::not_equal(x : CodeExecutionTool20260521CacheControl, y : CodeExecutionTool20260521CacheControl) -> Boolfn CodeExecutionTool20260521CacheControl::to_json(self : CodeExecutionTool20260521CacheControl) -> Jsonimpl FromJson for CodeExecutionToolResultErrorCodefn from_json(value : Json, path : DecodeContext) -> CodeExecutionToolResultErrorCode raise JsonDecodeErrorimpl ToJson for CodeExecutionToolResultErrorCodefn CodeExecutionToolResultErrorCode::from_json(value : Json, path : DecodeContext) -> CodeExecutionToolResultErrorCode raise JsonDecodeErrorfn CodeExecutionToolResultErrorCode::not_equal(x : CodeExecutionToolResultErrorCode, y : CodeExecutionToolResultErrorCode) -> Boolfn from_json(value : Json, path : DecodeContext) -> CompactionBlockAmbiguousErrorDetails raise JsonDecodeErrorfn CompactionBlockAmbiguousErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionBlockAmbiguousErrorDetails raise JsonDecodeErrorfn CompactionBlockAmbiguousErrorDetails::not_equal(x : CompactionBlockAmbiguousErrorDetails, y : CompactionBlockAmbiguousErrorDetails) -> Boolfn CompactionBlockAmbiguousErrorDetails::to_json(_self : CompactionBlockAmbiguousErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionBlockMisplacedErrorDetails raise JsonDecodeErrorfn CompactionBlockMisplacedErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionBlockMisplacedErrorDetails raise JsonDecodeErrorfn CompactionBlockMisplacedErrorDetails::not_equal(x : CompactionBlockMisplacedErrorDetails, y : CompactionBlockMisplacedErrorDetails) -> Boolfn CompactionBlockMisplacedErrorDetails::to_json(_self : CompactionBlockMisplacedErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionContentMismatchErrorDetails raise JsonDecodeErrorfn CompactionContentMismatchErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionContentMismatchErrorDetails raise JsonDecodeErrorfn CompactionContentMismatchErrorDetails::not_equal(x : CompactionContentMismatchErrorDetails, y : CompactionContentMismatchErrorDetails) -> Boolfn CompactionContentMismatchErrorDetails::to_json(_self : CompactionContentMismatchErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionIncompleteTurnErrorDetails raise JsonDecodeErrorfn CompactionIncompleteTurnErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionIncompleteTurnErrorDetails raise JsonDecodeErrorfn CompactionIncompleteTurnErrorDetails::not_equal(x : CompactionIncompleteTurnErrorDetails, y : CompactionIncompleteTurnErrorDetails) -> Boolfn CompactionIncompleteTurnErrorDetails::to_json(_self : CompactionIncompleteTurnErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionNothingToSummarizeErrorDetails raise JsonDecodeErrorfn CompactionNothingToSummarizeErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionNothingToSummarizeErrorDetails raise JsonDecodeErrorfn CompactionNothingToSummarizeErrorDetails::not_equal(x : CompactionNothingToSummarizeErrorDetails, y : CompactionNothingToSummarizeErrorDetails) -> Boolfn CompactionNothingToSummarizeErrorDetails::to_json(_self : CompactionNothingToSummarizeErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionSignatureInvalidErrorDetails raise JsonDecodeErrorfn CompactionSignatureInvalidErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionSignatureInvalidErrorDetails raise JsonDecodeErrorfn CompactionSignatureInvalidErrorDetails::not_equal(x : CompactionSignatureInvalidErrorDetails, y : CompactionSignatureInvalidErrorDetails) -> Boolfn CompactionSignatureInvalidErrorDetails::to_json(_self : CompactionSignatureInvalidErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionTooManyToolReferencesErrorDetails raise JsonDecodeErrorfn CompactionTooManyToolReferencesErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionTooManyToolReferencesErrorDetails raise JsonDecodeErrorfn CompactionTooManyToolReferencesErrorDetails::not_equal(x : CompactionTooManyToolReferencesErrorDetails, y : CompactionTooManyToolReferencesErrorDetails) -> Boolfn CompactionTooManyToolReferencesErrorDetails::to_json(_self : CompactionTooManyToolReferencesErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionToolChangesMismatchErrorDetails raise JsonDecodeErrorfn CompactionToolChangesMismatchErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionToolChangesMismatchErrorDetails raise JsonDecodeErrorfn CompactionToolChangesMismatchErrorDetails::not_equal(x : CompactionToolChangesMismatchErrorDetails, y : CompactionToolChangesMismatchErrorDetails) -> Boolfn CompactionToolChangesMismatchErrorDetails::to_json(_self : CompactionToolChangesMismatchErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> CompactionUnavailableErrorDetails raise JsonDecodeErrorfn CompactionUnavailableErrorDetails::from_json(value : Json, path : DecodeContext) -> CompactionUnavailableErrorDetails raise JsonDecodeErrorfn CompactionUnavailableErrorDetails::not_equal(x : CompactionUnavailableErrorDetails, y : CompactionUnavailableErrorDetails) -> Boolimpl FromJson for ComputerCursorPositionConfigfn from_json(value : Json, path : DecodeContext) -> ComputerCursorPositionConfig raise JsonDecodeErrorimpl ToJson for ComputerCursorPositionConfigfn ComputerCursorPositionConfig::equal(ComputerCursorPositionConfig, ComputerCursorPositionConfig) -> Boolfn ComputerCursorPositionConfig::from_json(value : Json, path : DecodeContext) -> ComputerCursorPositionConfig raise JsonDecodeErrorfn ComputerCursorPositionConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerCursorPositionConfigfn ComputerCursorPositionConfig::not_equal(x : ComputerCursorPositionConfig, y : ComputerCursorPositionConfig) -> Boolimpl FromJson for ComputerDoubleClickConfigimpl ToJson for ComputerDoubleClickConfigfn ComputerDoubleClickConfig::from_json(value : Json, path : DecodeContext) -> ComputerDoubleClickConfig raise JsonDecodeErrorfn ComputerDoubleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerDoubleClickConfigfn ComputerDoubleClickConfig::not_equal(x : ComputerDoubleClickConfig, y : ComputerDoubleClickConfig) -> Boolimpl FromJson for ComputerHoldKeyConfigimpl ToJson for ComputerHoldKeyConfigfn ComputerHoldKeyConfig::from_json(value : Json, path : DecodeContext) -> ComputerHoldKeyConfig raise JsonDecodeErrorimpl FromJson for ComputerKeyConfigimpl ToJson for ComputerKeyConfigfn ComputerKeyConfig::from_json(value : Json, path : DecodeContext) -> ComputerKeyConfig raise JsonDecodeErrorimpl FromJson for ComputerLeftClickConfigimpl ToJson for ComputerLeftClickConfigfn ComputerLeftClickConfig::from_json(value : Json, path : DecodeContext) -> ComputerLeftClickConfig raise JsonDecodeErrorfn ComputerLeftClickConfig::not_equal(x : ComputerLeftClickConfig, y : ComputerLeftClickConfig) -> Boolimpl FromJson for ComputerLeftClickDragConfigfn from_json(value : Json, path : DecodeContext) -> ComputerLeftClickDragConfig raise JsonDecodeErrorimpl ToJson for ComputerLeftClickDragConfigfn ComputerLeftClickDragConfig::equal(ComputerLeftClickDragConfig, ComputerLeftClickDragConfig) -> Boolfn ComputerLeftClickDragConfig::from_json(value : Json, path : DecodeContext) -> ComputerLeftClickDragConfig raise JsonDecodeErrorfn ComputerLeftClickDragConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerLeftClickDragConfigfn ComputerLeftClickDragConfig::not_equal(x : ComputerLeftClickDragConfig, y : ComputerLeftClickDragConfig) -> Boolimpl FromJson for ComputerLeftMouseDownConfigfn from_json(value : Json, path : DecodeContext) -> ComputerLeftMouseDownConfig raise JsonDecodeErrorimpl ToJson for ComputerLeftMouseDownConfigfn ComputerLeftMouseDownConfig::equal(ComputerLeftMouseDownConfig, ComputerLeftMouseDownConfig) -> Boolfn ComputerLeftMouseDownConfig::from_json(value : Json, path : DecodeContext) -> ComputerLeftMouseDownConfig raise JsonDecodeErrorfn ComputerLeftMouseDownConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerLeftMouseDownConfigfn ComputerLeftMouseDownConfig::not_equal(x : ComputerLeftMouseDownConfig, y : ComputerLeftMouseDownConfig) -> Boolimpl FromJson for ComputerLeftMouseUpConfigimpl ToJson for ComputerLeftMouseUpConfigfn ComputerLeftMouseUpConfig::from_json(value : Json, path : DecodeContext) -> ComputerLeftMouseUpConfig raise JsonDecodeErrorfn ComputerLeftMouseUpConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerLeftMouseUpConfigfn ComputerLeftMouseUpConfig::not_equal(x : ComputerLeftMouseUpConfig, y : ComputerLeftMouseUpConfig) -> Boolimpl FromJson for ComputerMiddleClickConfigimpl ToJson for ComputerMiddleClickConfigfn ComputerMiddleClickConfig::from_json(value : Json, path : DecodeContext) -> ComputerMiddleClickConfig raise JsonDecodeErrorfn ComputerMiddleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerMiddleClickConfigfn ComputerMiddleClickConfig::not_equal(x : ComputerMiddleClickConfig, y : ComputerMiddleClickConfig) -> Boolimpl FromJson for ComputerMouseMoveConfigimpl ToJson for ComputerMouseMoveConfigfn ComputerMouseMoveConfig::from_json(value : Json, path : DecodeContext) -> ComputerMouseMoveConfig raise JsonDecodeErrorfn ComputerMouseMoveConfig::not_equal(x : ComputerMouseMoveConfig, y : ComputerMouseMoveConfig) -> Boolimpl FromJson for ComputerRightClickConfigimpl ToJson for ComputerRightClickConfigfn ComputerRightClickConfig::from_json(value : Json, path : DecodeContext) -> ComputerRightClickConfig raise JsonDecodeErrorfn ComputerRightClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerRightClickConfigfn ComputerRightClickConfig::not_equal(x : ComputerRightClickConfig, y : ComputerRightClickConfig) -> Boolimpl FromJson for ComputerScreenshotConfigimpl ToJson for ComputerScreenshotConfigfn ComputerScreenshotConfig::from_json(value : Json, path : DecodeContext) -> ComputerScreenshotConfig raise JsonDecodeErrorfn ComputerScreenshotConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerScreenshotConfigfn ComputerScreenshotConfig::not_equal(x : ComputerScreenshotConfig, y : ComputerScreenshotConfig) -> Boolimpl FromJson for ComputerScrollConfigimpl ToJson for ComputerScrollConfigfn ComputerScrollConfig::from_json(value : Json, path : DecodeContext) -> ComputerScrollConfig raise JsonDecodeErrorpub(all) struct ComputerToolset20260801 {
cache_control : Presence[ComputerToolset20260801CacheControl]
configs : Presence[ComputerToolsetConfigs]
type_ : String
} derive(Eq, Debug)impl FromJson for ComputerToolset20260801impl ToJson for ComputerToolset20260801fn ComputerToolset20260801::from_json(value : Json, path : DecodeContext) -> ComputerToolset20260801 raise JsonDecodeErrorfn ComputerToolset20260801::new(type_~ : String, cache_control? : ComputerToolset20260801CacheControl, configs? : ComputerToolsetConfigs) -> ComputerToolset20260801fn ComputerToolset20260801::not_equal(x : ComputerToolset20260801, y : ComputerToolset20260801) -> Boolpub(all) enum ComputerToolset20260801CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ComputerToolset20260801CacheControl raise JsonDecodeErrorfn ComputerToolset20260801CacheControl::from_json(value : Json, path : DecodeContext) -> ComputerToolset20260801CacheControl raise JsonDecodeErrorfn ComputerToolset20260801CacheControl::not_equal(x : ComputerToolset20260801CacheControl, y : ComputerToolset20260801CacheControl) -> Boolpub(all) struct ComputerToolsetConfigs {
cursor_position : Presence[ComputerCursorPositionConfig]
double_click : Presence[ComputerDoubleClickConfig]
hold_key : Presence[ComputerHoldKeyConfig]
key : Presence[ComputerKeyConfig]
left_click : Presence[ComputerLeftClickConfig]
left_click_drag : Presence[ComputerLeftClickDragConfig]
left_mouse_down : Presence[ComputerLeftMouseDownConfig]
left_mouse_up : Presence[ComputerLeftMouseUpConfig]
middle_click : Presence[ComputerMiddleClickConfig]
mouse_move : Presence[ComputerMouseMoveConfig]
right_click : Presence[ComputerRightClickConfig]
screenshot : Presence[ComputerScreenshotConfig]
scroll : Presence[ComputerScrollConfig]
triple_click : Presence[ComputerTripleClickConfig]
type_ : Presence[ComputerTypeConfig]
wait : Presence[ComputerWaitConfig]
zoom : Presence[ComputerZoomConfig]
} derive(Eq, Debug)impl FromJson for ComputerToolsetConfigsimpl ToJson for ComputerToolsetConfigsfn ComputerToolsetConfigs::from_json(value : Json, path : DecodeContext) -> ComputerToolsetConfigs raise JsonDecodeErrorfn ComputerToolsetConfigs::new(cursor_position? : ComputerCursorPositionConfig, double_click? : ComputerDoubleClickConfig, hold_key? : ComputerHoldKeyConfig, key? : ComputerKeyConfig, left_click? : ComputerLeftClickConfig, left_click_drag? : ComputerLeftClickDragConfig, left_mouse_down? : ComputerLeftMouseDownConfig, left_mouse_up? : ComputerLeftMouseUpConfig, middle_click? : ComputerMiddleClickConfig, mouse_move? : ComputerMouseMoveConfig, right_click? : ComputerRightClickConfig, screenshot? : ComputerScreenshotConfig, scroll? : ComputerScrollConfig, triple_click? : ComputerTripleClickConfig, type_? : ComputerTypeConfig, wait? : ComputerWaitConfig, zoom? : ComputerZoomConfig) -> ComputerToolsetConfigsfn ComputerToolsetConfigs::not_equal(x : ComputerToolsetConfigs, y : ComputerToolsetConfigs) -> Boolimpl FromJson for ComputerTripleClickConfigimpl ToJson for ComputerTripleClickConfigfn ComputerTripleClickConfig::from_json(value : Json, path : DecodeContext) -> ComputerTripleClickConfig raise JsonDecodeErrorfn ComputerTripleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerTripleClickConfigfn ComputerTripleClickConfig::not_equal(x : ComputerTripleClickConfig, y : ComputerTripleClickConfig) -> Boolimpl FromJson for ComputerTypeConfigimpl ToJson for ComputerTypeConfigfn ComputerTypeConfig::from_json(value : Json, path : DecodeContext) -> ComputerTypeConfig raise JsonDecodeErrorimpl FromJson for ComputerWaitConfigimpl ToJson for ComputerWaitConfigfn ComputerWaitConfig::from_json(value : Json, path : DecodeContext) -> ComputerWaitConfig raise JsonDecodeErrorimpl FromJson for ComputerZoomConfigimpl ToJson for ComputerZoomConfigfn ComputerZoomConfig::from_json(value : Json, path : DecodeContext) -> ComputerZoomConfig raise JsonDecodeErrorpub(all) struct Container {
expires_at : String
id : String
skills : Array[ContainerSkill]?
} derive(Eq, Debug)impl FromJson for ContainerParamsimpl ToJson for ContainerParamsfn ContainerParams::from_json(value : Json, path : DecodeContext) -> ContainerParams raise JsonDecodeErrorpub(all) struct ContainerSkill {
skill_id : String
type_ : ContainerSkillType
version : String
} derive(Eq, Debug)impl FromJson for ContainerSkillimpl ToJson for ContainerSkillfn ContainerSkill::from_json(value : Json, path : DecodeContext) -> ContainerSkill raise JsonDecodeErrorfn ContainerSkill::new(skill_id~ : String, type_~ : ContainerSkillType, version~ : String) -> ContainerSkillimpl FromJson for ContainerSkillTypeimpl ToJson for ContainerSkillTypefn ContainerSkillType::from_json(value : Json, path : DecodeContext) -> ContainerSkillType raise JsonDecodeErrorpub(all) enum ContentBlock {
BashCodeExecutionToolResult(ResponseBashCodeExecutionToolResultBlock)
CodeExecutionToolResult(ResponseCodeExecutionToolResultBlock)
ContainerUpload(ResponseContainerUploadBlock)
RedactedThinking(ResponseRedactedThinkingBlock)
ServerToolUse(ResponseServerToolUseBlock)
Text(ResponseTextBlock)
TextEditorCodeExecutionToolResult(ResponseTextEditorCodeExecutionToolResultBlock)
Thinking(ResponseThinkingBlock)
ToolSearchToolResult(ResponseToolSearchToolResultBlock)
ToolUse(ResponseToolUseBlock)
WebFetchToolResult(ResponseWebFetchToolResultBlock)
WebSearchToolResult(ResponseWebSearchToolResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ContentBlockimpl ToJson for ContentBlockfn ContentBlock::from_json(value : Json, path : DecodeContext) -> ContentBlock raise JsonDecodeErrorpub(all) struct ContentBlockDeltaEvent {
delta : ContentBlockDeltaEventDelta
index : Int
type_ : String
} derive(Eq, Debug)impl FromJson for ContentBlockDeltaEventimpl ToJson for ContentBlockDeltaEventfn ContentBlockDeltaEvent::from_json(value : Json, path : DecodeContext) -> ContentBlockDeltaEvent raise JsonDecodeErrorfn ContentBlockDeltaEvent::new(delta~ : ContentBlockDeltaEventDelta, index~ : Int, type_~ : String) -> ContentBlockDeltaEventfn ContentBlockDeltaEvent::not_equal(x : ContentBlockDeltaEvent, y : ContentBlockDeltaEvent) -> Boolpub(all) enum ContentBlockDeltaEventDelta {
CitationsDelta(CitationsDelta)
InputJsonDelta(InputJsonContentBlockDelta)
SignatureDelta(SignatureContentBlockDelta)
TextDelta(TextContentBlockDelta)
ThinkingDelta(ThinkingContentBlockDelta)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ContentBlockDeltaEventDeltafn from_json(value : Json, path : DecodeContext) -> ContentBlockDeltaEventDelta raise JsonDecodeErrorimpl ToJson for ContentBlockDeltaEventDeltafn ContentBlockDeltaEventDelta::equal(ContentBlockDeltaEventDelta, ContentBlockDeltaEventDelta) -> Boolfn ContentBlockDeltaEventDelta::from_json(value : Json, path : DecodeContext) -> ContentBlockDeltaEventDelta raise JsonDecodeErrorfn ContentBlockDeltaEventDelta::not_equal(x : ContentBlockDeltaEventDelta, y : ContentBlockDeltaEventDelta) -> Boolpub(all) struct ContentBlockSource {
content : ContentBlockSourceContent
type_ : String
} derive(Eq, Debug)impl FromJson for ContentBlockSourceimpl ToJson for ContentBlockSourcefn ContentBlockSource::from_json(value : Json, path : DecodeContext) -> ContentBlockSource raise JsonDecodeErrorfn ContentBlockSource::new(content~ : ContentBlockSourceContent, type_~ : String) -> ContentBlockSourcepub(all) enum ContentBlockSourceContent {
Text(String)
ValueArray(Array[ContentBlockSourceContentValueArrayItem])
} derive(Eq, Debug)impl FromJson for ContentBlockSourceContentimpl ToJson for ContentBlockSourceContentfn ContentBlockSourceContent::from_json(value : Json, path : DecodeContext) -> ContentBlockSourceContent raise JsonDecodeErrorfn ContentBlockSourceContent::not_equal(x : ContentBlockSourceContent, y : ContentBlockSourceContent) -> Boolpub(all) enum ContentBlockSourceContentValueArrayItem {
Image(RequestImageBlock)
Text(RequestTextBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ContentBlockSourceContentValueArrayItem raise JsonDecodeErrorfn ContentBlockSourceContentValueArrayItem::from_json(value : Json, path : DecodeContext) -> ContentBlockSourceContentValueArrayItem raise JsonDecodeErrorfn ContentBlockSourceContentValueArrayItem::not_equal(x : ContentBlockSourceContentValueArrayItem, y : ContentBlockSourceContentValueArrayItem) -> Boolfn ContentBlockSourceContentValueArrayItem::to_json(self : ContentBlockSourceContentValueArrayItem) -> Jsonpub(all) struct ContentBlockStartEvent {
content_block : ContentBlockStartEventContentBlock
index : Int
type_ : String
} derive(Eq, Debug)impl FromJson for ContentBlockStartEventimpl ToJson for ContentBlockStartEventfn ContentBlockStartEvent::from_json(value : Json, path : DecodeContext) -> ContentBlockStartEvent raise JsonDecodeErrorfn ContentBlockStartEvent::new(content_block~ : ContentBlockStartEventContentBlock, index~ : Int, type_~ : String) -> ContentBlockStartEventfn ContentBlockStartEvent::not_equal(x : ContentBlockStartEvent, y : ContentBlockStartEvent) -> Boolpub(all) enum ContentBlockStartEventContentBlock {
BashCodeExecutionToolResult(ResponseBashCodeExecutionToolResultBlock)
CodeExecutionToolResult(ResponseCodeExecutionToolResultBlock)
ContainerUpload(ResponseContainerUploadBlock)
RedactedThinking(ResponseRedactedThinkingBlock)
ServerToolUse(ResponseServerToolUseBlock)
Text(ResponseTextBlock)
TextEditorCodeExecutionToolResult(ResponseTextEditorCodeExecutionToolResultBlock)
Thinking(ResponseThinkingBlock)
ToolSearchToolResult(ResponseToolSearchToolResultBlock)
ToolUse(ResponseToolUseBlock)
WebFetchToolResult(ResponseWebFetchToolResultBlock)
WebSearchToolResult(ResponseWebSearchToolResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ContentBlockStartEventContentBlock raise JsonDecodeErrorimpl ToJson for ContentBlockStartEventContentBlockfn ContentBlockStartEventContentBlock::from_json(value : Json, path : DecodeContext) -> ContentBlockStartEventContentBlock raise JsonDecodeErrorfn ContentBlockStartEventContentBlock::not_equal(x : ContentBlockStartEventContentBlock, y : ContentBlockStartEventContentBlock) -> Boolimpl FromJson for ContentBlockStopEventimpl ToJson for ContentBlockStopEventfn ContentBlockStopEvent::from_json(value : Json, path : DecodeContext) -> ContentBlockStopEvent raise JsonDecodeErrorpub(all) struct ContextManagementCapability {
clear_thinking_20251015 : CapabilitySupport?
clear_tool_uses_20250919 : CapabilitySupport?
compact_20260112 : CapabilitySupport?
supported : Bool
} derive(Eq, Debug)impl FromJson for ContextManagementCapabilityfn from_json(value : Json, path : DecodeContext) -> ContextManagementCapability raise JsonDecodeErrorimpl ToJson for ContextManagementCapabilityfn ContextManagementCapability::equal(ContextManagementCapability, ContextManagementCapability) -> Boolfn ContextManagementCapability::from_json(value : Json, path : DecodeContext) -> ContextManagementCapability raise JsonDecodeErrorfn ContextManagementCapability::new(supported~ : Bool, clear_thinking_20251015? : CapabilitySupport, clear_tool_uses_20250919? : CapabilitySupport, compact_20260112? : CapabilitySupport) -> ContextManagementCapabilityfn ContextManagementCapability::not_equal(x : ContextManagementCapability, y : ContextManagementCapability) -> Boolfn from_json(value : Json, path : DecodeContext) -> ContractSpendLimitReachedErrorDetails raise JsonDecodeErrorfn ContractSpendLimitReachedErrorDetails::from_json(value : Json, path : DecodeContext) -> ContractSpendLimitReachedErrorDetails raise JsonDecodeErrorfn ContractSpendLimitReachedErrorDetails::not_equal(x : ContractSpendLimitReachedErrorDetails, y : ContractSpendLimitReachedErrorDetails) -> Boolfn ContractSpendLimitReachedErrorDetails::to_json(_self : ContractSpendLimitReachedErrorDetails) -> Jsonpub(all) struct CountMessageTokensParams {
cache_control : Presence[CountMessageTokensParamsCacheControl]
messages : Array[InputMessageUnion]
model : String
output_config : OutputConfig?
speed : Presence[Speed]
system : CountMessageTokensParamsSystem?
thinking : ThinkingConfigParam?
tool_choice : ToolChoice?
tools : Array[CountMessageTokensParamsToolsItem]?
} derive(Eq, Debug)impl FromJson for CountMessageTokensParamsimpl ToJson for CountMessageTokensParamsfn CountMessageTokensParams::from_json(value : Json, path : DecodeContext) -> CountMessageTokensParams raise JsonDecodeErrorfn CountMessageTokensParams::new(messages~ : Array[InputMessageUnion], model~ : String, cache_control? : CountMessageTokensParamsCacheControl, output_config? : OutputConfig, speed? : Speed, system? : CountMessageTokensParamsSystem, thinking? : ThinkingConfigParam, tool_choice? : ToolChoice, tools? : Array[CountMessageTokensParamsToolsItem]) -> CountMessageTokensParamsfn CountMessageTokensParams::not_equal(x : CountMessageTokensParams, y : CountMessageTokensParams) -> Boolpub(all) enum CountMessageTokensParamsCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> CountMessageTokensParamsCacheControl raise JsonDecodeErrorfn CountMessageTokensParamsCacheControl::from_json(value : Json, path : DecodeContext) -> CountMessageTokensParamsCacheControl raise JsonDecodeErrorfn CountMessageTokensParamsCacheControl::not_equal(x : CountMessageTokensParamsCacheControl, y : CountMessageTokensParamsCacheControl) -> Boolfn CountMessageTokensParamsCacheControl::to_json(self : CountMessageTokensParamsCacheControl) -> Jsonpub(all) enum CountMessageTokensParamsSystem {
Text(String)
RequestTextBlockArray(Array[RequestTextBlock])
} derive(Eq, Debug)impl FromJson for CountMessageTokensParamsSystemfn from_json(value : Json, path : DecodeContext) -> CountMessageTokensParamsSystem raise JsonDecodeErrorimpl ToJson for CountMessageTokensParamsSystemfn CountMessageTokensParamsSystem::from_json(value : Json, path : DecodeContext) -> CountMessageTokensParamsSystem raise JsonDecodeErrorfn CountMessageTokensParamsSystem::not_equal(x : CountMessageTokensParamsSystem, y : CountMessageTokensParamsSystem) -> Boolpub(all) enum CountMessageTokensParamsToolsItem {
Tool(Tool)
BashTool20250124(BashTool20250124)
CodeExecutionTool20250522(CodeExecutionTool20250522)
CodeExecutionTool20250825(CodeExecutionTool20250825)
CodeExecutionTool20260120(CodeExecutionTool20260120)
CodeExecutionTool20260521(CodeExecutionTool20260521)
BrowserToolset20260801(BrowserToolset20260801)
MemoryTool20250818(MemoryTool20250818)
ComputerToolset20260801(ComputerToolset20260801)
TextEditor20250124(TextEditor20250124)
TextEditor20250429(TextEditor20250429)
TextEditor20250728(TextEditor20250728)
WebSearchTool20250305(WebSearchTool20250305)
WebFetchTool20250910(WebFetchTool20250910)
WebSearchTool20260209(WebSearchTool20260209)
WebFetchTool20260209(WebFetchTool20260209)
WebFetchTool20260309(WebFetchTool20260309)
WebSearchTool20260318(WebSearchTool20260318)
WebFetchTool20260318(WebFetchTool20260318)
ToolSearchToolBM2520251119(ToolSearchToolBM2520251119)
ToolSearchToolRegex20251119(ToolSearchToolRegex20251119)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> CountMessageTokensParamsToolsItem raise JsonDecodeErrorimpl ToJson for CountMessageTokensParamsToolsItemfn CountMessageTokensParamsToolsItem::from_json(value : Json, path : DecodeContext) -> CountMessageTokensParamsToolsItem raise JsonDecodeErrorfn CountMessageTokensParamsToolsItem::not_equal(x : CountMessageTokensParamsToolsItem, y : CountMessageTokensParamsToolsItem) -> Boolimpl FromJson for CountMessageTokensResponsefn from_json(value : Json, path : DecodeContext) -> CountMessageTokensResponse raise JsonDecodeErrorimpl ToJson for CountMessageTokensResponsefn CountMessageTokensResponse::equal(CountMessageTokensResponse, CountMessageTokensResponse) -> Boolfn CountMessageTokensResponse::from_json(value : Json, path : DecodeContext) -> CountMessageTokensResponse raise JsonDecodeErrorfn CountMessageTokensResponse::not_equal(x : CountMessageTokensResponse, y : CountMessageTokensResponse) -> Boolpub(all) struct CreateMessageParams {
model : String
messages : Array[InputMessageUnion]
cache_control : Presence[CreateMessageParamsCacheControl]
container : Presence[CreateMessageParamsContainer]
diagnostics : Presence[DiagnosticsParam]
inference_geo : Presence[String]
max_tokens : Int
metadata : Metadata?
output_config : OutputConfig?
service_tier : CreateMessageParamsServiceTier?
speed : Presence[Speed]
stop_sequences : Array[String]?
stream : Bool?
system : CreateMessageParamsSystem?
thinking : ThinkingConfigParam?
tool_choice : ToolChoice?
tools : Array[CreateMessageParamsToolsItem]?
} derive(Eq, Debug)impl FromJson for CreateMessageParamsimpl ToJson for CreateMessageParamsfn CreateMessageParams::from_json(value : Json, path : DecodeContext) -> CreateMessageParams raise JsonDecodeErrorfn CreateMessageParams::new(model~ : String, messages~ : Array[InputMessageUnion], max_tokens~ : Int, cache_control? : CreateMessageParamsCacheControl, container? : CreateMessageParamsContainer, diagnostics? : DiagnosticsParam, inference_geo? : String, metadata? : Metadata, output_config? : OutputConfig, service_tier? : CreateMessageParamsServiceTier, speed? : Speed, stop_sequences? : Array[String], stream? : Bool, system? : CreateMessageParamsSystem, thinking? : ThinkingConfigParam, tool_choice? : ToolChoice, tools? : Array[CreateMessageParamsToolsItem]) -> CreateMessageParamspub(all) enum CreateMessageParamsCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for CreateMessageParamsCacheControlfn from_json(value : Json, path : DecodeContext) -> CreateMessageParamsCacheControl raise JsonDecodeErrorimpl ToJson for CreateMessageParamsCacheControlfn CreateMessageParamsCacheControl::from_json(value : Json, path : DecodeContext) -> CreateMessageParamsCacheControl raise JsonDecodeErrorfn CreateMessageParamsCacheControl::not_equal(x : CreateMessageParamsCacheControl, y : CreateMessageParamsCacheControl) -> Boolpub(all) enum CreateMessageParamsContainer {
ContainerParams(ContainerParams)
Text(String)
} derive(Eq, Debug)impl FromJson for CreateMessageParamsContainerfn from_json(value : Json, path : DecodeContext) -> CreateMessageParamsContainer raise JsonDecodeErrorimpl ToJson for CreateMessageParamsContainerfn CreateMessageParamsContainer::equal(CreateMessageParamsContainer, CreateMessageParamsContainer) -> Boolfn CreateMessageParamsContainer::from_json(value : Json, path : DecodeContext) -> CreateMessageParamsContainer raise JsonDecodeErrorfn CreateMessageParamsContainer::not_equal(x : CreateMessageParamsContainer, y : CreateMessageParamsContainer) -> Boolimpl FromJson for CreateMessageParamsServiceTierfn from_json(value : Json, path : DecodeContext) -> CreateMessageParamsServiceTier raise JsonDecodeErrorimpl ToJson for CreateMessageParamsServiceTierfn CreateMessageParamsServiceTier::from_json(value : Json, path : DecodeContext) -> CreateMessageParamsServiceTier raise JsonDecodeErrorfn CreateMessageParamsServiceTier::not_equal(x : CreateMessageParamsServiceTier, y : CreateMessageParamsServiceTier) -> Boolpub(all) enum CreateMessageParamsSystem {
Text(String)
RequestTextBlockArray(Array[RequestTextBlock])
} derive(Eq, Debug)impl FromJson for CreateMessageParamsSystemimpl ToJson for CreateMessageParamsSystemfn CreateMessageParamsSystem::from_json(value : Json, path : DecodeContext) -> CreateMessageParamsSystem raise JsonDecodeErrorfn CreateMessageParamsSystem::not_equal(x : CreateMessageParamsSystem, y : CreateMessageParamsSystem) -> Boolpub(all) enum CreateMessageParamsToolsItem {
Tool(Tool)
BashTool20250124(BashTool20250124)
CodeExecutionTool20250522(CodeExecutionTool20250522)
CodeExecutionTool20250825(CodeExecutionTool20250825)
CodeExecutionTool20260120(CodeExecutionTool20260120)
CodeExecutionTool20260521(CodeExecutionTool20260521)
BrowserToolset20260801(BrowserToolset20260801)
MemoryTool20250818(MemoryTool20250818)
ComputerToolset20260801(ComputerToolset20260801)
TextEditor20250124(TextEditor20250124)
TextEditor20250429(TextEditor20250429)
TextEditor20250728(TextEditor20250728)
WebSearchTool20250305(WebSearchTool20250305)
WebFetchTool20250910(WebFetchTool20250910)
WebSearchTool20260209(WebSearchTool20260209)
WebFetchTool20260209(WebFetchTool20260209)
WebFetchTool20260309(WebFetchTool20260309)
WebSearchTool20260318(WebSearchTool20260318)
WebFetchTool20260318(WebFetchTool20260318)
ToolSearchToolBM2520251119(ToolSearchToolBM2520251119)
ToolSearchToolRegex20251119(ToolSearchToolRegex20251119)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for CreateMessageParamsToolsItemfn from_json(value : Json, path : DecodeContext) -> CreateMessageParamsToolsItem raise JsonDecodeErrorimpl ToJson for CreateMessageParamsToolsItemfn CreateMessageParamsToolsItem::equal(CreateMessageParamsToolsItem, CreateMessageParamsToolsItem) -> Boolfn CreateMessageParamsToolsItem::from_json(value : Json, path : DecodeContext) -> CreateMessageParamsToolsItem raise JsonDecodeErrorfn CreateMessageParamsToolsItem::not_equal(x : CreateMessageParamsToolsItem, y : CreateMessageParamsToolsItem) -> Boolimpl FromJson for Diagnosticsimpl ToJson for Diagnosticsimpl FromJson for DiagnosticsParamimpl ToJson for DiagnosticsParamfn DiagnosticsParam::from_json(value : Json, path : DecodeContext) -> DiagnosticsParam raise JsonDecodeErrorimpl FromJson for DirectCallerimpl ToJson for DirectCallerfn DirectCaller::from_json(value : Json, path : DecodeContext) -> DirectCaller raise JsonDecodeErrorpub(all) struct EffortCapability {
high : CapabilitySupport
low : CapabilitySupport
max : CapabilitySupport
medium : CapabilitySupport
supported : Bool
xhigh : CapabilitySupport?
} derive(Eq, Debug)impl FromJson for EffortCapabilityimpl ToJson for EffortCapabilityfn EffortCapability::from_json(value : Json, path : DecodeContext) -> EffortCapability raise JsonDecodeErrorfn EffortCapability::new(high~ : CapabilitySupport, low~ : CapabilitySupport, max~ : CapabilitySupport, medium~ : CapabilitySupport, supported~ : Bool, xhigh? : CapabilitySupport) -> EffortCapabilityimpl FromJson for EffortLevelimpl ToJson for EffortLevelfn from_json(value : Json, path : DecodeContext) -> EnforcedSpendLimitReachedErrorDetails raise JsonDecodeErrorfn EnforcedSpendLimitReachedErrorDetails::from_json(value : Json, path : DecodeContext) -> EnforcedSpendLimitReachedErrorDetails raise JsonDecodeErrorfn EnforcedSpendLimitReachedErrorDetails::not_equal(x : EnforcedSpendLimitReachedErrorDetails, y : EnforcedSpendLimitReachedErrorDetails) -> Boolfn EnforcedSpendLimitReachedErrorDetails::to_json(_self : EnforcedSpendLimitReachedErrorDetails) -> Jsonimpl FromJson for ErrorResponseimpl ToJson for ErrorResponsefn ErrorResponse::from_json(value : Json, path : DecodeContext) -> ErrorResponse raise JsonDecodeErrorpub(all) enum ErrorResponseError {
ApiError(APIError)
AuthenticationError(AuthenticationError)
BillingError(BillingError)
InvalidRequestError(InvalidRequestError)
NotFoundError(NotFoundError)
OverloadedError(OverloadedError)
PermissionError(PermissionError)
RateLimitError(RateLimitError)
TimeoutError(GatewayTimeoutError)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ErrorResponseErrorimpl ToJson for ErrorResponseErrorfn ErrorResponseError::from_json(value : Json, path : DecodeContext) -> ErrorResponseError raise JsonDecodeErrorimpl FromJson for FileDocumentSourceimpl ToJson for FileDocumentSourcefn FileDocumentSource::from_json(value : Json, path : DecodeContext) -> FileDocumentSource raise JsonDecodeErrorimpl FromJson for FileImageSourceimpl ToJson for FileImageSourcefn FileImageSource::from_json(value : Json, path : DecodeContext) -> FileImageSource raise JsonDecodeErrorimpl FromJson for GatewayTimeoutErrorimpl ToJson for GatewayTimeoutErrorfn GatewayTimeoutError::from_json(value : Json, path : DecodeContext) -> GatewayTimeoutError raise JsonDecodeErrorfn from_json(value : Json, path : DecodeContext) -> ImageDimensionsTooLargeErrorDetails raise JsonDecodeErrorfn ImageDimensionsTooLargeErrorDetails::from_json(value : Json, path : DecodeContext) -> ImageDimensionsTooLargeErrorDetails raise JsonDecodeErrorfn ImageDimensionsTooLargeErrorDetails::new(max_side_length_pixels~ : Int, paths~ : Array[String]) -> ImageDimensionsTooLargeErrorDetailsfn ImageDimensionsTooLargeErrorDetails::not_equal(x : ImageDimensionsTooLargeErrorDetails, y : ImageDimensionsTooLargeErrorDetails) -> Boolpub(all) enum InputContentBlock {
BashCodeExecutionToolResult(RequestBashCodeExecutionToolResultBlock)
CodeExecutionToolResult(RequestCodeExecutionToolResultBlock)
ContainerUpload(RequestContainerUploadBlock)
Document(RequestDocumentBlock)
Image(RequestImageBlock)
RedactedThinking(RequestRedactedThinkingBlock)
SearchResult(RequestSearchResultBlock)
ServerToolUse(RequestServerToolUseBlock)
Text(RequestTextBlock)
TextEditorCodeExecutionToolResult(RequestTextEditorCodeExecutionToolResultBlock)
Thinking(RequestThinkingBlock)
ToolResult(RequestToolResultBlock)
ToolSearchToolResult(RequestToolSearchToolResultBlock)
ToolUse(RequestToolUseBlock)
WebFetchToolResult(RequestWebFetchToolResultBlock)
WebSearchToolResult(RequestWebSearchToolResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for InputContentBlockimpl ToJson for InputContentBlockfn InputContentBlock::from_json(value : Json, path : DecodeContext) -> InputContentBlock raise JsonDecodeErrorimpl FromJson for InputJsonContentBlockDeltafn from_json(value : Json, path : DecodeContext) -> InputJsonContentBlockDelta raise JsonDecodeErrorimpl ToJson for InputJsonContentBlockDeltafn InputJsonContentBlockDelta::equal(InputJsonContentBlockDelta, InputJsonContentBlockDelta) -> Boolfn InputJsonContentBlockDelta::from_json(value : Json, path : DecodeContext) -> InputJsonContentBlockDelta raise JsonDecodeErrorfn InputJsonContentBlockDelta::new(partial_json~ : String, type_~ : String) -> InputJsonContentBlockDeltafn InputJsonContentBlockDelta::not_equal(x : InputJsonContentBlockDelta, y : InputJsonContentBlockDelta) -> Boolpub(all) enum InputMessageContent {
Text(String)
InputContentBlockArray(Array[InputContentBlock])
} derive(Eq, Debug)impl FromJson for InputMessageContentimpl ToJson for InputMessageContentfn InputMessageContent::from_json(value : Json, path : DecodeContext) -> InputMessageContent raise JsonDecodeErrorpub(all) enum InputMessageUnion {
Assistant(AssistantInputMessage)
System(SystemInputMessage)
User(UserInputMessage)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for InputMessageUnionimpl ToJson for InputMessageUnionfn InputMessageUnion::from_json(value : Json, path : DecodeContext) -> InputMessageUnion raise JsonDecodeErrorimpl FromJson for InvalidRequestErrorimpl ToJson for InvalidRequestErrorfn InvalidRequestError::from_json(value : Json, path : DecodeContext) -> InvalidRequestError raise JsonDecodeErrorimpl FromJson for JsonOutputFormatimpl ToJson for JsonOutputFormatfn JsonOutputFormat::from_json(value : Json, path : DecodeContext) -> JsonOutputFormat raise JsonDecodeErrorfn from_json(value : Json, path : DecodeContext) -> LinkedOrganizationBillingUnavailableErrorDetails raise JsonDecodeErrorfn LinkedOrganizationBillingUnavailableErrorDetails::from_json(value : Json, path : DecodeContext) -> LinkedOrganizationBillingUnavailableErrorDetails raise JsonDecodeErrorfn LinkedOrganizationBillingUnavailableErrorDetails::to_json(_self : LinkedOrganizationBillingUnavailableErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> LinkedOrganizationSpendLimitReachedErrorDetails raise JsonDecodeErrorfn LinkedOrganizationSpendLimitReachedErrorDetails::from_json(value : Json, path : DecodeContext) -> LinkedOrganizationSpendLimitReachedErrorDetails raise JsonDecodeErrorfn LinkedOrganizationSpendLimitReachedErrorDetails::to_json(_self : LinkedOrganizationSpendLimitReachedErrorDetails) -> Jsonimpl FromJson for ListResponseModelInfoimpl ToJson for ListResponseModelInfofn ListResponseModelInfo::from_json(value : Json, path : DecodeContext) -> ListResponseModelInfo raise JsonDecodeErrorfn ListResponseModelInfo::new(data~ : Array[ModelInfo], has_more~ : Bool, first_id? : String, last_id? : String) -> ListResponseModelInfopub(all) struct MemoryTool20250818 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[MemoryTool20250818CacheControl]
defer_loading : Bool?
input_examples : Array[Map[String, Json]]?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for MemoryTool20250818impl ToJson for MemoryTool20250818fn MemoryTool20250818::from_json(value : Json, path : DecodeContext) -> MemoryTool20250818 raise JsonDecodeErrorfn MemoryTool20250818::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : MemoryTool20250818CacheControl, defer_loading? : Bool, input_examples? : Array[Map[String, Json]], strict? : Bool) -> MemoryTool20250818pub(all) enum MemoryTool20250818CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for MemoryTool20250818CacheControlfn from_json(value : Json, path : DecodeContext) -> MemoryTool20250818CacheControl raise JsonDecodeErrorimpl ToJson for MemoryTool20250818CacheControlfn MemoryTool20250818CacheControl::from_json(value : Json, path : DecodeContext) -> MemoryTool20250818CacheControl raise JsonDecodeErrorfn MemoryTool20250818CacheControl::not_equal(x : MemoryTool20250818CacheControl, y : MemoryTool20250818CacheControl) -> Boolpub(all) struct Message {
id : String
content : Array[ContentBlock]
model : String
stop_reason : StopReason?
stop_sequence : Presence[String]
stop_details : Presence[StopDetails]
usage : Usage
diagnostics : Presence[Diagnostics]
container : Presence[Container]
} derive(Eq, Debug)fn Message::new(id~ : String, content~ : Array[ContentBlock], model~ : String, usage~ : Usage, stop_reason? : StopReason, stop_sequence? : String, stop_details? : StopDetails, diagnostics? : Diagnostics, container? : Container) -> Messagepub(all) struct MessageDelta {
container : Presence[Container]
stop_details : Presence[StopDetails]
stop_reason : StopReason?
stop_sequence : Presence[String]
} derive(Eq, Debug)impl FromJson for MessageDeltaimpl ToJson for MessageDeltafn MessageDelta::from_json(value : Json, path : DecodeContext) -> MessageDelta raise JsonDecodeErrorfn MessageDelta::new(container? : Container, stop_details? : StopDetails, stop_reason? : StopReason, stop_sequence? : String) -> MessageDeltapub(all) struct MessageDeltaEvent {
delta : MessageDelta
type_ : String
usage : MessageDeltaUsage
} derive(Eq, Debug)impl FromJson for MessageDeltaEventimpl ToJson for MessageDeltaEventfn MessageDeltaEvent::from_json(value : Json, path : DecodeContext) -> MessageDeltaEvent raise JsonDecodeErrorfn MessageDeltaEvent::new(delta~ : MessageDelta, type_~ : String, usage~ : MessageDeltaUsage) -> MessageDeltaEventpub(all) struct MessageDeltaUsage {
cache_creation_input_tokens : Presence[Int]
cache_read_input_tokens : Presence[Int]
input_tokens : Presence[Int]
output_tokens : Int
output_tokens_details : Presence[OutputTokensDetails]
server_tool_use : Presence[ServerToolUsage]
} derive(Eq, Debug)impl FromJson for MessageDeltaUsageimpl ToJson for MessageDeltaUsagefn MessageDeltaUsage::from_json(value : Json, path : DecodeContext) -> MessageDeltaUsage raise JsonDecodeErrorfn MessageDeltaUsage::new(output_tokens~ : Int, cache_creation_input_tokens? : Int, cache_read_input_tokens? : Int, input_tokens? : Int, output_tokens_details? : OutputTokensDetails, server_tool_use? : ServerToolUsage) -> MessageDeltaUsageimpl FromJson for MessageStartEventimpl ToJson for MessageStartEventfn MessageStartEvent::from_json(value : Json, path : DecodeContext) -> MessageStartEvent raise JsonDecodeErrorimpl FromJson for MessageStopEventimpl ToJson for MessageStopEventfn MessageStopEvent::from_json(value : Json, path : DecodeContext) -> MessageStopEvent raise JsonDecodeErrorpub(all) enum MessageStreamEvent {
ContentBlockDelta(ContentBlockDeltaEvent)
ContentBlockStart(ContentBlockStartEvent)
ContentBlockStop(ContentBlockStopEvent)
MessageDelta(MessageDeltaEvent)
MessageStart(MessageStartEvent)
MessageStop(MessageStopEvent)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for MessageStreamEventimpl ToJson for MessageStreamEventfn MessageStreamEvent::from_json(value : Json, path : DecodeContext) -> MessageStreamEvent raise JsonDecodeErrorpub(all) struct ModelCapabilities {
batch : CapabilitySupport
citations : CapabilitySupport
code_execution : CapabilitySupport
context_management : ContextManagementCapability
effort : EffortCapability
image_input : CapabilitySupport
pdf_input : CapabilitySupport
server_tools : ServerToolsCapability
structured_outputs : CapabilitySupport
thinking : ThinkingCapability
} derive(Eq, Debug)impl FromJson for ModelCapabilitiesimpl ToJson for ModelCapabilitiesfn ModelCapabilities::from_json(value : Json, path : DecodeContext) -> ModelCapabilities raise JsonDecodeErrorfn ModelCapabilities::new(batch~ : CapabilitySupport, citations~ : CapabilitySupport, code_execution~ : CapabilitySupport, context_management~ : ContextManagementCapability, effort~ : EffortCapability, image_input~ : CapabilitySupport, pdf_input~ : CapabilitySupport, server_tools~ : ServerToolsCapability, structured_outputs~ : CapabilitySupport, thinking~ : ThinkingCapability) -> ModelCapabilitiespub(all) struct ModelInfo {
capabilities : ModelCapabilities?
created_at : String
deprecated_at : String?
display_name : String
id : String
lifecycle : ModelInfoLifecycle
line : ModelLine?
max_input_tokens : Int?
max_tokens : Int?
retires_at : String?
} derive(Eq, Debug)fn ModelInfo::new(created_at~ : String, display_name~ : String, id~ : String, lifecycle~ : ModelInfoLifecycle, capabilities? : ModelCapabilities, deprecated_at? : String, line? : ModelLine, max_input_tokens? : Int, max_tokens? : Int, retires_at? : String) -> ModelInfoimpl FromJson for ModelInfoLifecycleimpl ToJson for ModelInfoLifecyclefn ModelInfoLifecycle::from_json(value : Json, path : DecodeContext) -> ModelInfoLifecycle raise JsonDecodeErrorimpl FromJson for ModelsListLifecycleItemimpl ToJson for ModelsListLifecycleItemfn ModelsListLifecycleItem::from_json(value : Json, path : DecodeContext) -> ModelsListLifecycleItem raise JsonDecodeErrorfn ModelsListLifecycleItem::not_equal(x : ModelsListLifecycleItem, y : ModelsListLifecycleItem) -> Boolimpl FromJson for NotFoundErrorimpl ToJson for NotFoundErrorfn NotFoundError::from_json(value : Json, path : DecodeContext) -> NotFoundError raise JsonDecodeErrorimpl FromJson for OrganizationOnHoldErrorDetailsfn from_json(value : Json, path : DecodeContext) -> OrganizationOnHoldErrorDetails raise JsonDecodeErrorimpl ToJson for OrganizationOnHoldErrorDetailsfn OrganizationOnHoldErrorDetails::from_json(value : Json, path : DecodeContext) -> OrganizationOnHoldErrorDetails raise JsonDecodeErrorfn OrganizationOnHoldErrorDetails::not_equal(x : OrganizationOnHoldErrorDetails, y : OrganizationOnHoldErrorDetails) -> Boolpub(all) struct OutputConfig {
effort : Presence[EffortLevel]
format : Presence[JsonOutputFormat]
} derive(Eq, Debug)impl FromJson for OutputConfigimpl ToJson for OutputConfigfn OutputConfig::from_json(value : Json, path : DecodeContext) -> OutputConfig raise JsonDecodeErrorimpl FromJson for OutputTokensDetailsimpl ToJson for OutputTokensDetailsfn OutputTokensDetails::from_json(value : Json, path : DecodeContext) -> OutputTokensDetails raise JsonDecodeErrorimpl FromJson for OverloadedErrorimpl ToJson for OverloadedErrorfn OverloadedError::from_json(value : Json, path : DecodeContext) -> OverloadedError raise JsonDecodeErrorimpl FromJson for PermissionErrorimpl ToJson for PermissionErrorfn PermissionError::from_json(value : Json, path : DecodeContext) -> PermissionError raise JsonDecodeErrorimpl FromJson for PlainTextSourceimpl ToJson for PlainTextSourcefn PlainTextSource::from_json(value : Json, path : DecodeContext) -> PlainTextSource raise JsonDecodeErrorimpl FromJson for RampLimitExceededErrorDetailsfn from_json(value : Json, path : DecodeContext) -> RampLimitExceededErrorDetails raise JsonDecodeErrorimpl ToJson for RampLimitExceededErrorDetailsfn RampLimitExceededErrorDetails::equal(RampLimitExceededErrorDetails, RampLimitExceededErrorDetails) -> Boolfn RampLimitExceededErrorDetails::from_json(value : Json, path : DecodeContext) -> RampLimitExceededErrorDetails raise JsonDecodeErrorfn RampLimitExceededErrorDetails::not_equal(x : RampLimitExceededErrorDetails, y : RampLimitExceededErrorDetails) -> Boolimpl FromJson for RateLimitErrorimpl ToJson for RateLimitErrorfn RateLimitError::from_json(value : Json, path : DecodeContext) -> RateLimitError raise JsonDecodeErrorimpl FromJson for RefusalCategoryimpl ToJson for RefusalCategoryfn RefusalCategory::from_json(value : Json, path : DecodeContext) -> RefusalCategory raise JsonDecodeErrorpub(all) struct RefusalStopDetails {
category : RefusalCategory?
explanation : String?
type_ : String
} derive(Eq, Debug)impl FromJson for RefusalStopDetailsimpl ToJson for RefusalStopDetailsfn RefusalStopDetails::from_json(value : Json, path : DecodeContext) -> RefusalStopDetails raise JsonDecodeErrorfn RefusalStopDetails::new(type_~ : String, category? : RefusalCategory, explanation? : String) -> RefusalStopDetailsfn from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionOutputBlock raise JsonDecodeErrorfn RequestBashCodeExecutionOutputBlock::from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionOutputBlock raise JsonDecodeErrorfn RequestBashCodeExecutionOutputBlock::new(file_id~ : String) -> RequestBashCodeExecutionOutputBlockfn RequestBashCodeExecutionOutputBlock::not_equal(x : RequestBashCodeExecutionOutputBlock, y : RequestBashCodeExecutionOutputBlock) -> Boolpub(all) struct RequestBashCodeExecutionResultBlock {
content : Array[RequestBashCodeExecutionOutputBlock]
return_code : Int
stderr : String
stdout : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionResultBlock raise JsonDecodeErrorfn RequestBashCodeExecutionResultBlock::from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionResultBlock raise JsonDecodeErrorfn RequestBashCodeExecutionResultBlock::new(content~ : Array[RequestBashCodeExecutionOutputBlock], return_code~ : Int, stderr~ : String, stdout~ : String, type_~ : String) -> RequestBashCodeExecutionResultBlockfn RequestBashCodeExecutionResultBlock::not_equal(x : RequestBashCodeExecutionResultBlock, y : RequestBashCodeExecutionResultBlock) -> Boolpub(all) struct RequestBashCodeExecutionToolResultBlock {
cache_control : Presence[RequestBashCodeExecutionToolResultBlockCacheControl]
content : RequestBashCodeExecutionToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlock::new(content~ : RequestBashCodeExecutionToolResultBlockContent, tool_use_id~ : String, type_~ : String, cache_control? : RequestBashCodeExecutionToolResultBlockCacheControl) -> RequestBashCodeExecutionToolResultBlockfn RequestBashCodeExecutionToolResultBlock::not_equal(x : RequestBashCodeExecutionToolResultBlock, y : RequestBashCodeExecutionToolResultBlock) -> Boolfn RequestBashCodeExecutionToolResultBlock::to_json(self : RequestBashCodeExecutionToolResultBlock) -> Jsonpub(all) enum RequestBashCodeExecutionToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorpub(all) enum RequestBashCodeExecutionToolResultBlockContent {
BashCodeExecutionToolResultError(RequestBashCodeExecutionToolResultError)
BashCodeExecutionResult(RequestBashCodeExecutionResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlockContent::to_json(self : RequestBashCodeExecutionToolResultBlockContent) -> Jsonpub(all) struct RequestBashCodeExecutionToolResultError {
error_code : BashCodeExecutionToolResultErrorCode
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultError raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultError::from_json(value : Json, path : DecodeContext) -> RequestBashCodeExecutionToolResultError raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultError::new(error_code~ : BashCodeExecutionToolResultErrorCode, type_~ : String) -> RequestBashCodeExecutionToolResultErrorfn RequestBashCodeExecutionToolResultError::not_equal(x : RequestBashCodeExecutionToolResultError, y : RequestBashCodeExecutionToolResultError) -> Boolfn RequestBashCodeExecutionToolResultError::to_json(self : RequestBashCodeExecutionToolResultError) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestBodyEncodingInvalidErrorDetails raise JsonDecodeErrorfn RequestBodyEncodingInvalidErrorDetails::from_json(value : Json, path : DecodeContext) -> RequestBodyEncodingInvalidErrorDetails raise JsonDecodeErrorfn RequestBodyEncodingInvalidErrorDetails::not_equal(x : RequestBodyEncodingInvalidErrorDetails, y : RequestBodyEncodingInvalidErrorDetails) -> Boolfn RequestBodyEncodingInvalidErrorDetails::to_json(_self : RequestBodyEncodingInvalidErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestBodyEncodingUnsupportedErrorDetails raise JsonDecodeErrorfn RequestBodyEncodingUnsupportedErrorDetails::from_json(value : Json, path : DecodeContext) -> RequestBodyEncodingUnsupportedErrorDetails raise JsonDecodeErrorfn RequestBodyEncodingUnsupportedErrorDetails::not_equal(x : RequestBodyEncodingUnsupportedErrorDetails, y : RequestBodyEncodingUnsupportedErrorDetails) -> Boolfn RequestBodyEncodingUnsupportedErrorDetails::to_json(_self : RequestBodyEncodingUnsupportedErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestBodyTooLargeAfterDecodingErrorDetails raise JsonDecodeErrorfn RequestBodyTooLargeAfterDecodingErrorDetails::from_json(value : Json, path : DecodeContext) -> RequestBodyTooLargeAfterDecodingErrorDetails raise JsonDecodeErrorfn RequestBodyTooLargeAfterDecodingErrorDetails::not_equal(x : RequestBodyTooLargeAfterDecodingErrorDetails, y : RequestBodyTooLargeAfterDecodingErrorDetails) -> Boolfn RequestBodyTooLargeAfterDecodingErrorDetails::to_json(_self : RequestBodyTooLargeAfterDecodingErrorDetails) -> Jsonpub(all) struct RequestBrowserStateBlock {
cache_control : Presence[RequestBrowserStateBlockCacheControl]
state_changes : Presence[Array[RequestBrowserStateBlockStateChangesItem]]
tabs : Array[BrowserStateTabEntry]
type_ : String
} derive(Eq, Debug)impl FromJson for RequestBrowserStateBlockimpl ToJson for RequestBrowserStateBlockfn RequestBrowserStateBlock::from_json(value : Json, path : DecodeContext) -> RequestBrowserStateBlock raise JsonDecodeErrorfn RequestBrowserStateBlock::new(tabs~ : Array[BrowserStateTabEntry], type_~ : String, cache_control? : RequestBrowserStateBlockCacheControl, state_changes? : Array[RequestBrowserStateBlockStateChangesItem]) -> RequestBrowserStateBlockfn RequestBrowserStateBlock::not_equal(x : RequestBrowserStateBlock, y : RequestBrowserStateBlock) -> Boolpub(all) enum RequestBrowserStateBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBrowserStateBlockCacheControl raise JsonDecodeErrorfn RequestBrowserStateBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestBrowserStateBlockCacheControl raise JsonDecodeErrorfn RequestBrowserStateBlockCacheControl::not_equal(x : RequestBrowserStateBlockCacheControl, y : RequestBrowserStateBlockCacheControl) -> Boolfn RequestBrowserStateBlockCacheControl::to_json(self : RequestBrowserStateBlockCacheControl) -> Jsonpub(all) enum RequestBrowserStateBlockStateChangesItem {
DownloadCompleted(BrowserStateChangeDownloadCompleted)
DownloadFailed(BrowserStateChangeDownloadFailed)
DownloadStarted(BrowserStateChangeDownloadStarted)
TabOpened(BrowserStateChangeTabOpened)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestBrowserStateBlockStateChangesItem raise JsonDecodeErrorfn RequestBrowserStateBlockStateChangesItem::from_json(value : Json, path : DecodeContext) -> RequestBrowserStateBlockStateChangesItem raise JsonDecodeErrorfn RequestBrowserStateBlockStateChangesItem::not_equal(x : RequestBrowserStateBlockStateChangesItem, y : RequestBrowserStateBlockStateChangesItem) -> Boolfn RequestBrowserStateBlockStateChangesItem::to_json(self : RequestBrowserStateBlockStateChangesItem) -> Jsonimpl FromJson for RequestCharLocationCitationfn from_json(value : Json, path : DecodeContext) -> RequestCharLocationCitation raise JsonDecodeErrorimpl ToJson for RequestCharLocationCitationfn RequestCharLocationCitation::equal(RequestCharLocationCitation, RequestCharLocationCitation) -> Boolfn RequestCharLocationCitation::from_json(value : Json, path : DecodeContext) -> RequestCharLocationCitation raise JsonDecodeErrorfn RequestCharLocationCitation::new(cited_text~ : String, document_index~ : Int, end_char_index~ : Int, start_char_index~ : Int, type_~ : String, document_title? : String) -> RequestCharLocationCitationfn RequestCharLocationCitation::not_equal(x : RequestCharLocationCitation, y : RequestCharLocationCitation) -> Boolimpl FromJson for RequestCitationsConfigimpl ToJson for RequestCitationsConfigfn RequestCitationsConfig::from_json(value : Json, path : DecodeContext) -> RequestCitationsConfig raise JsonDecodeErrorfn RequestCitationsConfig::not_equal(x : RequestCitationsConfig, y : RequestCitationsConfig) -> Boolimpl FromJson for RequestCodeExecutionOutputBlockfn from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionOutputBlock raise JsonDecodeErrorimpl ToJson for RequestCodeExecutionOutputBlockfn RequestCodeExecutionOutputBlock::from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionOutputBlock raise JsonDecodeErrorfn RequestCodeExecutionOutputBlock::not_equal(x : RequestCodeExecutionOutputBlock, y : RequestCodeExecutionOutputBlock) -> Boolpub(all) struct RequestCodeExecutionResultBlock {
content : Array[RequestCodeExecutionOutputBlock]
return_code : Int
stderr : String
stdout : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestCodeExecutionResultBlockfn from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionResultBlock raise JsonDecodeErrorimpl ToJson for RequestCodeExecutionResultBlockfn RequestCodeExecutionResultBlock::from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionResultBlock raise JsonDecodeErrorfn RequestCodeExecutionResultBlock::new(content~ : Array[RequestCodeExecutionOutputBlock], return_code~ : Int, stderr~ : String, stdout~ : String, type_~ : String) -> RequestCodeExecutionResultBlockfn RequestCodeExecutionResultBlock::not_equal(x : RequestCodeExecutionResultBlock, y : RequestCodeExecutionResultBlock) -> Boolpub(all) struct RequestCodeExecutionToolResultBlock {
cache_control : Presence[RequestCodeExecutionToolResultBlockCacheControl]
content : RequestCodeExecutionToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlock::new(content~ : RequestCodeExecutionToolResultBlockContent, tool_use_id~ : String, type_~ : String, cache_control? : RequestCodeExecutionToolResultBlockCacheControl) -> RequestCodeExecutionToolResultBlockfn RequestCodeExecutionToolResultBlock::not_equal(x : RequestCodeExecutionToolResultBlock, y : RequestCodeExecutionToolResultBlock) -> Boolpub(all) enum RequestCodeExecutionToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlockCacheControl::to_json(self : RequestCodeExecutionToolResultBlockCacheControl) -> Jsonpub(all) enum RequestCodeExecutionToolResultBlockContent {
CodeExecutionToolResultError(RequestCodeExecutionToolResultError)
CodeExecutionResult(RequestCodeExecutionResultBlock)
EncryptedCodeExecutionResult(RequestEncryptedCodeExecutionResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlockContent::not_equal(x : RequestCodeExecutionToolResultBlockContent, y : RequestCodeExecutionToolResultBlockContent) -> Boolfn RequestCodeExecutionToolResultBlockContent::to_json(self : RequestCodeExecutionToolResultBlockContent) -> Jsonpub(all) struct RequestCodeExecutionToolResultError {
error_code : CodeExecutionToolResultErrorCode
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultError raise JsonDecodeErrorfn RequestCodeExecutionToolResultError::from_json(value : Json, path : DecodeContext) -> RequestCodeExecutionToolResultError raise JsonDecodeErrorfn RequestCodeExecutionToolResultError::new(error_code~ : CodeExecutionToolResultErrorCode, type_~ : String) -> RequestCodeExecutionToolResultErrorfn RequestCodeExecutionToolResultError::not_equal(x : RequestCodeExecutionToolResultError, y : RequestCodeExecutionToolResultError) -> Boolpub(all) struct RequestContainerUploadBlock {
cache_control : Presence[RequestContainerUploadBlockCacheControl]
file_id : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestContainerUploadBlockfn from_json(value : Json, path : DecodeContext) -> RequestContainerUploadBlock raise JsonDecodeErrorimpl ToJson for RequestContainerUploadBlockfn RequestContainerUploadBlock::equal(RequestContainerUploadBlock, RequestContainerUploadBlock) -> Boolfn RequestContainerUploadBlock::from_json(value : Json, path : DecodeContext) -> RequestContainerUploadBlock raise JsonDecodeErrorfn RequestContainerUploadBlock::new(file_id~ : String, type_~ : String, cache_control? : RequestContainerUploadBlockCacheControl) -> RequestContainerUploadBlockfn RequestContainerUploadBlock::not_equal(x : RequestContainerUploadBlock, y : RequestContainerUploadBlock) -> Boolpub(all) enum RequestContainerUploadBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestContainerUploadBlockCacheControl raise JsonDecodeErrorfn RequestContainerUploadBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestContainerUploadBlockCacheControl raise JsonDecodeErrorfn RequestContainerUploadBlockCacheControl::not_equal(x : RequestContainerUploadBlockCacheControl, y : RequestContainerUploadBlockCacheControl) -> Boolfn RequestContainerUploadBlockCacheControl::to_json(self : RequestContainerUploadBlockCacheControl) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestContentBlockLocationCitation raise JsonDecodeErrorfn RequestContentBlockLocationCitation::from_json(value : Json, path : DecodeContext) -> RequestContentBlockLocationCitation raise JsonDecodeErrorfn RequestContentBlockLocationCitation::new(cited_text~ : String, document_index~ : Int, end_block_index~ : Int, start_block_index~ : Int, type_~ : String, document_title? : String) -> RequestContentBlockLocationCitationfn RequestContentBlockLocationCitation::not_equal(x : RequestContentBlockLocationCitation, y : RequestContentBlockLocationCitation) -> Boolpub(all) struct RequestDocumentBlock {
cache_control : Presence[RequestDocumentBlockCacheControl]
citations : Presence[RequestCitationsConfig]
context : Presence[String]
source : RequestDocumentBlockSource
title : Presence[String]
type_ : String
} derive(Eq, Debug)impl FromJson for RequestDocumentBlockimpl ToJson for RequestDocumentBlockfn RequestDocumentBlock::from_json(value : Json, path : DecodeContext) -> RequestDocumentBlock raise JsonDecodeErrorfn RequestDocumentBlock::new(source~ : RequestDocumentBlockSource, type_~ : String, cache_control? : RequestDocumentBlockCacheControl, citations? : RequestCitationsConfig, context? : String, title? : String) -> RequestDocumentBlockpub(all) enum RequestDocumentBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestDocumentBlockCacheControlfn from_json(value : Json, path : DecodeContext) -> RequestDocumentBlockCacheControl raise JsonDecodeErrorimpl ToJson for RequestDocumentBlockCacheControlfn RequestDocumentBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestDocumentBlockCacheControl raise JsonDecodeErrorfn RequestDocumentBlockCacheControl::not_equal(x : RequestDocumentBlockCacheControl, y : RequestDocumentBlockCacheControl) -> Boolpub(all) enum RequestDocumentBlockSource {
Base64(Base64PDFSource)
Content(ContentBlockSource)
File(FileDocumentSource)
Text(PlainTextSource)
Url(URLPDFSource)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestDocumentBlockSourcefn from_json(value : Json, path : DecodeContext) -> RequestDocumentBlockSource raise JsonDecodeErrorimpl ToJson for RequestDocumentBlockSourcefn RequestDocumentBlockSource::equal(RequestDocumentBlockSource, RequestDocumentBlockSource) -> Boolfn RequestDocumentBlockSource::from_json(value : Json, path : DecodeContext) -> RequestDocumentBlockSource raise JsonDecodeErrorfn RequestDocumentBlockSource::not_equal(x : RequestDocumentBlockSource, y : RequestDocumentBlockSource) -> Boolpub(all) struct RequestEncryptedCodeExecutionResultBlock {
content : Array[RequestCodeExecutionOutputBlock]
encrypted_stdout : String
return_code : Int
stderr : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestEncryptedCodeExecutionResultBlock raise JsonDecodeErrorfn RequestEncryptedCodeExecutionResultBlock::from_json(value : Json, path : DecodeContext) -> RequestEncryptedCodeExecutionResultBlock raise JsonDecodeErrorfn RequestEncryptedCodeExecutionResultBlock::new(content~ : Array[RequestCodeExecutionOutputBlock], encrypted_stdout~ : String, return_code~ : Int, stderr~ : String, type_~ : String) -> RequestEncryptedCodeExecutionResultBlockfn RequestEncryptedCodeExecutionResultBlock::not_equal(x : RequestEncryptedCodeExecutionResultBlock, y : RequestEncryptedCodeExecutionResultBlock) -> Boolfn RequestEncryptedCodeExecutionResultBlock::to_json(self : RequestEncryptedCodeExecutionResultBlock) -> Jsonpub(all) struct RequestImageBlock {
cache_control : Presence[RequestImageBlockCacheControl]
source : RequestImageBlockSource
transformations : Presence[RequestImageTransformations]
type_ : String
} derive(Eq, Debug)impl FromJson for RequestImageBlockimpl ToJson for RequestImageBlockfn RequestImageBlock::from_json(value : Json, path : DecodeContext) -> RequestImageBlock raise JsonDecodeErrorfn RequestImageBlock::new(source~ : RequestImageBlockSource, type_~ : String, cache_control? : RequestImageBlockCacheControl, transformations? : RequestImageTransformations) -> RequestImageBlockpub(all) enum RequestImageBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestImageBlockCacheControlfn from_json(value : Json, path : DecodeContext) -> RequestImageBlockCacheControl raise JsonDecodeErrorimpl ToJson for RequestImageBlockCacheControlfn RequestImageBlockCacheControl::equal(RequestImageBlockCacheControl, RequestImageBlockCacheControl) -> Boolfn RequestImageBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestImageBlockCacheControl raise JsonDecodeErrorfn RequestImageBlockCacheControl::not_equal(x : RequestImageBlockCacheControl, y : RequestImageBlockCacheControl) -> Boolpub(all) enum RequestImageBlockSource {
Base64(Base64ImageSource)
File(FileImageSource)
Url(URLImageSource)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestImageBlockSourceimpl ToJson for RequestImageBlockSourcefn RequestImageBlockSource::from_json(value : Json, path : DecodeContext) -> RequestImageBlockSource raise JsonDecodeErrorfn RequestImageBlockSource::not_equal(x : RequestImageBlockSource, y : RequestImageBlockSource) -> Boolpub(all) struct RequestImageTransformations {
oversized_image : RequestImageTransformationsOversizedImage?
} derive(Eq, Debug)impl FromJson for RequestImageTransformationsfn from_json(value : Json, path : DecodeContext) -> RequestImageTransformations raise JsonDecodeErrorimpl ToJson for RequestImageTransformationsfn RequestImageTransformations::equal(RequestImageTransformations, RequestImageTransformations) -> Boolfn RequestImageTransformations::from_json(value : Json, path : DecodeContext) -> RequestImageTransformations raise JsonDecodeErrorfn RequestImageTransformations::new(oversized_image? : RequestImageTransformationsOversizedImage) -> RequestImageTransformationsfn RequestImageTransformations::not_equal(x : RequestImageTransformations, y : RequestImageTransformations) -> Boolfn from_json(value : Json, path : DecodeContext) -> RequestImageTransformationsOversizedImage raise JsonDecodeErrorfn RequestImageTransformationsOversizedImage::from_json(value : Json, path : DecodeContext) -> RequestImageTransformationsOversizedImage raise JsonDecodeErrorfn RequestImageTransformationsOversizedImage::not_equal(x : RequestImageTransformationsOversizedImage, y : RequestImageTransformationsOversizedImage) -> Boolfn RequestImageTransformationsOversizedImage::to_json(self : RequestImageTransformationsOversizedImage) -> Jsonimpl FromJson for RequestPageLocationCitationfn from_json(value : Json, path : DecodeContext) -> RequestPageLocationCitation raise JsonDecodeErrorimpl ToJson for RequestPageLocationCitationfn RequestPageLocationCitation::equal(RequestPageLocationCitation, RequestPageLocationCitation) -> Boolfn RequestPageLocationCitation::from_json(value : Json, path : DecodeContext) -> RequestPageLocationCitation raise JsonDecodeErrorfn RequestPageLocationCitation::new(cited_text~ : String, document_index~ : Int, end_page_number~ : Int, start_page_number~ : Int, type_~ : String, document_title? : String) -> RequestPageLocationCitationfn RequestPageLocationCitation::not_equal(x : RequestPageLocationCitation, y : RequestPageLocationCitation) -> Boolimpl FromJson for RequestRedactedThinkingBlockfn from_json(value : Json, path : DecodeContext) -> RequestRedactedThinkingBlock raise JsonDecodeErrorimpl ToJson for RequestRedactedThinkingBlockfn RequestRedactedThinkingBlock::equal(RequestRedactedThinkingBlock, RequestRedactedThinkingBlock) -> Boolfn RequestRedactedThinkingBlock::from_json(value : Json, path : DecodeContext) -> RequestRedactedThinkingBlock raise JsonDecodeErrorfn RequestRedactedThinkingBlock::new(data~ : String, type_~ : String) -> RequestRedactedThinkingBlockfn RequestRedactedThinkingBlock::not_equal(x : RequestRedactedThinkingBlock, y : RequestRedactedThinkingBlock) -> Boolpub(all) struct RequestSearchResultBlock {
cache_control : Presence[RequestSearchResultBlockCacheControl]
citations : RequestCitationsConfig?
content : Array[RequestTextBlock]
source : String
title : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestSearchResultBlockimpl ToJson for RequestSearchResultBlockfn RequestSearchResultBlock::from_json(value : Json, path : DecodeContext) -> RequestSearchResultBlock raise JsonDecodeErrorfn RequestSearchResultBlock::new(content~ : Array[RequestTextBlock], source~ : String, title~ : String, type_~ : String, cache_control? : RequestSearchResultBlockCacheControl, citations? : RequestCitationsConfig) -> RequestSearchResultBlockfn RequestSearchResultBlock::not_equal(x : RequestSearchResultBlock, y : RequestSearchResultBlock) -> Boolpub(all) enum RequestSearchResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestSearchResultBlockCacheControl raise JsonDecodeErrorfn RequestSearchResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestSearchResultBlockCacheControl raise JsonDecodeErrorfn RequestSearchResultBlockCacheControl::not_equal(x : RequestSearchResultBlockCacheControl, y : RequestSearchResultBlockCacheControl) -> Boolfn RequestSearchResultBlockCacheControl::to_json(self : RequestSearchResultBlockCacheControl) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestSearchResultLocationCitation raise JsonDecodeErrorfn RequestSearchResultLocationCitation::from_json(value : Json, path : DecodeContext) -> RequestSearchResultLocationCitation raise JsonDecodeErrorfn RequestSearchResultLocationCitation::new(cited_text~ : String, end_block_index~ : Int, search_result_index~ : Int, source~ : String, start_block_index~ : Int, type_~ : String, title? : String) -> RequestSearchResultLocationCitationfn RequestSearchResultLocationCitation::not_equal(x : RequestSearchResultLocationCitation, y : RequestSearchResultLocationCitation) -> Boolpub(all) struct RequestServerToolUseBlock {
cache_control : Presence[RequestServerToolUseBlockCacheControl]
caller : RequestServerToolUseBlockCaller?
id : String
input : Json
name : RequestServerToolUseBlockName
type_ : String
} derive(Eq, Debug)impl FromJson for RequestServerToolUseBlockimpl ToJson for RequestServerToolUseBlockfn RequestServerToolUseBlock::from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlock raise JsonDecodeErrorfn RequestServerToolUseBlock::new(id~ : String, input~ : Json, name~ : RequestServerToolUseBlockName, type_~ : String, cache_control? : RequestServerToolUseBlockCacheControl, caller? : RequestServerToolUseBlockCaller) -> RequestServerToolUseBlockfn RequestServerToolUseBlock::not_equal(x : RequestServerToolUseBlock, y : RequestServerToolUseBlock) -> Boolpub(all) enum RequestServerToolUseBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlockCacheControl raise JsonDecodeErrorfn RequestServerToolUseBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlockCacheControl raise JsonDecodeErrorfn RequestServerToolUseBlockCacheControl::not_equal(x : RequestServerToolUseBlockCacheControl, y : RequestServerToolUseBlockCacheControl) -> Boolfn RequestServerToolUseBlockCacheControl::to_json(self : RequestServerToolUseBlockCacheControl) -> Jsonpub(all) enum RequestServerToolUseBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestServerToolUseBlockCallerfn from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlockCaller raise JsonDecodeErrorimpl ToJson for RequestServerToolUseBlockCallerfn RequestServerToolUseBlockCaller::from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlockCaller raise JsonDecodeErrorfn RequestServerToolUseBlockCaller::not_equal(x : RequestServerToolUseBlockCaller, y : RequestServerToolUseBlockCaller) -> Boolimpl FromJson for RequestServerToolUseBlockNamefn from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlockName raise JsonDecodeErrorimpl ToJson for RequestServerToolUseBlockNamefn RequestServerToolUseBlockName::equal(RequestServerToolUseBlockName, RequestServerToolUseBlockName) -> Boolfn RequestServerToolUseBlockName::from_json(value : Json, path : DecodeContext) -> RequestServerToolUseBlockName raise JsonDecodeErrorfn RequestServerToolUseBlockName::not_equal(x : RequestServerToolUseBlockName, y : RequestServerToolUseBlockName) -> Boolpub(all) struct RequestTextBlock {
cache_control : Presence[RequestTextBlockCacheControl]
citations : Presence[Array[RequestTextBlockCitationsItem]]
text : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestTextBlockimpl ToJson for RequestTextBlockfn RequestTextBlock::from_json(value : Json, path : DecodeContext) -> RequestTextBlock raise JsonDecodeErrorfn RequestTextBlock::new(text~ : String, type_~ : String, cache_control? : RequestTextBlockCacheControl, citations? : Array[RequestTextBlockCitationsItem]) -> RequestTextBlockpub(all) enum RequestTextBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestTextBlockCacheControlfn from_json(value : Json, path : DecodeContext) -> RequestTextBlockCacheControl raise JsonDecodeErrorimpl ToJson for RequestTextBlockCacheControlfn RequestTextBlockCacheControl::equal(RequestTextBlockCacheControl, RequestTextBlockCacheControl) -> Boolfn RequestTextBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestTextBlockCacheControl raise JsonDecodeErrorfn RequestTextBlockCacheControl::not_equal(x : RequestTextBlockCacheControl, y : RequestTextBlockCacheControl) -> Boolpub(all) enum RequestTextBlockCitationsItem {
CharLocation(RequestCharLocationCitation)
ContentBlockLocation(RequestContentBlockLocationCitation)
PageLocation(RequestPageLocationCitation)
SearchResultLocation(RequestSearchResultLocationCitation)
WebSearchResultLocation(RequestWebSearchResultLocationCitation)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestTextBlockCitationsItemfn from_json(value : Json, path : DecodeContext) -> RequestTextBlockCitationsItem raise JsonDecodeErrorimpl ToJson for RequestTextBlockCitationsItemfn RequestTextBlockCitationsItem::equal(RequestTextBlockCitationsItem, RequestTextBlockCitationsItem) -> Boolfn RequestTextBlockCitationsItem::from_json(value : Json, path : DecodeContext) -> RequestTextBlockCitationsItem raise JsonDecodeErrorfn RequestTextBlockCitationsItem::not_equal(x : RequestTextBlockCitationsItem, y : RequestTextBlockCitationsItem) -> Boolfn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionCreateResultBlock::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionCreateResultBlock::new(is_file_update~ : Bool, type_~ : String) -> RequestTextEditorCodeExecutionCreateResultBlockfn RequestTextEditorCodeExecutionCreateResultBlock::to_json(self : RequestTextEditorCodeExecutionCreateResultBlock) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionStrReplaceResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionStrReplaceResultBlock::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionStrReplaceResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionStrReplaceResultBlock::new(type_~ : String, lines? : Array[String], new_lines? : Int, new_start? : Int, old_lines? : Int, old_start? : Int) -> RequestTextEditorCodeExecutionStrReplaceResultBlockpub(all) struct RequestTextEditorCodeExecutionToolResultBlock {
cache_control : Presence[RequestTextEditorCodeExecutionToolResultBlockCacheControl]
content : RequestTextEditorCodeExecutionToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlock::new(content~ : RequestTextEditorCodeExecutionToolResultBlockContent, tool_use_id~ : String, type_~ : String, cache_control? : RequestTextEditorCodeExecutionToolResultBlockCacheControl) -> RequestTextEditorCodeExecutionToolResultBlockfn RequestTextEditorCodeExecutionToolResultBlock::not_equal(x : RequestTextEditorCodeExecutionToolResultBlock, y : RequestTextEditorCodeExecutionToolResultBlock) -> Boolfn RequestTextEditorCodeExecutionToolResultBlock::to_json(self : RequestTextEditorCodeExecutionToolResultBlock) -> Jsonpub(all) enum RequestTextEditorCodeExecutionToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorpub(all) enum RequestTextEditorCodeExecutionToolResultBlockContent {
TextEditorCodeExecutionToolResultError(RequestTextEditorCodeExecutionToolResultError)
TextEditorCodeExecutionViewResult(RequestTextEditorCodeExecutionViewResultBlock)
TextEditorCodeExecutionCreateResult(RequestTextEditorCodeExecutionCreateResultBlock)
TextEditorCodeExecutionStrReplaceResult(RequestTextEditorCodeExecutionStrReplaceResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorpub(all) struct RequestTextEditorCodeExecutionToolResultError {
error_code : TextEditorCodeExecutionToolResultErrorCode
error_message : Presence[String]
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultError raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultError::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionToolResultError raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultError::new(error_code~ : TextEditorCodeExecutionToolResultErrorCode, type_~ : String, error_message? : String) -> RequestTextEditorCodeExecutionToolResultErrorfn RequestTextEditorCodeExecutionToolResultError::not_equal(x : RequestTextEditorCodeExecutionToolResultError, y : RequestTextEditorCodeExecutionToolResultError) -> Boolfn RequestTextEditorCodeExecutionToolResultError::to_json(self : RequestTextEditorCodeExecutionToolResultError) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionViewResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionViewResultBlock::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionViewResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionViewResultBlock::new(content~ : String, file_type~ : RequestTextEditorCodeExecutionViewResultBlockFileType, type_~ : String, num_lines? : Int, start_line? : Int, total_lines? : Int) -> RequestTextEditorCodeExecutionViewResultBlockfn RequestTextEditorCodeExecutionViewResultBlock::not_equal(x : RequestTextEditorCodeExecutionViewResultBlock, y : RequestTextEditorCodeExecutionViewResultBlock) -> Boolfn RequestTextEditorCodeExecutionViewResultBlock::to_json(self : RequestTextEditorCodeExecutionViewResultBlock) -> Jsonfn from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorfn RequestTextEditorCodeExecutionViewResultBlockFileType::from_json(value : Json, path : DecodeContext) -> RequestTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorimpl FromJson for RequestThinkingBlockimpl ToJson for RequestThinkingBlockfn RequestThinkingBlock::from_json(value : Json, path : DecodeContext) -> RequestThinkingBlock raise JsonDecodeErrorfn RequestThinkingBlock::new(signature~ : String, thinking~ : String, type_~ : String) -> RequestThinkingBlockpub(all) struct RequestToolReferenceBlock {
cache_control : Presence[RequestToolReferenceBlockCacheControl]
tool_name : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestToolReferenceBlockimpl ToJson for RequestToolReferenceBlockfn RequestToolReferenceBlock::from_json(value : Json, path : DecodeContext) -> RequestToolReferenceBlock raise JsonDecodeErrorfn RequestToolReferenceBlock::new(tool_name~ : String, type_~ : String, cache_control? : RequestToolReferenceBlockCacheControl) -> RequestToolReferenceBlockfn RequestToolReferenceBlock::not_equal(x : RequestToolReferenceBlock, y : RequestToolReferenceBlock) -> Boolpub(all) enum RequestToolReferenceBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestToolReferenceBlockCacheControl raise JsonDecodeErrorfn RequestToolReferenceBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestToolReferenceBlockCacheControl raise JsonDecodeErrorfn RequestToolReferenceBlockCacheControl::not_equal(x : RequestToolReferenceBlockCacheControl, y : RequestToolReferenceBlockCacheControl) -> Boolfn RequestToolReferenceBlockCacheControl::to_json(self : RequestToolReferenceBlockCacheControl) -> Jsonpub(all) struct RequestToolResultBlock {
cache_control : Presence[RequestToolResultBlockCacheControl]
content : RequestToolResultBlockContent?
is_error : Bool?
tool_use_id : String
toolset_name : Presence[String]
type_ : String
} derive(Eq, Debug)impl FromJson for RequestToolResultBlockimpl ToJson for RequestToolResultBlockfn RequestToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestToolResultBlock raise JsonDecodeErrorfn RequestToolResultBlock::new(tool_use_id~ : String, type_~ : String, cache_control? : RequestToolResultBlockCacheControl, content? : RequestToolResultBlockContent, is_error? : Bool, toolset_name? : String) -> RequestToolResultBlockfn RequestToolResultBlock::not_equal(x : RequestToolResultBlock, y : RequestToolResultBlock) -> Boolpub(all) enum RequestToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestToolResultBlockCacheControl raise JsonDecodeErrorimpl ToJson for RequestToolResultBlockCacheControlfn RequestToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestToolResultBlockCacheControl raise JsonDecodeErrorfn RequestToolResultBlockCacheControl::not_equal(x : RequestToolResultBlockCacheControl, y : RequestToolResultBlockCacheControl) -> Boolpub(all) enum RequestToolResultBlockContent {
Text(String)
ValueArray(Array[RequestToolResultBlockContentValueArrayItem])
} derive(Eq, Debug)impl FromJson for RequestToolResultBlockContentfn from_json(value : Json, path : DecodeContext) -> RequestToolResultBlockContent raise JsonDecodeErrorimpl ToJson for RequestToolResultBlockContentfn RequestToolResultBlockContent::equal(RequestToolResultBlockContent, RequestToolResultBlockContent) -> Boolfn RequestToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestToolResultBlockContent raise JsonDecodeErrorfn RequestToolResultBlockContent::not_equal(x : RequestToolResultBlockContent, y : RequestToolResultBlockContent) -> Boolpub(all) enum RequestToolResultBlockContentValueArrayItem {
BrowserState(RequestBrowserStateBlock)
Document(RequestDocumentBlock)
Image(RequestImageBlock)
SearchResult(RequestSearchResultBlock)
Text(RequestTextBlock)
ToolReference(RequestToolReferenceBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestToolResultBlockContentValueArrayItem raise JsonDecodeErrorfn RequestToolResultBlockContentValueArrayItem::from_json(value : Json, path : DecodeContext) -> RequestToolResultBlockContentValueArrayItem raise JsonDecodeErrorfn RequestToolResultBlockContentValueArrayItem::not_equal(x : RequestToolResultBlockContentValueArrayItem, y : RequestToolResultBlockContentValueArrayItem) -> Boolfn RequestToolResultBlockContentValueArrayItem::to_json(self : RequestToolResultBlockContentValueArrayItem) -> Jsonpub(all) struct RequestToolSearchToolResultBlock {
cache_control : Presence[RequestToolSearchToolResultBlockCacheControl]
content : RequestToolSearchToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestToolSearchToolResultBlockfn from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultBlock raise JsonDecodeErrorimpl ToJson for RequestToolSearchToolResultBlockfn RequestToolSearchToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultBlock raise JsonDecodeErrorfn RequestToolSearchToolResultBlock::new(content~ : RequestToolSearchToolResultBlockContent, tool_use_id~ : String, type_~ : String, cache_control? : RequestToolSearchToolResultBlockCacheControl) -> RequestToolSearchToolResultBlockfn RequestToolSearchToolResultBlock::not_equal(x : RequestToolSearchToolResultBlock, y : RequestToolSearchToolResultBlock) -> Boolpub(all) enum RequestToolSearchToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestToolSearchToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestToolSearchToolResultBlockCacheControl::not_equal(x : RequestToolSearchToolResultBlockCacheControl, y : RequestToolSearchToolResultBlockCacheControl) -> Boolfn RequestToolSearchToolResultBlockCacheControl::to_json(self : RequestToolSearchToolResultBlockCacheControl) -> Jsonpub(all) enum RequestToolSearchToolResultBlockContent {
ToolSearchToolResultError(RequestToolSearchToolResultError)
ToolSearchToolSearchResult(RequestToolSearchToolSearchResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultBlockContent raise JsonDecodeErrorfn RequestToolSearchToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultBlockContent raise JsonDecodeErrorfn RequestToolSearchToolResultBlockContent::not_equal(x : RequestToolSearchToolResultBlockContent, y : RequestToolSearchToolResultBlockContent) -> Boolfn RequestToolSearchToolResultBlockContent::to_json(self : RequestToolSearchToolResultBlockContent) -> Jsonpub(all) struct RequestToolSearchToolResultError {
error_code : ToolSearchToolResultErrorCode
error_message : Presence[String]
type_ : String
} derive(Eq, Debug)impl FromJson for RequestToolSearchToolResultErrorfn from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultError raise JsonDecodeErrorimpl ToJson for RequestToolSearchToolResultErrorfn RequestToolSearchToolResultError::from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolResultError raise JsonDecodeErrorfn RequestToolSearchToolResultError::new(error_code~ : ToolSearchToolResultErrorCode, type_~ : String, error_message? : String) -> RequestToolSearchToolResultErrorfn RequestToolSearchToolResultError::not_equal(x : RequestToolSearchToolResultError, y : RequestToolSearchToolResultError) -> Boolpub(all) struct RequestToolSearchToolSearchResultBlock {
tool_references : Array[RequestToolReferenceBlock]
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolSearchResultBlock raise JsonDecodeErrorfn RequestToolSearchToolSearchResultBlock::from_json(value : Json, path : DecodeContext) -> RequestToolSearchToolSearchResultBlock raise JsonDecodeErrorfn RequestToolSearchToolSearchResultBlock::new(tool_references~ : Array[RequestToolReferenceBlock], type_~ : String) -> RequestToolSearchToolSearchResultBlockfn RequestToolSearchToolSearchResultBlock::not_equal(x : RequestToolSearchToolSearchResultBlock, y : RequestToolSearchToolSearchResultBlock) -> Boolfn RequestToolSearchToolSearchResultBlock::to_json(self : RequestToolSearchToolSearchResultBlock) -> Jsonpub(all) struct RequestToolUseBlock {
cache_control : Presence[RequestToolUseBlockCacheControl]
caller : RequestToolUseBlockCaller?
id : String
input : Json
name : String
toolset_name : Presence[String]
type_ : String
} derive(Eq, Debug)impl FromJson for RequestToolUseBlockimpl ToJson for RequestToolUseBlockfn RequestToolUseBlock::from_json(value : Json, path : DecodeContext) -> RequestToolUseBlock raise JsonDecodeErrorfn RequestToolUseBlock::new(id~ : String, input~ : Json, name~ : String, type_~ : String, cache_control? : RequestToolUseBlockCacheControl, caller? : RequestToolUseBlockCaller, toolset_name? : String) -> RequestToolUseBlockpub(all) enum RequestToolUseBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestToolUseBlockCacheControlfn from_json(value : Json, path : DecodeContext) -> RequestToolUseBlockCacheControl raise JsonDecodeErrorimpl ToJson for RequestToolUseBlockCacheControlfn RequestToolUseBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestToolUseBlockCacheControl raise JsonDecodeErrorfn RequestToolUseBlockCacheControl::not_equal(x : RequestToolUseBlockCacheControl, y : RequestToolUseBlockCacheControl) -> Boolpub(all) enum RequestToolUseBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for RequestToolUseBlockCallerimpl ToJson for RequestToolUseBlockCallerfn RequestToolUseBlockCaller::from_json(value : Json, path : DecodeContext) -> RequestToolUseBlockCaller raise JsonDecodeErrorfn RequestToolUseBlockCaller::not_equal(x : RequestToolUseBlockCaller, y : RequestToolUseBlockCaller) -> Boolpub(all) struct RequestWebFetchResultBlock {
content : RequestDocumentBlock
retrieved_at : Presence[String]
type_ : String
url : String
} derive(Eq, Debug)impl FromJson for RequestWebFetchResultBlockfn from_json(value : Json, path : DecodeContext) -> RequestWebFetchResultBlock raise JsonDecodeErrorimpl ToJson for RequestWebFetchResultBlockfn RequestWebFetchResultBlock::equal(RequestWebFetchResultBlock, RequestWebFetchResultBlock) -> Boolfn RequestWebFetchResultBlock::from_json(value : Json, path : DecodeContext) -> RequestWebFetchResultBlock raise JsonDecodeErrorfn RequestWebFetchResultBlock::new(content~ : RequestDocumentBlock, type_~ : String, url~ : String, retrieved_at? : String) -> RequestWebFetchResultBlockfn RequestWebFetchResultBlock::not_equal(x : RequestWebFetchResultBlock, y : RequestWebFetchResultBlock) -> Boolpub(all) struct RequestWebFetchToolResultBlock {
cache_control : Presence[RequestWebFetchToolResultBlockCacheControl]
caller : RequestWebFetchToolResultBlockCaller?
content : RequestWebFetchToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestWebFetchToolResultBlockfn from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlock raise JsonDecodeErrorimpl ToJson for RequestWebFetchToolResultBlockfn RequestWebFetchToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlock raise JsonDecodeErrorfn RequestWebFetchToolResultBlock::new(content~ : RequestWebFetchToolResultBlockContent, tool_use_id~ : String, type_~ : String, cache_control? : RequestWebFetchToolResultBlockCacheControl, caller? : RequestWebFetchToolResultBlockCaller) -> RequestWebFetchToolResultBlockfn RequestWebFetchToolResultBlock::not_equal(x : RequestWebFetchToolResultBlock, y : RequestWebFetchToolResultBlock) -> Boolpub(all) enum RequestWebFetchToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestWebFetchToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestWebFetchToolResultBlockCacheControl::not_equal(x : RequestWebFetchToolResultBlockCacheControl, y : RequestWebFetchToolResultBlockCacheControl) -> Boolfn RequestWebFetchToolResultBlockCacheControl::to_json(self : RequestWebFetchToolResultBlockCacheControl) -> Jsonpub(all) enum RequestWebFetchToolResultBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlockCaller raise JsonDecodeErrorfn RequestWebFetchToolResultBlockCaller::from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlockCaller raise JsonDecodeErrorfn RequestWebFetchToolResultBlockCaller::not_equal(x : RequestWebFetchToolResultBlockCaller, y : RequestWebFetchToolResultBlockCaller) -> Boolfn RequestWebFetchToolResultBlockCaller::to_json(self : RequestWebFetchToolResultBlockCaller) -> Jsonpub(all) enum RequestWebFetchToolResultBlockContent {
WebFetchToolResultError(RequestWebFetchToolResultError)
WebFetchResult(RequestWebFetchResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlockContent raise JsonDecodeErrorfn RequestWebFetchToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultBlockContent raise JsonDecodeErrorfn RequestWebFetchToolResultBlockContent::not_equal(x : RequestWebFetchToolResultBlockContent, y : RequestWebFetchToolResultBlockContent) -> Boolfn RequestWebFetchToolResultBlockContent::to_json(self : RequestWebFetchToolResultBlockContent) -> Jsonpub(all) struct RequestWebFetchToolResultError {
error_code : WebFetchToolResultErrorCode
type_ : String
} derive(Eq, Debug)impl FromJson for RequestWebFetchToolResultErrorfn from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultError raise JsonDecodeErrorimpl ToJson for RequestWebFetchToolResultErrorfn RequestWebFetchToolResultError::from_json(value : Json, path : DecodeContext) -> RequestWebFetchToolResultError raise JsonDecodeErrorfn RequestWebFetchToolResultError::new(error_code~ : WebFetchToolResultErrorCode, type_~ : String) -> RequestWebFetchToolResultErrorfn RequestWebFetchToolResultError::not_equal(x : RequestWebFetchToolResultError, y : RequestWebFetchToolResultError) -> Boolimpl FromJson for RequestWebSearchResultBlockfn from_json(value : Json, path : DecodeContext) -> RequestWebSearchResultBlock raise JsonDecodeErrorimpl ToJson for RequestWebSearchResultBlockfn RequestWebSearchResultBlock::equal(RequestWebSearchResultBlock, RequestWebSearchResultBlock) -> Boolfn RequestWebSearchResultBlock::from_json(value : Json, path : DecodeContext) -> RequestWebSearchResultBlock raise JsonDecodeErrorfn RequestWebSearchResultBlock::new(encrypted_content~ : String, title~ : String, url~ : String, page_age? : String) -> RequestWebSearchResultBlockfn RequestWebSearchResultBlock::not_equal(x : RequestWebSearchResultBlock, y : RequestWebSearchResultBlock) -> Boolfn from_json(value : Json, path : DecodeContext) -> RequestWebSearchResultLocationCitation raise JsonDecodeErrorfn RequestWebSearchResultLocationCitation::from_json(value : Json, path : DecodeContext) -> RequestWebSearchResultLocationCitation raise JsonDecodeErrorfn RequestWebSearchResultLocationCitation::new(cited_text~ : String, encrypted_index~ : String, type_~ : String, url~ : String, title? : String) -> RequestWebSearchResultLocationCitationfn RequestWebSearchResultLocationCitation::not_equal(x : RequestWebSearchResultLocationCitation, y : RequestWebSearchResultLocationCitation) -> Boolfn RequestWebSearchResultLocationCitation::to_json(self : RequestWebSearchResultLocationCitation) -> Jsonpub(all) struct RequestWebSearchToolResultBlock {
cache_control : Presence[RequestWebSearchToolResultBlockCacheControl]
caller : RequestWebSearchToolResultBlockCaller?
content : RequestWebSearchToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)impl FromJson for RequestWebSearchToolResultBlockfn from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlock raise JsonDecodeErrorimpl ToJson for RequestWebSearchToolResultBlockfn RequestWebSearchToolResultBlock::from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlock raise JsonDecodeErrorfn RequestWebSearchToolResultBlock::new(content~ : RequestWebSearchToolResultBlockContent, tool_use_id~ : String, type_~ : String, cache_control? : RequestWebSearchToolResultBlockCacheControl, caller? : RequestWebSearchToolResultBlockCaller) -> RequestWebSearchToolResultBlockfn RequestWebSearchToolResultBlock::not_equal(x : RequestWebSearchToolResultBlock, y : RequestWebSearchToolResultBlock) -> Boolpub(all) enum RequestWebSearchToolResultBlockCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestWebSearchToolResultBlockCacheControl::from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestWebSearchToolResultBlockCacheControl::not_equal(x : RequestWebSearchToolResultBlockCacheControl, y : RequestWebSearchToolResultBlockCacheControl) -> Boolfn RequestWebSearchToolResultBlockCacheControl::to_json(self : RequestWebSearchToolResultBlockCacheControl) -> Jsonpub(all) enum RequestWebSearchToolResultBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlockCaller raise JsonDecodeErrorfn RequestWebSearchToolResultBlockCaller::from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlockCaller raise JsonDecodeErrorfn RequestWebSearchToolResultBlockCaller::not_equal(x : RequestWebSearchToolResultBlockCaller, y : RequestWebSearchToolResultBlockCaller) -> Boolfn RequestWebSearchToolResultBlockCaller::to_json(self : RequestWebSearchToolResultBlockCaller) -> Jsonpub(all) enum RequestWebSearchToolResultBlockContent {
RequestWebSearchResultBlockArray(Array[RequestWebSearchResultBlock])
RequestWebSearchToolResultError(RequestWebSearchToolResultError)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlockContent raise JsonDecodeErrorfn RequestWebSearchToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultBlockContent raise JsonDecodeErrorfn RequestWebSearchToolResultBlockContent::not_equal(x : RequestWebSearchToolResultBlockContent, y : RequestWebSearchToolResultBlockContent) -> Boolfn RequestWebSearchToolResultBlockContent::to_json(self : RequestWebSearchToolResultBlockContent) -> Jsonpub(all) struct RequestWebSearchToolResultError {
error_code : WebSearchToolResultErrorCode
} derive(Eq, Debug)impl FromJson for RequestWebSearchToolResultErrorfn from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultError raise JsonDecodeErrorimpl ToJson for RequestWebSearchToolResultErrorfn RequestWebSearchToolResultError::from_json(value : Json, path : DecodeContext) -> RequestWebSearchToolResultError raise JsonDecodeErrorfn RequestWebSearchToolResultError::new(error_code~ : WebSearchToolResultErrorCode) -> RequestWebSearchToolResultErrorfn RequestWebSearchToolResultError::not_equal(x : RequestWebSearchToolResultError, y : RequestWebSearchToolResultError) -> Boolfn from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionOutputBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionOutputBlock::from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionOutputBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionOutputBlock::new(file_id~ : String) -> ResponseBashCodeExecutionOutputBlockfn ResponseBashCodeExecutionOutputBlock::not_equal(x : ResponseBashCodeExecutionOutputBlock, y : ResponseBashCodeExecutionOutputBlock) -> Boolfn ResponseBashCodeExecutionOutputBlock::to_json(self : ResponseBashCodeExecutionOutputBlock) -> Jsonpub(all) struct ResponseBashCodeExecutionResultBlock {
content : Array[ResponseBashCodeExecutionOutputBlock]
return_code : Int
stderr : String
stdout : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionResultBlock::new(content~ : Array[ResponseBashCodeExecutionOutputBlock], return_code~ : Int, stderr~ : String, stdout~ : String, type_~ : String) -> ResponseBashCodeExecutionResultBlockfn ResponseBashCodeExecutionResultBlock::not_equal(x : ResponseBashCodeExecutionResultBlock, y : ResponseBashCodeExecutionResultBlock) -> Boolfn ResponseBashCodeExecutionResultBlock::to_json(self : ResponseBashCodeExecutionResultBlock) -> Jsonpub(all) struct ResponseBashCodeExecutionToolResultBlock {
content : ResponseBashCodeExecutionToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultBlock::new(content~ : ResponseBashCodeExecutionToolResultBlockContent, tool_use_id~ : String, type_~ : String) -> ResponseBashCodeExecutionToolResultBlockfn ResponseBashCodeExecutionToolResultBlock::not_equal(x : ResponseBashCodeExecutionToolResultBlock, y : ResponseBashCodeExecutionToolResultBlock) -> Boolfn ResponseBashCodeExecutionToolResultBlock::to_json(self : ResponseBashCodeExecutionToolResultBlock) -> Jsonpub(all) enum ResponseBashCodeExecutionToolResultBlockContent {
BashCodeExecutionToolResultError(ResponseBashCodeExecutionToolResultError)
BashCodeExecutionResult(ResponseBashCodeExecutionResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultBlockContent::to_json(self : ResponseBashCodeExecutionToolResultBlockContent) -> Jsonpub(all) struct ResponseBashCodeExecutionToolResultError {
error_code : BashCodeExecutionToolResultErrorCode
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultError::from_json(value : Json, path : DecodeContext) -> ResponseBashCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultError::new(error_code~ : BashCodeExecutionToolResultErrorCode, type_~ : String) -> ResponseBashCodeExecutionToolResultErrorfn ResponseBashCodeExecutionToolResultError::not_equal(x : ResponseBashCodeExecutionToolResultError, y : ResponseBashCodeExecutionToolResultError) -> Boolfn ResponseBashCodeExecutionToolResultError::to_json(self : ResponseBashCodeExecutionToolResultError) -> Jsonimpl FromJson for ResponseCharLocationCitationfn from_json(value : Json, path : DecodeContext) -> ResponseCharLocationCitation raise JsonDecodeErrorimpl ToJson for ResponseCharLocationCitationfn ResponseCharLocationCitation::equal(ResponseCharLocationCitation, ResponseCharLocationCitation) -> Boolfn ResponseCharLocationCitation::from_json(value : Json, path : DecodeContext) -> ResponseCharLocationCitation raise JsonDecodeErrorfn ResponseCharLocationCitation::new(cited_text~ : String, document_index~ : Int, end_char_index~ : Int, start_char_index~ : Int, type_~ : String, document_title? : String, file_id? : String) -> ResponseCharLocationCitationfn ResponseCharLocationCitation::not_equal(x : ResponseCharLocationCitation, y : ResponseCharLocationCitation) -> Boolimpl FromJson for ResponseCitationsConfigimpl ToJson for ResponseCitationsConfigfn ResponseCitationsConfig::from_json(value : Json, path : DecodeContext) -> ResponseCitationsConfig raise JsonDecodeErrorfn ResponseCitationsConfig::not_equal(x : ResponseCitationsConfig, y : ResponseCitationsConfig) -> Boolimpl FromJson for ResponseCodeExecutionOutputBlockfn from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionOutputBlock raise JsonDecodeErrorimpl ToJson for ResponseCodeExecutionOutputBlockfn ResponseCodeExecutionOutputBlock::from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionOutputBlock raise JsonDecodeErrorfn ResponseCodeExecutionOutputBlock::not_equal(x : ResponseCodeExecutionOutputBlock, y : ResponseCodeExecutionOutputBlock) -> Boolpub(all) struct ResponseCodeExecutionResultBlock {
content : Array[ResponseCodeExecutionOutputBlock]
return_code : Int
stderr : String
stdout : String
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseCodeExecutionResultBlockfn from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionResultBlock raise JsonDecodeErrorimpl ToJson for ResponseCodeExecutionResultBlockfn ResponseCodeExecutionResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseCodeExecutionResultBlock::new(content~ : Array[ResponseCodeExecutionOutputBlock], return_code~ : Int, stderr~ : String, stdout~ : String, type_~ : String) -> ResponseCodeExecutionResultBlockfn ResponseCodeExecutionResultBlock::not_equal(x : ResponseCodeExecutionResultBlock, y : ResponseCodeExecutionResultBlock) -> Boolpub(all) struct ResponseCodeExecutionToolResultBlock {
content : ResponseCodeExecutionToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseCodeExecutionToolResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseCodeExecutionToolResultBlock::new(content~ : ResponseCodeExecutionToolResultBlockContent, tool_use_id~ : String, type_~ : String) -> ResponseCodeExecutionToolResultBlockfn ResponseCodeExecutionToolResultBlock::not_equal(x : ResponseCodeExecutionToolResultBlock, y : ResponseCodeExecutionToolResultBlock) -> Boolfn ResponseCodeExecutionToolResultBlock::to_json(self : ResponseCodeExecutionToolResultBlock) -> Jsonpub(all) enum ResponseCodeExecutionToolResultBlockContent {
CodeExecutionToolResultError(ResponseCodeExecutionToolResultError)
CodeExecutionResult(ResponseCodeExecutionResultBlock)
EncryptedCodeExecutionResult(ResponseEncryptedCodeExecutionResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseCodeExecutionToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseCodeExecutionToolResultBlockContent::not_equal(x : ResponseCodeExecutionToolResultBlockContent, y : ResponseCodeExecutionToolResultBlockContent) -> Boolfn ResponseCodeExecutionToolResultBlockContent::to_json(self : ResponseCodeExecutionToolResultBlockContent) -> Jsonpub(all) struct ResponseCodeExecutionToolResultError {
error_code : CodeExecutionToolResultErrorCode
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseCodeExecutionToolResultError::from_json(value : Json, path : DecodeContext) -> ResponseCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseCodeExecutionToolResultError::new(error_code~ : CodeExecutionToolResultErrorCode, type_~ : String) -> ResponseCodeExecutionToolResultErrorfn ResponseCodeExecutionToolResultError::not_equal(x : ResponseCodeExecutionToolResultError, y : ResponseCodeExecutionToolResultError) -> Boolfn ResponseCodeExecutionToolResultError::to_json(self : ResponseCodeExecutionToolResultError) -> Jsonimpl FromJson for ResponseContainerUploadBlockfn from_json(value : Json, path : DecodeContext) -> ResponseContainerUploadBlock raise JsonDecodeErrorimpl ToJson for ResponseContainerUploadBlockfn ResponseContainerUploadBlock::equal(ResponseContainerUploadBlock, ResponseContainerUploadBlock) -> Boolfn ResponseContainerUploadBlock::from_json(value : Json, path : DecodeContext) -> ResponseContainerUploadBlock raise JsonDecodeErrorfn ResponseContainerUploadBlock::new(file_id~ : String, type_~ : String) -> ResponseContainerUploadBlockfn ResponseContainerUploadBlock::not_equal(x : ResponseContainerUploadBlock, y : ResponseContainerUploadBlock) -> Boolfn from_json(value : Json, path : DecodeContext) -> ResponseContentBlockLocationCitation raise JsonDecodeErrorfn ResponseContentBlockLocationCitation::from_json(value : Json, path : DecodeContext) -> ResponseContentBlockLocationCitation raise JsonDecodeErrorfn ResponseContentBlockLocationCitation::new(cited_text~ : String, document_index~ : Int, end_block_index~ : Int, start_block_index~ : Int, type_~ : String, document_title? : String, file_id? : String) -> ResponseContentBlockLocationCitationfn ResponseContentBlockLocationCitation::not_equal(x : ResponseContentBlockLocationCitation, y : ResponseContentBlockLocationCitation) -> Boolfn ResponseContentBlockLocationCitation::to_json(self : ResponseContentBlockLocationCitation) -> Jsonpub(all) struct ResponseDocumentBlock {
citations : ResponseCitationsConfig?
source : ResponseDocumentBlockSource
title : String?
} derive(Eq, Debug)impl FromJson for ResponseDocumentBlockimpl ToJson for ResponseDocumentBlockfn ResponseDocumentBlock::from_json(value : Json, path : DecodeContext) -> ResponseDocumentBlock raise JsonDecodeErrorfn ResponseDocumentBlock::new(source~ : ResponseDocumentBlockSource, citations? : ResponseCitationsConfig, title? : String) -> ResponseDocumentBlockpub(all) enum ResponseDocumentBlockSource {
Base64(Base64PDFSource)
Text(PlainTextSource)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ResponseDocumentBlockSourcefn from_json(value : Json, path : DecodeContext) -> ResponseDocumentBlockSource raise JsonDecodeErrorimpl ToJson for ResponseDocumentBlockSourcefn ResponseDocumentBlockSource::equal(ResponseDocumentBlockSource, ResponseDocumentBlockSource) -> Boolfn ResponseDocumentBlockSource::from_json(value : Json, path : DecodeContext) -> ResponseDocumentBlockSource raise JsonDecodeErrorfn ResponseDocumentBlockSource::not_equal(x : ResponseDocumentBlockSource, y : ResponseDocumentBlockSource) -> Boolpub(all) struct ResponseEncryptedCodeExecutionResultBlock {
content : Array[ResponseCodeExecutionOutputBlock]
encrypted_stdout : String
return_code : Int
stderr : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseEncryptedCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseEncryptedCodeExecutionResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseEncryptedCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseEncryptedCodeExecutionResultBlock::new(content~ : Array[ResponseCodeExecutionOutputBlock], encrypted_stdout~ : String, return_code~ : Int, stderr~ : String, type_~ : String) -> ResponseEncryptedCodeExecutionResultBlockfn ResponseEncryptedCodeExecutionResultBlock::not_equal(x : ResponseEncryptedCodeExecutionResultBlock, y : ResponseEncryptedCodeExecutionResultBlock) -> Boolfn ResponseEncryptedCodeExecutionResultBlock::to_json(self : ResponseEncryptedCodeExecutionResultBlock) -> Jsonimpl FromJson for ResponsePageLocationCitationfn from_json(value : Json, path : DecodeContext) -> ResponsePageLocationCitation raise JsonDecodeErrorimpl ToJson for ResponsePageLocationCitationfn ResponsePageLocationCitation::equal(ResponsePageLocationCitation, ResponsePageLocationCitation) -> Boolfn ResponsePageLocationCitation::from_json(value : Json, path : DecodeContext) -> ResponsePageLocationCitation raise JsonDecodeErrorfn ResponsePageLocationCitation::new(cited_text~ : String, document_index~ : Int, end_page_number~ : Int, start_page_number~ : Int, type_~ : String, document_title? : String, file_id? : String) -> ResponsePageLocationCitationfn ResponsePageLocationCitation::not_equal(x : ResponsePageLocationCitation, y : ResponsePageLocationCitation) -> Boolimpl FromJson for ResponseRedactedThinkingBlockfn from_json(value : Json, path : DecodeContext) -> ResponseRedactedThinkingBlock raise JsonDecodeErrorimpl ToJson for ResponseRedactedThinkingBlockfn ResponseRedactedThinkingBlock::equal(ResponseRedactedThinkingBlock, ResponseRedactedThinkingBlock) -> Boolfn ResponseRedactedThinkingBlock::from_json(value : Json, path : DecodeContext) -> ResponseRedactedThinkingBlock raise JsonDecodeErrorfn ResponseRedactedThinkingBlock::new(data~ : String, type_~ : String) -> ResponseRedactedThinkingBlockfn ResponseRedactedThinkingBlock::not_equal(x : ResponseRedactedThinkingBlock, y : ResponseRedactedThinkingBlock) -> Boolfn from_json(value : Json, path : DecodeContext) -> ResponseSearchResultLocationCitation raise JsonDecodeErrorfn ResponseSearchResultLocationCitation::from_json(value : Json, path : DecodeContext) -> ResponseSearchResultLocationCitation raise JsonDecodeErrorfn ResponseSearchResultLocationCitation::new(cited_text~ : String, end_block_index~ : Int, search_result_index~ : Int, source~ : String, start_block_index~ : Int, type_~ : String, title? : String) -> ResponseSearchResultLocationCitationfn ResponseSearchResultLocationCitation::not_equal(x : ResponseSearchResultLocationCitation, y : ResponseSearchResultLocationCitation) -> Boolfn ResponseSearchResultLocationCitation::to_json(self : ResponseSearchResultLocationCitation) -> Jsonpub(all) struct ResponseServerToolUseBlock {
caller : ResponseServerToolUseBlockCaller
id : String
input : Json
name : ResponseServerToolUseBlockName
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseServerToolUseBlockfn from_json(value : Json, path : DecodeContext) -> ResponseServerToolUseBlock raise JsonDecodeErrorimpl ToJson for ResponseServerToolUseBlockfn ResponseServerToolUseBlock::equal(ResponseServerToolUseBlock, ResponseServerToolUseBlock) -> Boolfn ResponseServerToolUseBlock::from_json(value : Json, path : DecodeContext) -> ResponseServerToolUseBlock raise JsonDecodeErrorfn ResponseServerToolUseBlock::new(caller~ : ResponseServerToolUseBlockCaller, id~ : String, input~ : Json, name~ : ResponseServerToolUseBlockName, type_~ : String) -> ResponseServerToolUseBlockfn ResponseServerToolUseBlock::not_equal(x : ResponseServerToolUseBlock, y : ResponseServerToolUseBlock) -> Boolpub(all) enum ResponseServerToolUseBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ResponseServerToolUseBlockCallerfn from_json(value : Json, path : DecodeContext) -> ResponseServerToolUseBlockCaller raise JsonDecodeErrorimpl ToJson for ResponseServerToolUseBlockCallerfn ResponseServerToolUseBlockCaller::from_json(value : Json, path : DecodeContext) -> ResponseServerToolUseBlockCaller raise JsonDecodeErrorfn ResponseServerToolUseBlockCaller::not_equal(x : ResponseServerToolUseBlockCaller, y : ResponseServerToolUseBlockCaller) -> Boolimpl FromJson for ResponseServerToolUseBlockNamefn from_json(value : Json, path : DecodeContext) -> ResponseServerToolUseBlockName raise JsonDecodeErrorimpl ToJson for ResponseServerToolUseBlockNamefn ResponseServerToolUseBlockName::from_json(value : Json, path : DecodeContext) -> ResponseServerToolUseBlockName raise JsonDecodeErrorfn ResponseServerToolUseBlockName::not_equal(x : ResponseServerToolUseBlockName, y : ResponseServerToolUseBlockName) -> Boolpub(all) struct ResponseTextBlock {
citations : Presence[Array[ResponseTextBlockCitationsItem]]
text : String
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseTextBlockimpl ToJson for ResponseTextBlockfn ResponseTextBlock::from_json(value : Json, path : DecodeContext) -> ResponseTextBlock raise JsonDecodeErrorfn ResponseTextBlock::new(text~ : String, type_~ : String, citations? : Array[ResponseTextBlockCitationsItem]) -> ResponseTextBlockpub(all) enum ResponseTextBlockCitationsItem {
CharLocation(ResponseCharLocationCitation)
ContentBlockLocation(ResponseContentBlockLocationCitation)
PageLocation(ResponsePageLocationCitation)
SearchResultLocation(ResponseSearchResultLocationCitation)
WebSearchResultLocation(ResponseWebSearchResultLocationCitation)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ResponseTextBlockCitationsItemfn from_json(value : Json, path : DecodeContext) -> ResponseTextBlockCitationsItem raise JsonDecodeErrorimpl ToJson for ResponseTextBlockCitationsItemfn ResponseTextBlockCitationsItem::from_json(value : Json, path : DecodeContext) -> ResponseTextBlockCitationsItem raise JsonDecodeErrorfn ResponseTextBlockCitationsItem::not_equal(x : ResponseTextBlockCitationsItem, y : ResponseTextBlockCitationsItem) -> Boolfn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionCreateResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionCreateResultBlock::new(is_file_update~ : Bool, type_~ : String) -> ResponseTextEditorCodeExecutionCreateResultBlockfn ResponseTextEditorCodeExecutionCreateResultBlock::to_json(self : ResponseTextEditorCodeExecutionCreateResultBlock) -> Jsonfn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionStrReplaceResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionStrReplaceResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionStrReplaceResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionStrReplaceResultBlock::new(type_~ : String, lines? : Array[String], new_lines? : Int, new_start? : Int, old_lines? : Int, old_start? : Int) -> ResponseTextEditorCodeExecutionStrReplaceResultBlockpub(all) struct ResponseTextEditorCodeExecutionToolResultBlock {
content : ResponseTextEditorCodeExecutionToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultBlock::new(content~ : ResponseTextEditorCodeExecutionToolResultBlockContent, tool_use_id~ : String, type_~ : String) -> ResponseTextEditorCodeExecutionToolResultBlockfn ResponseTextEditorCodeExecutionToolResultBlock::to_json(self : ResponseTextEditorCodeExecutionToolResultBlock) -> Jsonpub(all) enum ResponseTextEditorCodeExecutionToolResultBlockContent {
TextEditorCodeExecutionToolResultError(ResponseTextEditorCodeExecutionToolResultError)
TextEditorCodeExecutionViewResult(ResponseTextEditorCodeExecutionViewResultBlock)
TextEditorCodeExecutionCreateResult(ResponseTextEditorCodeExecutionCreateResultBlock)
TextEditorCodeExecutionStrReplaceResult(ResponseTextEditorCodeExecutionStrReplaceResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorpub(all) struct ResponseTextEditorCodeExecutionToolResultError {
error_code : TextEditorCodeExecutionToolResultErrorCode
error_message : String?
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultError::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultError::new(error_code~ : TextEditorCodeExecutionToolResultErrorCode, type_~ : String, error_message? : String) -> ResponseTextEditorCodeExecutionToolResultErrorfn ResponseTextEditorCodeExecutionToolResultError::to_json(self : ResponseTextEditorCodeExecutionToolResultError) -> Jsonpub(all) struct ResponseTextEditorCodeExecutionViewResultBlock {
content : String
file_type : ResponseTextEditorCodeExecutionViewResultBlockFileType
num_lines : Int?
start_line : Int?
total_lines : Int?
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionViewResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionViewResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionViewResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionViewResultBlock::new(content~ : String, file_type~ : ResponseTextEditorCodeExecutionViewResultBlockFileType, type_~ : String, num_lines? : Int, start_line? : Int, total_lines? : Int) -> ResponseTextEditorCodeExecutionViewResultBlockfn ResponseTextEditorCodeExecutionViewResultBlock::to_json(self : ResponseTextEditorCodeExecutionViewResultBlock) -> Jsonfn from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionViewResultBlockFileType::from_json(value : Json, path : DecodeContext) -> ResponseTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorimpl FromJson for ResponseThinkingBlockimpl ToJson for ResponseThinkingBlockfn ResponseThinkingBlock::from_json(value : Json, path : DecodeContext) -> ResponseThinkingBlock raise JsonDecodeErrorfn ResponseThinkingBlock::new(signature~ : String, thinking~ : String, type_~ : String) -> ResponseThinkingBlockimpl FromJson for ResponseToolReferenceBlockfn from_json(value : Json, path : DecodeContext) -> ResponseToolReferenceBlock raise JsonDecodeErrorimpl ToJson for ResponseToolReferenceBlockfn ResponseToolReferenceBlock::equal(ResponseToolReferenceBlock, ResponseToolReferenceBlock) -> Boolfn ResponseToolReferenceBlock::from_json(value : Json, path : DecodeContext) -> ResponseToolReferenceBlock raise JsonDecodeErrorfn ResponseToolReferenceBlock::not_equal(x : ResponseToolReferenceBlock, y : ResponseToolReferenceBlock) -> Boolpub(all) struct ResponseToolSearchToolResultBlock {
content : ResponseToolSearchToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolResultBlock raise JsonDecodeErrorimpl ToJson for ResponseToolSearchToolResultBlockfn ResponseToolSearchToolResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolResultBlock raise JsonDecodeErrorfn ResponseToolSearchToolResultBlock::new(content~ : ResponseToolSearchToolResultBlockContent, tool_use_id~ : String, type_~ : String) -> ResponseToolSearchToolResultBlockfn ResponseToolSearchToolResultBlock::not_equal(x : ResponseToolSearchToolResultBlock, y : ResponseToolSearchToolResultBlock) -> Boolpub(all) enum ResponseToolSearchToolResultBlockContent {
ToolSearchToolResultError(ResponseToolSearchToolResultError)
ToolSearchToolSearchResult(ResponseToolSearchToolSearchResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolResultBlockContent raise JsonDecodeErrorfn ResponseToolSearchToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolResultBlockContent raise JsonDecodeErrorfn ResponseToolSearchToolResultBlockContent::not_equal(x : ResponseToolSearchToolResultBlockContent, y : ResponseToolSearchToolResultBlockContent) -> Boolfn ResponseToolSearchToolResultBlockContent::to_json(self : ResponseToolSearchToolResultBlockContent) -> Jsonpub(all) struct ResponseToolSearchToolResultError {
error_code : ToolSearchToolResultErrorCode
error_message : String?
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolResultError raise JsonDecodeErrorimpl ToJson for ResponseToolSearchToolResultErrorfn ResponseToolSearchToolResultError::from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolResultError raise JsonDecodeErrorfn ResponseToolSearchToolResultError::new(error_code~ : ToolSearchToolResultErrorCode, type_~ : String, error_message? : String) -> ResponseToolSearchToolResultErrorfn ResponseToolSearchToolResultError::not_equal(x : ResponseToolSearchToolResultError, y : ResponseToolSearchToolResultError) -> Boolpub(all) struct ResponseToolSearchToolSearchResultBlock {
tool_references : Array[ResponseToolReferenceBlock]
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolSearchResultBlock raise JsonDecodeErrorfn ResponseToolSearchToolSearchResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseToolSearchToolSearchResultBlock raise JsonDecodeErrorfn ResponseToolSearchToolSearchResultBlock::new(tool_references~ : Array[ResponseToolReferenceBlock], type_~ : String) -> ResponseToolSearchToolSearchResultBlockfn ResponseToolSearchToolSearchResultBlock::not_equal(x : ResponseToolSearchToolSearchResultBlock, y : ResponseToolSearchToolSearchResultBlock) -> Boolfn ResponseToolSearchToolSearchResultBlock::to_json(self : ResponseToolSearchToolSearchResultBlock) -> Jsonpub(all) struct ResponseToolUseBlock {
caller : ResponseToolUseBlockCaller
id : String
input : Json
name : String
toolset_name : Presence[String]
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseToolUseBlockimpl ToJson for ResponseToolUseBlockfn ResponseToolUseBlock::from_json(value : Json, path : DecodeContext) -> ResponseToolUseBlock raise JsonDecodeErrorfn ResponseToolUseBlock::new(caller~ : ResponseToolUseBlockCaller, id~ : String, input~ : Json, name~ : String, type_~ : String, toolset_name? : String) -> ResponseToolUseBlockpub(all) enum ResponseToolUseBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ResponseToolUseBlockCallerfn from_json(value : Json, path : DecodeContext) -> ResponseToolUseBlockCaller raise JsonDecodeErrorimpl ToJson for ResponseToolUseBlockCallerfn ResponseToolUseBlockCaller::equal(ResponseToolUseBlockCaller, ResponseToolUseBlockCaller) -> Boolfn ResponseToolUseBlockCaller::from_json(value : Json, path : DecodeContext) -> ResponseToolUseBlockCaller raise JsonDecodeErrorfn ResponseToolUseBlockCaller::not_equal(x : ResponseToolUseBlockCaller, y : ResponseToolUseBlockCaller) -> Boolpub(all) struct ResponseWebFetchResultBlock {
content : ResponseDocumentBlock
retrieved_at : String?
type_ : String
url : String
} derive(Eq, Debug)impl FromJson for ResponseWebFetchResultBlockfn from_json(value : Json, path : DecodeContext) -> ResponseWebFetchResultBlock raise JsonDecodeErrorimpl ToJson for ResponseWebFetchResultBlockfn ResponseWebFetchResultBlock::equal(ResponseWebFetchResultBlock, ResponseWebFetchResultBlock) -> Boolfn ResponseWebFetchResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseWebFetchResultBlock raise JsonDecodeErrorfn ResponseWebFetchResultBlock::new(content~ : ResponseDocumentBlock, type_~ : String, url~ : String, retrieved_at? : String) -> ResponseWebFetchResultBlockfn ResponseWebFetchResultBlock::not_equal(x : ResponseWebFetchResultBlock, y : ResponseWebFetchResultBlock) -> Boolpub(all) struct ResponseWebFetchToolResultBlock {
caller : ResponseWebFetchToolResultBlockCaller
content : ResponseWebFetchToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseWebFetchToolResultBlockfn from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultBlock raise JsonDecodeErrorimpl ToJson for ResponseWebFetchToolResultBlockfn ResponseWebFetchToolResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultBlock raise JsonDecodeErrorfn ResponseWebFetchToolResultBlock::new(caller~ : ResponseWebFetchToolResultBlockCaller, content~ : ResponseWebFetchToolResultBlockContent, tool_use_id~ : String, type_~ : String) -> ResponseWebFetchToolResultBlockfn ResponseWebFetchToolResultBlock::not_equal(x : ResponseWebFetchToolResultBlock, y : ResponseWebFetchToolResultBlock) -> Boolpub(all) enum ResponseWebFetchToolResultBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultBlockCaller raise JsonDecodeErrorfn ResponseWebFetchToolResultBlockCaller::from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultBlockCaller raise JsonDecodeErrorfn ResponseWebFetchToolResultBlockCaller::not_equal(x : ResponseWebFetchToolResultBlockCaller, y : ResponseWebFetchToolResultBlockCaller) -> Boolfn ResponseWebFetchToolResultBlockCaller::to_json(self : ResponseWebFetchToolResultBlockCaller) -> Jsonpub(all) enum ResponseWebFetchToolResultBlockContent {
WebFetchToolResultError(ResponseWebFetchToolResultError)
WebFetchResult(ResponseWebFetchResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultBlockContent raise JsonDecodeErrorfn ResponseWebFetchToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultBlockContent raise JsonDecodeErrorfn ResponseWebFetchToolResultBlockContent::not_equal(x : ResponseWebFetchToolResultBlockContent, y : ResponseWebFetchToolResultBlockContent) -> Boolfn ResponseWebFetchToolResultBlockContent::to_json(self : ResponseWebFetchToolResultBlockContent) -> Jsonpub(all) struct ResponseWebFetchToolResultError {
error_code : WebFetchToolResultErrorCode
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseWebFetchToolResultErrorfn from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultError raise JsonDecodeErrorimpl ToJson for ResponseWebFetchToolResultErrorfn ResponseWebFetchToolResultError::from_json(value : Json, path : DecodeContext) -> ResponseWebFetchToolResultError raise JsonDecodeErrorfn ResponseWebFetchToolResultError::new(error_code~ : WebFetchToolResultErrorCode, type_~ : String) -> ResponseWebFetchToolResultErrorfn ResponseWebFetchToolResultError::not_equal(x : ResponseWebFetchToolResultError, y : ResponseWebFetchToolResultError) -> Boolimpl FromJson for ResponseWebSearchResultBlockfn from_json(value : Json, path : DecodeContext) -> ResponseWebSearchResultBlock raise JsonDecodeErrorimpl ToJson for ResponseWebSearchResultBlockfn ResponseWebSearchResultBlock::equal(ResponseWebSearchResultBlock, ResponseWebSearchResultBlock) -> Boolfn ResponseWebSearchResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseWebSearchResultBlock raise JsonDecodeErrorfn ResponseWebSearchResultBlock::new(encrypted_content~ : String, title~ : String, url~ : String, page_age? : String) -> ResponseWebSearchResultBlockfn ResponseWebSearchResultBlock::not_equal(x : ResponseWebSearchResultBlock, y : ResponseWebSearchResultBlock) -> Boolfn from_json(value : Json, path : DecodeContext) -> ResponseWebSearchResultLocationCitation raise JsonDecodeErrorfn ResponseWebSearchResultLocationCitation::from_json(value : Json, path : DecodeContext) -> ResponseWebSearchResultLocationCitation raise JsonDecodeErrorfn ResponseWebSearchResultLocationCitation::new(cited_text~ : String, encrypted_index~ : String, type_~ : String, url~ : String, title? : String) -> ResponseWebSearchResultLocationCitationfn ResponseWebSearchResultLocationCitation::not_equal(x : ResponseWebSearchResultLocationCitation, y : ResponseWebSearchResultLocationCitation) -> Boolfn ResponseWebSearchResultLocationCitation::to_json(self : ResponseWebSearchResultLocationCitation) -> Jsonpub(all) struct ResponseWebSearchToolResultBlock {
caller : ResponseWebSearchToolResultBlockCaller
content : ResponseWebSearchToolResultBlockContent
tool_use_id : String
type_ : String
} derive(Eq, Debug)impl FromJson for ResponseWebSearchToolResultBlockfn from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultBlock raise JsonDecodeErrorimpl ToJson for ResponseWebSearchToolResultBlockfn ResponseWebSearchToolResultBlock::from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultBlock raise JsonDecodeErrorfn ResponseWebSearchToolResultBlock::new(caller~ : ResponseWebSearchToolResultBlockCaller, content~ : ResponseWebSearchToolResultBlockContent, tool_use_id~ : String, type_~ : String) -> ResponseWebSearchToolResultBlockfn ResponseWebSearchToolResultBlock::not_equal(x : ResponseWebSearchToolResultBlock, y : ResponseWebSearchToolResultBlock) -> Boolpub(all) enum ResponseWebSearchToolResultBlockCaller {
CodeExecution20250825(ServerToolCaller)
CodeExecution20260120(ServerToolCaller20260120)
Direct(DirectCaller)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultBlockCaller raise JsonDecodeErrorfn ResponseWebSearchToolResultBlockCaller::from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultBlockCaller raise JsonDecodeErrorfn ResponseWebSearchToolResultBlockCaller::not_equal(x : ResponseWebSearchToolResultBlockCaller, y : ResponseWebSearchToolResultBlockCaller) -> Boolfn ResponseWebSearchToolResultBlockCaller::to_json(self : ResponseWebSearchToolResultBlockCaller) -> Jsonpub(all) enum ResponseWebSearchToolResultBlockContent {
ResponseWebSearchToolResultError(ResponseWebSearchToolResultError)
ResponseWebSearchResultBlockArray(Array[ResponseWebSearchResultBlock])
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultBlockContent raise JsonDecodeErrorfn ResponseWebSearchToolResultBlockContent::from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultBlockContent raise JsonDecodeErrorfn ResponseWebSearchToolResultBlockContent::not_equal(x : ResponseWebSearchToolResultBlockContent, y : ResponseWebSearchToolResultBlockContent) -> Boolfn ResponseWebSearchToolResultBlockContent::to_json(self : ResponseWebSearchToolResultBlockContent) -> Jsonpub(all) struct ResponseWebSearchToolResultError {
error_code : WebSearchToolResultErrorCode
} derive(Eq, Debug)impl FromJson for ResponseWebSearchToolResultErrorfn from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultError raise JsonDecodeErrorimpl ToJson for ResponseWebSearchToolResultErrorfn ResponseWebSearchToolResultError::from_json(value : Json, path : DecodeContext) -> ResponseWebSearchToolResultError raise JsonDecodeErrorfn ResponseWebSearchToolResultError::new(error_code~ : WebSearchToolResultErrorCode) -> ResponseWebSearchToolResultErrorfn ResponseWebSearchToolResultError::not_equal(x : ResponseWebSearchToolResultError, y : ResponseWebSearchToolResultError) -> Boolimpl FromJson for ServerToolCallerimpl ToJson for ServerToolCallerfn ServerToolCaller::from_json(value : Json, path : DecodeContext) -> ServerToolCaller raise JsonDecodeErrorimpl FromJson for ServerToolCaller20260120impl ToJson for ServerToolCaller20260120fn ServerToolCaller20260120::from_json(value : Json, path : DecodeContext) -> ServerToolCaller20260120 raise JsonDecodeErrorfn ServerToolCaller20260120::not_equal(x : ServerToolCaller20260120, y : ServerToolCaller20260120) -> Boolimpl FromJson for ServerToolUsageimpl ToJson for ServerToolUsagefn ServerToolUsage::from_json(value : Json, path : DecodeContext) -> ServerToolUsage raise JsonDecodeErrorpub(all) struct ServerToolsCapability {
code_execution : CapabilitySupport
supported : Bool
web_search : CapabilitySupport
} derive(Eq, Debug)impl FromJson for ServerToolsCapabilityimpl ToJson for ServerToolsCapabilityfn ServerToolsCapability::from_json(value : Json, path : DecodeContext) -> ServerToolsCapability raise JsonDecodeErrorfn ServerToolsCapability::new(code_execution~ : CapabilitySupport, supported~ : Bool, web_search~ : CapabilitySupport) -> ServerToolsCapabilityimpl FromJson for SignatureContentBlockDeltafn from_json(value : Json, path : DecodeContext) -> SignatureContentBlockDelta raise JsonDecodeErrorimpl ToJson for SignatureContentBlockDeltafn SignatureContentBlockDelta::equal(SignatureContentBlockDelta, SignatureContentBlockDelta) -> Boolfn SignatureContentBlockDelta::from_json(value : Json, path : DecodeContext) -> SignatureContentBlockDelta raise JsonDecodeErrorfn SignatureContentBlockDelta::new(signature~ : String, type_~ : String) -> SignatureContentBlockDeltafn SignatureContentBlockDelta::not_equal(x : SignatureContentBlockDelta, y : SignatureContentBlockDelta) -> Boolpub(all) struct SkillParams {
skill_id : String
type_ : SkillParamsType
version : String?
} derive(Eq, Debug)impl FromJson for SkillParamsimpl ToJson for SkillParamsimpl FromJson for SkillParamsTypeimpl ToJson for SkillParamsTypefn SkillParamsType::from_json(value : Json, path : DecodeContext) -> SkillParamsType raise JsonDecodeErrorfn from_json(value : Json, path : DecodeContext) -> SkillReadBlockedUndecryptableErrorDetails raise JsonDecodeErrorfn SkillReadBlockedUndecryptableErrorDetails::from_json(value : Json, path : DecodeContext) -> SkillReadBlockedUndecryptableErrorDetails raise JsonDecodeErrorfn SkillReadBlockedUndecryptableErrorDetails::not_equal(x : SkillReadBlockedUndecryptableErrorDetails, y : SkillReadBlockedUndecryptableErrorDetails) -> Boolfn SkillReadBlockedUndecryptableErrorDetails::to_json(_self : SkillReadBlockedUndecryptableErrorDetails) -> Jsonimpl FromJson for StopDetailsimpl ToJson for StopDetailsimpl FromJson for StopReasonimpl ToJson for StopReasonpub(all) struct SystemInputMessage {
content : SystemInputMessageContent
role : String
} derive(Eq, Debug)impl FromJson for SystemInputMessageimpl ToJson for SystemInputMessagefn SystemInputMessage::from_json(value : Json, path : DecodeContext) -> SystemInputMessage raise JsonDecodeErrorfn SystemInputMessage::new(content~ : SystemInputMessageContent, role~ : String) -> SystemInputMessagepub(all) enum SystemInputMessageContent {
Text(String)
ValueArray(Array[SystemInputMessageContentValueArrayItem])
} derive(Eq, Debug)impl FromJson for SystemInputMessageContentimpl ToJson for SystemInputMessageContentfn SystemInputMessageContent::from_json(value : Json, path : DecodeContext) -> SystemInputMessageContent raise JsonDecodeErrorfn SystemInputMessageContent::not_equal(x : SystemInputMessageContent, y : SystemInputMessageContent) -> Boolpub(all) enum SystemInputMessageContentValueArrayItem {
Text(RequestTextBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> SystemInputMessageContentValueArrayItem raise JsonDecodeErrorfn SystemInputMessageContentValueArrayItem::from_json(value : Json, path : DecodeContext) -> SystemInputMessageContentValueArrayItem raise JsonDecodeErrorfn SystemInputMessageContentValueArrayItem::not_equal(x : SystemInputMessageContentValueArrayItem, y : SystemInputMessageContentValueArrayItem) -> Boolfn SystemInputMessageContentValueArrayItem::to_json(self : SystemInputMessageContentValueArrayItem) -> Jsonimpl FromJson for TextContentBlockDeltaimpl ToJson for TextContentBlockDeltafn TextContentBlockDelta::from_json(value : Json, path : DecodeContext) -> TextContentBlockDelta raise JsonDecodeErrorpub(all) struct TextEditor20250124 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[TextEditor20250124CacheControl]
defer_loading : Bool?
input_examples : Array[Map[String, Json]]?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for TextEditor20250124impl ToJson for TextEditor20250124fn TextEditor20250124::from_json(value : Json, path : DecodeContext) -> TextEditor20250124 raise JsonDecodeErrorfn TextEditor20250124::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : TextEditor20250124CacheControl, defer_loading? : Bool, input_examples? : Array[Map[String, Json]], strict? : Bool) -> TextEditor20250124pub(all) enum TextEditor20250124CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for TextEditor20250124CacheControlfn from_json(value : Json, path : DecodeContext) -> TextEditor20250124CacheControl raise JsonDecodeErrorimpl ToJson for TextEditor20250124CacheControlfn TextEditor20250124CacheControl::from_json(value : Json, path : DecodeContext) -> TextEditor20250124CacheControl raise JsonDecodeErrorfn TextEditor20250124CacheControl::not_equal(x : TextEditor20250124CacheControl, y : TextEditor20250124CacheControl) -> Boolpub(all) struct TextEditor20250429 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[TextEditor20250429CacheControl]
defer_loading : Bool?
input_examples : Array[Map[String, Json]]?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for TextEditor20250429impl ToJson for TextEditor20250429fn TextEditor20250429::from_json(value : Json, path : DecodeContext) -> TextEditor20250429 raise JsonDecodeErrorfn TextEditor20250429::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : TextEditor20250429CacheControl, defer_loading? : Bool, input_examples? : Array[Map[String, Json]], strict? : Bool) -> TextEditor20250429pub(all) enum TextEditor20250429CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for TextEditor20250429CacheControlfn from_json(value : Json, path : DecodeContext) -> TextEditor20250429CacheControl raise JsonDecodeErrorimpl ToJson for TextEditor20250429CacheControlfn TextEditor20250429CacheControl::from_json(value : Json, path : DecodeContext) -> TextEditor20250429CacheControl raise JsonDecodeErrorfn TextEditor20250429CacheControl::not_equal(x : TextEditor20250429CacheControl, y : TextEditor20250429CacheControl) -> Boolpub(all) struct TextEditor20250728 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[TextEditor20250728CacheControl]
defer_loading : Bool?
input_examples : Array[Map[String, Json]]?
max_characters : Presence[Int]
strict : Bool?
type_ : String
} derive(Eq, Debug)impl FromJson for TextEditor20250728impl ToJson for TextEditor20250728fn TextEditor20250728::from_json(value : Json, path : DecodeContext) -> TextEditor20250728 raise JsonDecodeErrorfn TextEditor20250728::new(type_~ : String, allowed_callers? : Array[AllowedCaller], cache_control? : TextEditor20250728CacheControl, defer_loading? : Bool, input_examples? : Array[Map[String, Json]], max_characters? : Int, strict? : Bool) -> TextEditor20250728pub(all) enum TextEditor20250728CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for TextEditor20250728CacheControlfn from_json(value : Json, path : DecodeContext) -> TextEditor20250728CacheControl raise JsonDecodeErrorimpl ToJson for TextEditor20250728CacheControlfn TextEditor20250728CacheControl::from_json(value : Json, path : DecodeContext) -> TextEditor20250728CacheControl raise JsonDecodeErrorfn TextEditor20250728CacheControl::not_equal(x : TextEditor20250728CacheControl, y : TextEditor20250728CacheControl) -> Boolfn from_json(value : Json, path : DecodeContext) -> TextEditorCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn TextEditorCodeExecutionToolResultErrorCode::from_json(value : Json, path : DecodeContext) -> TextEditorCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn TextEditorCodeExecutionToolResultErrorCode::not_equal(x : TextEditorCodeExecutionToolResultErrorCode, y : TextEditorCodeExecutionToolResultErrorCode) -> Boolfn TextEditorCodeExecutionToolResultErrorCode::to_json(self : TextEditorCodeExecutionToolResultErrorCode) -> Jsonimpl FromJson for ThinkingCapabilityimpl ToJson for ThinkingCapabilityfn ThinkingCapability::from_json(value : Json, path : DecodeContext) -> ThinkingCapability raise JsonDecodeErrorpub(all) struct ThinkingConfigAdaptive {
display : Presence[ThinkingDisplayMode]
type_ : String
} derive(Eq, Debug)impl FromJson for ThinkingConfigAdaptiveimpl ToJson for ThinkingConfigAdaptivefn ThinkingConfigAdaptive::from_json(value : Json, path : DecodeContext) -> ThinkingConfigAdaptive raise JsonDecodeErrorfn ThinkingConfigAdaptive::new(type_~ : String, display? : ThinkingDisplayMode) -> ThinkingConfigAdaptivefn ThinkingConfigAdaptive::not_equal(x : ThinkingConfigAdaptive, y : ThinkingConfigAdaptive) -> Boolimpl FromJson for ThinkingConfigBetweenToolsfn from_json(value : Json, path : DecodeContext) -> ThinkingConfigBetweenTools raise JsonDecodeErrorimpl ToJson for ThinkingConfigBetweenToolsfn ThinkingConfigBetweenTools::equal(ThinkingConfigBetweenTools, ThinkingConfigBetweenTools) -> Boolfn ThinkingConfigBetweenTools::from_json(value : Json, path : DecodeContext) -> ThinkingConfigBetweenTools raise JsonDecodeErrorfn ThinkingConfigBetweenTools::not_equal(x : ThinkingConfigBetweenTools, y : ThinkingConfigBetweenTools) -> Boolimpl FromJson for ThinkingConfigDisabledimpl ToJson for ThinkingConfigDisabledfn ThinkingConfigDisabled::from_json(value : Json, path : DecodeContext) -> ThinkingConfigDisabled raise JsonDecodeErrorfn ThinkingConfigDisabled::not_equal(x : ThinkingConfigDisabled, y : ThinkingConfigDisabled) -> Boolpub(all) struct ThinkingConfigEnabled {
budget_tokens : Int
display : Presence[ThinkingDisplayMode]
type_ : String
} derive(Eq, Debug)impl FromJson for ThinkingConfigEnabledimpl ToJson for ThinkingConfigEnabledfn ThinkingConfigEnabled::from_json(value : Json, path : DecodeContext) -> ThinkingConfigEnabled raise JsonDecodeErrorfn ThinkingConfigEnabled::new(budget_tokens~ : Int, type_~ : String, display? : ThinkingDisplayMode) -> ThinkingConfigEnabledpub(all) enum ThinkingConfigParam {
Adaptive(ThinkingConfigAdaptive)
BetweenTools(ThinkingConfigBetweenTools)
Disabled(ThinkingConfigDisabled)
Enabled(ThinkingConfigEnabled)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ThinkingConfigParamimpl ToJson for ThinkingConfigParamfn ThinkingConfigParam::from_json(value : Json, path : DecodeContext) -> ThinkingConfigParam raise JsonDecodeErrorimpl FromJson for ThinkingContentBlockDeltaimpl ToJson for ThinkingContentBlockDeltafn ThinkingContentBlockDelta::from_json(value : Json, path : DecodeContext) -> ThinkingContentBlockDelta raise JsonDecodeErrorfn ThinkingContentBlockDelta::not_equal(x : ThinkingContentBlockDelta, y : ThinkingContentBlockDelta) -> Boolimpl FromJson for ThinkingDisplayModeimpl ToJson for ThinkingDisplayModefn ThinkingDisplayMode::from_json(value : Json, path : DecodeContext) -> ThinkingDisplayMode raise JsonDecodeErrorpub(all) struct ThinkingTypes {
adaptive : CapabilitySupport
between_tools : CapabilitySupport
disabled : CapabilitySupport
enabled : CapabilitySupport
} derive(Eq, Debug)impl FromJson for ThinkingTypesimpl ToJson for ThinkingTypesfn ThinkingTypes::from_json(value : Json, path : DecodeContext) -> ThinkingTypes raise JsonDecodeErrorfn ThinkingTypes::new(adaptive~ : CapabilitySupport, between_tools~ : CapabilitySupport, disabled~ : CapabilitySupport, enabled~ : CapabilitySupport) -> ThinkingTypesfn from_json(value : Json, path : DecodeContext) -> ThreadAlreadyContinuedErrorDetails raise JsonDecodeErrorimpl ToJson for ThreadAlreadyContinuedErrorDetailsfn ThreadAlreadyContinuedErrorDetails::from_json(value : Json, path : DecodeContext) -> ThreadAlreadyContinuedErrorDetails raise JsonDecodeErrorfn ThreadAlreadyContinuedErrorDetails::not_equal(x : ThreadAlreadyContinuedErrorDetails, y : ThreadAlreadyContinuedErrorDetails) -> Boolfn from_json(value : Json, path : DecodeContext) -> ThreadContinueInFlightErrorDetails raise JsonDecodeErrorimpl ToJson for ThreadContinueInFlightErrorDetailsfn ThreadContinueInFlightErrorDetails::from_json(value : Json, path : DecodeContext) -> ThreadContinueInFlightErrorDetails raise JsonDecodeErrorfn ThreadContinueInFlightErrorDetails::not_equal(x : ThreadContinueInFlightErrorDetails, y : ThreadContinueInFlightErrorDetails) -> Boolfn from_json(value : Json, path : DecodeContext) -> ThreadFingerprintMismatchErrorDetails raise JsonDecodeErrorfn ThreadFingerprintMismatchErrorDetails::from_json(value : Json, path : DecodeContext) -> ThreadFingerprintMismatchErrorDetails raise JsonDecodeErrorfn ThreadFingerprintMismatchErrorDetails::not_equal(x : ThreadFingerprintMismatchErrorDetails, y : ThreadFingerprintMismatchErrorDetails) -> Boolfn ThreadFingerprintMismatchErrorDetails::to_json(_self : ThreadFingerprintMismatchErrorDetails) -> Jsonimpl FromJson for ThreadNotFoundErrorDetailsfn from_json(value : Json, path : DecodeContext) -> ThreadNotFoundErrorDetails raise JsonDecodeErrorimpl ToJson for ThreadNotFoundErrorDetailsfn ThreadNotFoundErrorDetails::equal(ThreadNotFoundErrorDetails, ThreadNotFoundErrorDetails) -> Boolfn ThreadNotFoundErrorDetails::from_json(value : Json, path : DecodeContext) -> ThreadNotFoundErrorDetails raise JsonDecodeErrorfn ThreadNotFoundErrorDetails::not_equal(x : ThreadNotFoundErrorDetails, y : ThreadNotFoundErrorDetails) -> Boolpub(all) struct ThreadUnsupportedRequestErrorDetails {
unsupported : Presence[Array[ThreadUnsupportedRequestErrorDetailsUnsupportedItem]]
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ThreadUnsupportedRequestErrorDetails raise JsonDecodeErrorfn ThreadUnsupportedRequestErrorDetails::from_json(value : Json, path : DecodeContext) -> ThreadUnsupportedRequestErrorDetails raise JsonDecodeErrorfn ThreadUnsupportedRequestErrorDetails::not_equal(x : ThreadUnsupportedRequestErrorDetails, y : ThreadUnsupportedRequestErrorDetails) -> Boolfn ThreadUnsupportedRequestErrorDetails::to_json(self : ThreadUnsupportedRequestErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> ThreadUnsupportedRequestErrorDetailsUnsupportedItem raise JsonDecodeErrorfn ThreadUnsupportedRequestErrorDetailsUnsupportedItem::from_json(value : Json, path : DecodeContext) -> ThreadUnsupportedRequestErrorDetailsUnsupportedItem raise JsonDecodeErrorpub(all) struct Tool {
type_ : Presence[String]
description : String?
name : String
input_schema : Json
cache_control : Presence[ToolCacheControl]
strict : Bool?
eager_input_streaming : Presence[Bool]
allowed_callers : Array[AllowedCaller]?
defer_loading : Bool?
input_examples : Array[Map[String, Json]]?
} derive(Eq, Debug)fn Tool::new(name~ : String, input_schema~ : Json, type_? : String, description? : String, cache_control? : ToolCacheControl, strict? : Bool, eager_input_streaming? : Bool, allowed_callers? : Array[AllowedCaller], defer_loading? : Bool, input_examples? : Array[Map[String, Json]]) -> Toolpub(all) enum ToolCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ToolCacheControlimpl ToJson for ToolCacheControlfn ToolCacheControl::from_json(value : Json, path : DecodeContext) -> ToolCacheControl raise JsonDecodeErrorpub(all) enum ToolChoice {
Any(ToolChoiceAny)
Auto(ToolChoiceAuto)
None(ToolChoiceNone)
Tool(ToolChoiceTool)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for ToolChoiceimpl ToJson for ToolChoiceimpl FromJson for ToolChoiceAnyimpl ToJson for ToolChoiceAnyfn ToolChoiceAny::from_json(value : Json, path : DecodeContext) -> ToolChoiceAny raise JsonDecodeErrorimpl FromJson for ToolChoiceAutoimpl ToJson for ToolChoiceAutofn ToolChoiceAuto::from_json(value : Json, path : DecodeContext) -> ToolChoiceAuto raise JsonDecodeErrorimpl FromJson for ToolChoiceNoneimpl ToJson for ToolChoiceNonefn ToolChoiceNone::from_json(value : Json, path : DecodeContext) -> ToolChoiceNone raise JsonDecodeErrorimpl FromJson for ToolChoiceToolimpl ToJson for ToolChoiceToolfn ToolChoiceTool::from_json(value : Json, path : DecodeContext) -> ToolChoiceTool raise JsonDecodeErrorfn ToolChoiceTool::new(name~ : String, type_~ : String, disable_parallel_tool_use? : Bool) -> ToolChoiceToolimpl FromJson for ToolNameConflictErrorDetailsfn from_json(value : Json, path : DecodeContext) -> ToolNameConflictErrorDetails raise JsonDecodeErrorimpl ToJson for ToolNameConflictErrorDetailsfn ToolNameConflictErrorDetails::equal(ToolNameConflictErrorDetails, ToolNameConflictErrorDetails) -> Boolfn ToolNameConflictErrorDetails::from_json(value : Json, path : DecodeContext) -> ToolNameConflictErrorDetails raise JsonDecodeErrorfn ToolNameConflictErrorDetails::not_equal(x : ToolNameConflictErrorDetails, y : ToolNameConflictErrorDetails) -> Boolfn from_json(value : Json, path : DecodeContext) -> ToolReferenceUnresolvedErrorDetails raise JsonDecodeErrorfn ToolReferenceUnresolvedErrorDetails::from_json(value : Json, path : DecodeContext) -> ToolReferenceUnresolvedErrorDetails raise JsonDecodeErrorfn ToolReferenceUnresolvedErrorDetails::not_equal(x : ToolReferenceUnresolvedErrorDetails, y : ToolReferenceUnresolvedErrorDetails) -> Boolfn ToolReferenceUnresolvedErrorDetails::to_json(_self : ToolReferenceUnresolvedErrorDetails) -> Jsonpub(all) struct ToolSearchToolBM2520251119 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[ToolSearchToolBM2520251119CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : ToolSearchToolBM2520251119Type
} derive(Eq, Debug)impl FromJson for ToolSearchToolBM2520251119fn from_json(value : Json, path : DecodeContext) -> ToolSearchToolBM2520251119 raise JsonDecodeErrorimpl ToJson for ToolSearchToolBM2520251119fn ToolSearchToolBM2520251119::equal(ToolSearchToolBM2520251119, ToolSearchToolBM2520251119) -> Boolfn ToolSearchToolBM2520251119::from_json(value : Json, path : DecodeContext) -> ToolSearchToolBM2520251119 raise JsonDecodeErrorfn ToolSearchToolBM2520251119::new(type_~ : ToolSearchToolBM2520251119Type, allowed_callers? : Array[AllowedCaller], cache_control? : ToolSearchToolBM2520251119CacheControl, defer_loading? : Bool, strict? : Bool) -> ToolSearchToolBM2520251119fn ToolSearchToolBM2520251119::not_equal(x : ToolSearchToolBM2520251119, y : ToolSearchToolBM2520251119) -> Boolpub(all) enum ToolSearchToolBM2520251119CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ToolSearchToolBM2520251119CacheControl raise JsonDecodeErrorfn ToolSearchToolBM2520251119CacheControl::from_json(value : Json, path : DecodeContext) -> ToolSearchToolBM2520251119CacheControl raise JsonDecodeErrorfn ToolSearchToolBM2520251119CacheControl::not_equal(x : ToolSearchToolBM2520251119CacheControl, y : ToolSearchToolBM2520251119CacheControl) -> Boolfn ToolSearchToolBM2520251119CacheControl::to_json(self : ToolSearchToolBM2520251119CacheControl) -> Jsonimpl FromJson for ToolSearchToolBM2520251119Typefn from_json(value : Json, path : DecodeContext) -> ToolSearchToolBM2520251119Type raise JsonDecodeErrorimpl ToJson for ToolSearchToolBM2520251119Typefn ToolSearchToolBM2520251119Type::from_json(value : Json, path : DecodeContext) -> ToolSearchToolBM2520251119Type raise JsonDecodeErrorfn ToolSearchToolBM2520251119Type::not_equal(x : ToolSearchToolBM2520251119Type, y : ToolSearchToolBM2520251119Type) -> Boolpub(all) struct ToolSearchToolRegex20251119 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[ToolSearchToolRegex20251119CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : ToolSearchToolRegex20251119Type
} derive(Eq, Debug)impl FromJson for ToolSearchToolRegex20251119fn from_json(value : Json, path : DecodeContext) -> ToolSearchToolRegex20251119 raise JsonDecodeErrorimpl ToJson for ToolSearchToolRegex20251119fn ToolSearchToolRegex20251119::equal(ToolSearchToolRegex20251119, ToolSearchToolRegex20251119) -> Boolfn ToolSearchToolRegex20251119::from_json(value : Json, path : DecodeContext) -> ToolSearchToolRegex20251119 raise JsonDecodeErrorfn ToolSearchToolRegex20251119::new(type_~ : ToolSearchToolRegex20251119Type, allowed_callers? : Array[AllowedCaller], cache_control? : ToolSearchToolRegex20251119CacheControl, defer_loading? : Bool, strict? : Bool) -> ToolSearchToolRegex20251119fn ToolSearchToolRegex20251119::not_equal(x : ToolSearchToolRegex20251119, y : ToolSearchToolRegex20251119) -> Boolpub(all) enum ToolSearchToolRegex20251119CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> ToolSearchToolRegex20251119CacheControl raise JsonDecodeErrorfn ToolSearchToolRegex20251119CacheControl::from_json(value : Json, path : DecodeContext) -> ToolSearchToolRegex20251119CacheControl raise JsonDecodeErrorfn ToolSearchToolRegex20251119CacheControl::not_equal(x : ToolSearchToolRegex20251119CacheControl, y : ToolSearchToolRegex20251119CacheControl) -> Boolfn ToolSearchToolRegex20251119CacheControl::to_json(self : ToolSearchToolRegex20251119CacheControl) -> Jsonimpl FromJson for ToolSearchToolRegex20251119Typefn from_json(value : Json, path : DecodeContext) -> ToolSearchToolRegex20251119Type raise JsonDecodeErrorimpl ToJson for ToolSearchToolRegex20251119Typefn ToolSearchToolRegex20251119Type::from_json(value : Json, path : DecodeContext) -> ToolSearchToolRegex20251119Type raise JsonDecodeErrorfn ToolSearchToolRegex20251119Type::not_equal(x : ToolSearchToolRegex20251119Type, y : ToolSearchToolRegex20251119Type) -> Boolimpl FromJson for ToolSearchToolResultErrorCodefn from_json(value : Json, path : DecodeContext) -> ToolSearchToolResultErrorCode raise JsonDecodeErrorimpl ToJson for ToolSearchToolResultErrorCodefn ToolSearchToolResultErrorCode::equal(ToolSearchToolResultErrorCode, ToolSearchToolResultErrorCode) -> Boolfn ToolSearchToolResultErrorCode::from_json(value : Json, path : DecodeContext) -> ToolSearchToolResultErrorCode raise JsonDecodeErrorfn ToolSearchToolResultErrorCode::not_equal(x : ToolSearchToolResultErrorCode, y : ToolSearchToolResultErrorCode) -> Boolimpl FromJson for URLImageSourceimpl ToJson for URLImageSourcefn URLImageSource::from_json(value : Json, path : DecodeContext) -> URLImageSource raise JsonDecodeErrorimpl FromJson for URLPDFSourceimpl ToJson for URLPDFSourcefn URLPDFSource::from_json(value : Json, path : DecodeContext) -> URLPDFSource raise JsonDecodeErrorpub(all) struct Usage {
cache_creation : Presence[CacheCreation]
cache_creation_input_tokens : Presence[Int]
cache_read_input_tokens : Presence[Int]
inference_geo : Presence[String]
input_tokens : Int
output_tokens : Int
output_tokens_details : Presence[OutputTokensDetails]
server_tool_use : Presence[ServerToolUsage]
service_tier : Presence[UsageServiceTier]
speed : Presence[Speed]
} derive(Eq, Debug)fn Usage::new(input_tokens~ : Int, output_tokens~ : Int, cache_creation? : CacheCreation, cache_creation_input_tokens? : Int, cache_read_input_tokens? : Int, inference_geo? : String, output_tokens_details? : OutputTokensDetails, server_tool_use? : ServerToolUsage, service_tier? : UsageServiceTier, speed? : Speed) -> Usageimpl FromJson for UsageServiceTierimpl ToJson for UsageServiceTierfn UsageServiceTier::from_json(value : Json, path : DecodeContext) -> UsageServiceTier raise JsonDecodeErrorimpl FromJson for UserInputMessageimpl ToJson for UserInputMessagefn UserInputMessage::from_json(value : Json, path : DecodeContext) -> UserInputMessage raise JsonDecodeErrorimpl FromJson for UserLocationimpl ToJson for UserLocationfn UserLocation::from_json(value : Json, path : DecodeContext) -> UserLocation raise JsonDecodeErrorfn UserLocation::new(city? : String, country? : String, region? : String, timezone? : String) -> UserLocationfn from_json(value : Json, path : DecodeContext) -> UserProfileBillingNotAuthorizedErrorDetails raise JsonDecodeErrorfn UserProfileBillingNotAuthorizedErrorDetails::from_json(value : Json, path : DecodeContext) -> UserProfileBillingNotAuthorizedErrorDetails raise JsonDecodeErrorfn UserProfileBillingNotAuthorizedErrorDetails::not_equal(x : UserProfileBillingNotAuthorizedErrorDetails, y : UserProfileBillingNotAuthorizedErrorDetails) -> Boolfn UserProfileBillingNotAuthorizedErrorDetails::to_json(_self : UserProfileBillingNotAuthorizedErrorDetails) -> Jsonfn from_json(value : Json, path : DecodeContext) -> UserProfileNotBillableErrorDetails raise JsonDecodeErrorimpl ToJson for UserProfileNotBillableErrorDetailsfn UserProfileNotBillableErrorDetails::from_json(value : Json, path : DecodeContext) -> UserProfileNotBillableErrorDetails raise JsonDecodeErrorfn UserProfileNotBillableErrorDetails::not_equal(x : UserProfileNotBillableErrorDetails, y : UserProfileNotBillableErrorDetails) -> Boolimpl FromJson for UserProfileRequiredErrorDetailsfn from_json(value : Json, path : DecodeContext) -> UserProfileRequiredErrorDetails raise JsonDecodeErrorimpl ToJson for UserProfileRequiredErrorDetailsfn UserProfileRequiredErrorDetails::from_json(value : Json, path : DecodeContext) -> UserProfileRequiredErrorDetails raise JsonDecodeErrorfn UserProfileRequiredErrorDetails::not_equal(x : UserProfileRequiredErrorDetails, y : UserProfileRequiredErrorDetails) -> Boolpub(all) struct WebFetchTool20250910 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebFetchTool20250910CacheControl]
citations : Presence[RequestCitationsConfig]
defer_loading : Bool?
max_content_tokens : Presence[Int]
max_uses : Presence[Int]
strict : Bool?
type_ : String
url_sources : Presence[WebFetchUrlSources]
} derive(Eq, Debug)impl FromJson for WebFetchTool20250910impl ToJson for WebFetchTool20250910fn WebFetchTool20250910::from_json(value : Json, path : DecodeContext) -> WebFetchTool20250910 raise JsonDecodeErrorfn WebFetchTool20250910::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebFetchTool20250910CacheControl, citations? : RequestCitationsConfig, defer_loading? : Bool, max_content_tokens? : Int, max_uses? : Int, strict? : Bool, url_sources? : WebFetchUrlSources) -> WebFetchTool20250910pub(all) enum WebFetchTool20250910CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for WebFetchTool20250910CacheControlfn from_json(value : Json, path : DecodeContext) -> WebFetchTool20250910CacheControl raise JsonDecodeErrorimpl ToJson for WebFetchTool20250910CacheControlfn WebFetchTool20250910CacheControl::from_json(value : Json, path : DecodeContext) -> WebFetchTool20250910CacheControl raise JsonDecodeErrorfn WebFetchTool20250910CacheControl::not_equal(x : WebFetchTool20250910CacheControl, y : WebFetchTool20250910CacheControl) -> Boolpub(all) struct WebFetchTool20260209 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebFetchTool20260209CacheControl]
citations : Presence[RequestCitationsConfig]
defer_loading : Bool?
max_content_tokens : Presence[Int]
max_uses : Presence[Int]
strict : Bool?
type_ : String
url_sources : Presence[WebFetchUrlSources]
} derive(Eq, Debug)impl FromJson for WebFetchTool20260209impl ToJson for WebFetchTool20260209fn WebFetchTool20260209::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260209 raise JsonDecodeErrorfn WebFetchTool20260209::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebFetchTool20260209CacheControl, citations? : RequestCitationsConfig, defer_loading? : Bool, max_content_tokens? : Int, max_uses? : Int, strict? : Bool, url_sources? : WebFetchUrlSources) -> WebFetchTool20260209pub(all) enum WebFetchTool20260209CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for WebFetchTool20260209CacheControlfn from_json(value : Json, path : DecodeContext) -> WebFetchTool20260209CacheControl raise JsonDecodeErrorimpl ToJson for WebFetchTool20260209CacheControlfn WebFetchTool20260209CacheControl::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260209CacheControl raise JsonDecodeErrorfn WebFetchTool20260209CacheControl::not_equal(x : WebFetchTool20260209CacheControl, y : WebFetchTool20260209CacheControl) -> Boolpub(all) struct WebFetchTool20260309 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebFetchTool20260309CacheControl]
citations : Presence[RequestCitationsConfig]
defer_loading : Bool?
max_content_tokens : Presence[Int]
max_uses : Presence[Int]
strict : Bool?
type_ : String
url_sources : Presence[WebFetchUrlSources]
use_cache : Bool?
} derive(Eq, Debug)impl FromJson for WebFetchTool20260309impl ToJson for WebFetchTool20260309fn WebFetchTool20260309::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260309 raise JsonDecodeErrorfn WebFetchTool20260309::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebFetchTool20260309CacheControl, citations? : RequestCitationsConfig, defer_loading? : Bool, max_content_tokens? : Int, max_uses? : Int, strict? : Bool, url_sources? : WebFetchUrlSources, use_cache? : Bool) -> WebFetchTool20260309pub(all) enum WebFetchTool20260309CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for WebFetchTool20260309CacheControlfn from_json(value : Json, path : DecodeContext) -> WebFetchTool20260309CacheControl raise JsonDecodeErrorimpl ToJson for WebFetchTool20260309CacheControlfn WebFetchTool20260309CacheControl::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260309CacheControl raise JsonDecodeErrorfn WebFetchTool20260309CacheControl::not_equal(x : WebFetchTool20260309CacheControl, y : WebFetchTool20260309CacheControl) -> Boolpub(all) struct WebFetchTool20260318 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebFetchTool20260318CacheControl]
citations : Presence[RequestCitationsConfig]
defer_loading : Bool?
max_content_tokens : Presence[Int]
max_uses : Presence[Int]
response_inclusion : WebFetchTool20260318ResponseInclusion?
strict : Bool?
type_ : String
url_sources : Presence[WebFetchUrlSources]
use_cache : Bool?
} derive(Eq, Debug)impl FromJson for WebFetchTool20260318impl ToJson for WebFetchTool20260318fn WebFetchTool20260318::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260318 raise JsonDecodeErrorfn WebFetchTool20260318::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebFetchTool20260318CacheControl, citations? : RequestCitationsConfig, defer_loading? : Bool, max_content_tokens? : Int, max_uses? : Int, response_inclusion? : WebFetchTool20260318ResponseInclusion, strict? : Bool, url_sources? : WebFetchUrlSources, use_cache? : Bool) -> WebFetchTool20260318pub(all) enum WebFetchTool20260318CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for WebFetchTool20260318CacheControlfn from_json(value : Json, path : DecodeContext) -> WebFetchTool20260318CacheControl raise JsonDecodeErrorimpl ToJson for WebFetchTool20260318CacheControlfn WebFetchTool20260318CacheControl::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260318CacheControl raise JsonDecodeErrorfn WebFetchTool20260318CacheControl::not_equal(x : WebFetchTool20260318CacheControl, y : WebFetchTool20260318CacheControl) -> Boolfn from_json(value : Json, path : DecodeContext) -> WebFetchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebFetchTool20260318ResponseInclusion::from_json(value : Json, path : DecodeContext) -> WebFetchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebFetchTool20260318ResponseInclusion::not_equal(x : WebFetchTool20260318ResponseInclusion, y : WebFetchTool20260318ResponseInclusion) -> Boolfn WebFetchTool20260318ResponseInclusion::to_json(self : WebFetchTool20260318ResponseInclusion) -> Jsonimpl FromJson for WebFetchToolResultErrorCodefn from_json(value : Json, path : DecodeContext) -> WebFetchToolResultErrorCode raise JsonDecodeErrorimpl ToJson for WebFetchToolResultErrorCodefn WebFetchToolResultErrorCode::equal(WebFetchToolResultErrorCode, WebFetchToolResultErrorCode) -> Boolfn WebFetchToolResultErrorCode::from_json(value : Json, path : DecodeContext) -> WebFetchToolResultErrorCode raise JsonDecodeErrorfn WebFetchToolResultErrorCode::not_equal(x : WebFetchToolResultErrorCode, y : WebFetchToolResultErrorCode) -> Boolimpl FromJson for WebFetchUrlSourceAllimpl ToJson for WebFetchUrlSourceAllfn WebFetchUrlSourceAll::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourceAll raise JsonDecodeErrorpub(all) struct WebFetchUrlSourceExcept {
tools : Array[WebFetchUrlSourceToolReference]
type_ : String
} derive(Eq, Debug)impl FromJson for WebFetchUrlSourceExceptimpl ToJson for WebFetchUrlSourceExceptfn WebFetchUrlSourceExcept::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourceExcept raise JsonDecodeErrorfn WebFetchUrlSourceExcept::new(tools~ : Array[WebFetchUrlSourceToolReference], type_~ : String) -> WebFetchUrlSourceExceptfn WebFetchUrlSourceExcept::not_equal(x : WebFetchUrlSourceExcept, y : WebFetchUrlSourceExcept) -> Boolimpl FromJson for WebFetchUrlSourceNoneimpl ToJson for WebFetchUrlSourceNonefn WebFetchUrlSourceNone::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourceNone raise JsonDecodeErrorpub(all) struct WebFetchUrlSourceOnly {
tools : Array[WebFetchUrlSourceToolReference]
type_ : String
} derive(Eq, Debug)impl FromJson for WebFetchUrlSourceOnlyimpl ToJson for WebFetchUrlSourceOnlyfn WebFetchUrlSourceOnly::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourceOnly raise JsonDecodeErrorfn WebFetchUrlSourceOnly::new(tools~ : Array[WebFetchUrlSourceToolReference], type_~ : String) -> WebFetchUrlSourceOnlyimpl FromJson for WebFetchUrlSourceToolReferencefn from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourceToolReference raise JsonDecodeErrorimpl ToJson for WebFetchUrlSourceToolReferencefn WebFetchUrlSourceToolReference::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourceToolReference raise JsonDecodeErrorfn WebFetchUrlSourceToolReference::not_equal(x : WebFetchUrlSourceToolReference, y : WebFetchUrlSourceToolReference) -> Boolpub(all) struct WebFetchUrlSources {
client_tool_results : WebFetchUrlSourcesClientToolResults?
server_tool_results : WebFetchUrlSourcesServerToolResults?
user_input : WebFetchUrlSourcesUserInput?
} derive(Eq, Debug)impl FromJson for WebFetchUrlSourcesimpl ToJson for WebFetchUrlSourcesfn WebFetchUrlSources::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSources raise JsonDecodeErrorfn WebFetchUrlSources::new(client_tool_results? : WebFetchUrlSourcesClientToolResults, server_tool_results? : WebFetchUrlSourcesServerToolResults, user_input? : WebFetchUrlSourcesUserInput) -> WebFetchUrlSourcespub(all) enum WebFetchUrlSourcesClientToolResults {
All(WebFetchUrlSourceAll)
Except(WebFetchUrlSourceExcept)
None(WebFetchUrlSourceNone)
Only(WebFetchUrlSourceOnly)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourcesClientToolResults raise JsonDecodeErrorfn WebFetchUrlSourcesClientToolResults::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourcesClientToolResults raise JsonDecodeErrorfn WebFetchUrlSourcesClientToolResults::not_equal(x : WebFetchUrlSourcesClientToolResults, y : WebFetchUrlSourcesClientToolResults) -> Boolpub(all) enum WebFetchUrlSourcesServerToolResults {
All(WebFetchUrlSourceAll)
Except(WebFetchUrlSourceExcept)
None(WebFetchUrlSourceNone)
Only(WebFetchUrlSourceOnly)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourcesServerToolResults raise JsonDecodeErrorfn WebFetchUrlSourcesServerToolResults::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourcesServerToolResults raise JsonDecodeErrorfn WebFetchUrlSourcesServerToolResults::not_equal(x : WebFetchUrlSourcesServerToolResults, y : WebFetchUrlSourcesServerToolResults) -> Boolpub(all) enum WebFetchUrlSourcesUserInput {
All(WebFetchUrlSourceAll)
None(WebFetchUrlSourceNone)
Unknown(String, Json)
} derive(Eq, Debug)impl FromJson for WebFetchUrlSourcesUserInputfn from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourcesUserInput raise JsonDecodeErrorimpl ToJson for WebFetchUrlSourcesUserInputfn WebFetchUrlSourcesUserInput::equal(WebFetchUrlSourcesUserInput, WebFetchUrlSourcesUserInput) -> Boolfn WebFetchUrlSourcesUserInput::from_json(value : Json, path : DecodeContext) -> WebFetchUrlSourcesUserInput raise JsonDecodeErrorfn WebFetchUrlSourcesUserInput::not_equal(x : WebFetchUrlSourcesUserInput, y : WebFetchUrlSourcesUserInput) -> Boolpub(all) struct WebSearchTool20250305 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebSearchTool20250305CacheControl]
defer_loading : Bool?
max_uses : Presence[Int]
strict : Bool?
type_ : String
user_location : Presence[UserLocation]
} derive(Eq, Debug)impl FromJson for WebSearchTool20250305impl ToJson for WebSearchTool20250305fn WebSearchTool20250305::from_json(value : Json, path : DecodeContext) -> WebSearchTool20250305 raise JsonDecodeErrorfn WebSearchTool20250305::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebSearchTool20250305CacheControl, defer_loading? : Bool, max_uses? : Int, strict? : Bool, user_location? : UserLocation) -> WebSearchTool20250305pub(all) enum WebSearchTool20250305CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> WebSearchTool20250305CacheControl raise JsonDecodeErrorimpl ToJson for WebSearchTool20250305CacheControlfn WebSearchTool20250305CacheControl::from_json(value : Json, path : DecodeContext) -> WebSearchTool20250305CacheControl raise JsonDecodeErrorfn WebSearchTool20250305CacheControl::not_equal(x : WebSearchTool20250305CacheControl, y : WebSearchTool20250305CacheControl) -> Boolpub(all) struct WebSearchTool20260209 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebSearchTool20260209CacheControl]
defer_loading : Bool?
max_uses : Presence[Int]
strict : Bool?
type_ : String
user_location : Presence[UserLocation]
} derive(Eq, Debug)impl FromJson for WebSearchTool20260209impl ToJson for WebSearchTool20260209fn WebSearchTool20260209::from_json(value : Json, path : DecodeContext) -> WebSearchTool20260209 raise JsonDecodeErrorfn WebSearchTool20260209::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebSearchTool20260209CacheControl, defer_loading? : Bool, max_uses? : Int, strict? : Bool, user_location? : UserLocation) -> WebSearchTool20260209pub(all) enum WebSearchTool20260209CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> WebSearchTool20260209CacheControl raise JsonDecodeErrorimpl ToJson for WebSearchTool20260209CacheControlfn WebSearchTool20260209CacheControl::from_json(value : Json, path : DecodeContext) -> WebSearchTool20260209CacheControl raise JsonDecodeErrorfn WebSearchTool20260209CacheControl::not_equal(x : WebSearchTool20260209CacheControl, y : WebSearchTool20260209CacheControl) -> Boolpub(all) struct WebSearchTool20260318 {
allowed_callers : Array[AllowedCaller]?
allowed_domains : Presence[Array[String]]
blocked_domains : Presence[Array[String]]
cache_control : Presence[WebSearchTool20260318CacheControl]
defer_loading : Bool?
max_uses : Presence[Int]
response_inclusion : WebSearchTool20260318ResponseInclusion?
strict : Bool?
type_ : String
user_location : Presence[UserLocation]
} derive(Eq, Debug)impl FromJson for WebSearchTool20260318impl ToJson for WebSearchTool20260318fn WebSearchTool20260318::from_json(value : Json, path : DecodeContext) -> WebSearchTool20260318 raise JsonDecodeErrorfn WebSearchTool20260318::new(type_~ : String, allowed_callers? : Array[AllowedCaller], allowed_domains? : Array[String], blocked_domains? : Array[String], cache_control? : WebSearchTool20260318CacheControl, defer_loading? : Bool, max_uses? : Int, response_inclusion? : WebSearchTool20260318ResponseInclusion, strict? : Bool, user_location? : UserLocation) -> WebSearchTool20260318pub(all) enum WebSearchTool20260318CacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : DecodeContext) -> WebSearchTool20260318CacheControl raise JsonDecodeErrorimpl ToJson for WebSearchTool20260318CacheControlfn WebSearchTool20260318CacheControl::from_json(value : Json, path : DecodeContext) -> WebSearchTool20260318CacheControl raise JsonDecodeErrorfn WebSearchTool20260318CacheControl::not_equal(x : WebSearchTool20260318CacheControl, y : WebSearchTool20260318CacheControl) -> Boolfn from_json(value : Json, path : DecodeContext) -> WebSearchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebSearchTool20260318ResponseInclusion::from_json(value : Json, path : DecodeContext) -> WebSearchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebSearchTool20260318ResponseInclusion::not_equal(x : WebSearchTool20260318ResponseInclusion, y : WebSearchTool20260318ResponseInclusion) -> Boolfn WebSearchTool20260318ResponseInclusion::to_json(self : WebSearchTool20260318ResponseInclusion) -> Jsonimpl FromJson for WebSearchToolResultErrorCodefn from_json(value : Json, path : DecodeContext) -> WebSearchToolResultErrorCode raise JsonDecodeErrorimpl ToJson for WebSearchToolResultErrorCodefn WebSearchToolResultErrorCode::equal(WebSearchToolResultErrorCode, WebSearchToolResultErrorCode) -> Boolfn WebSearchToolResultErrorCode::from_json(value : Json, path : DecodeContext) -> WebSearchToolResultErrorCode raise JsonDecodeErrorfn WebSearchToolResultErrorCode::not_equal(x : WebSearchToolResultErrorCode, y : WebSearchToolResultErrorCode) -> Boolfn messages_count_tokens_post_decode(head : ResponseHead, body : Bytes) -> Result[CountMessageTokensResponse, ResponseFailure]fn messages_count_tokens_post_decode_json(value : Json) -> CountMessageTokensResponse raise JsonDecodeErrorfn messages_count_tokens_post_request(body : CountMessageTokensParams, anthropic_version? : String, anthropic_user_profile_id? : String, anthropic_workspace_id? : String) -> Requestfn messages_post_request(body : CreateMessageParams, anthropic_version? : String, anthropic_user_profile_id? : String, anthropic_workspace_id? : String) -> Requestfn models_get_request(model_id : String, anthropic_version? : String, anthropic_workspace_id? : String) -> Requestfn models_list_decode(head : ResponseHead, body : Bytes) -> Result[ListResponseModelInfo, ResponseFailure]fn models_list_request(before_id? : String, after_id? : String, limit? : Int, lifecycle? : Array[ModelsListLifecycleItem], anthropic_version? : String, anthropic_workspace_id? : String) -> RequestInstall
Download zipThin Anthropic Messages API client for MoonBit built on gaato/mttp_core.