gaato/anthropic/gen does not have a README file
impl ToJson for AllowedCallerimpl FromJson for AllowedCallerimpl ToJson for AuthenticationErrorimpl FromJson for AuthenticationErrorfn AuthenticationError::from_json(value : Json, path : JsonPath) -> AuthenticationError raise JsonDecodeErrorpub(all) struct Base64ImageSource {
data : String
media_type : Base64ImageSourceMediaType
type_ : String
} derive(Eq, Debug)impl ToJson for Base64ImageSourceimpl FromJson for Base64ImageSourcefn Base64ImageSource::from_json(value : Json, path : JsonPath) -> Base64ImageSource raise JsonDecodeErrorfn Base64ImageSource::new(data~ : String, media_type~ : Base64ImageSourceMediaType, type_~ : String) -> Base64ImageSourceimpl ToJson for Base64ImageSourceMediaTypeimpl FromJson for Base64ImageSourceMediaTypefn Base64ImageSourceMediaType::equal(Base64ImageSourceMediaType, Base64ImageSourceMediaType) -> Boolfn Base64ImageSourceMediaType::from_json(value : Json, path : JsonPath) -> Base64ImageSourceMediaType raise JsonDecodeErrorfn Base64ImageSourceMediaType::not_equal(x : Base64ImageSourceMediaType, y : Base64ImageSourceMediaType) -> Boolimpl ToJson for Base64PDFSourceimpl FromJson for Base64PDFSourcefn Base64PDFSource::from_json(value : Json, path : JsonPath) -> Base64PDFSource raise JsonDecodeErrorfn from_json(value : Json, path : JsonPath) -> BashCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn BashCodeExecutionToolResultErrorCode::from_json(value : Json, path : JsonPath) -> 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 ToJson for BashTool20250124impl FromJson for BashTool20250124fn BashTool20250124::from_json(value : Json, path : JsonPath) -> 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 ToJson for BashTool20250124CacheControlimpl FromJson for BashTool20250124CacheControlfn BashTool20250124CacheControl::equal(BashTool20250124CacheControl, BashTool20250124CacheControl) -> Boolfn BashTool20250124CacheControl::from_json(value : Json, path : JsonPath) -> BashTool20250124CacheControl raise JsonDecodeErrorfn BashTool20250124CacheControl::not_equal(x : BashTool20250124CacheControl, y : BashTool20250124CacheControl) -> Boolimpl ToJson for BillingErrorimpl FromJson for BillingErrorimpl ToJson for BrowserCloseTabConfigimpl FromJson for BrowserCloseTabConfigfn BrowserCloseTabConfig::from_json(value : Json, path : JsonPath) -> BrowserCloseTabConfig raise JsonDecodeErrorimpl ToJson for BrowserDoubleClickConfigimpl FromJson for BrowserDoubleClickConfigfn BrowserDoubleClickConfig::from_json(value : Json, path : JsonPath) -> BrowserDoubleClickConfig raise JsonDecodeErrorfn BrowserDoubleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserDoubleClickConfigfn BrowserDoubleClickConfig::not_equal(x : BrowserDoubleClickConfig, y : BrowserDoubleClickConfig) -> Boolimpl ToJson for BrowserFileUploadConfigimpl FromJson for BrowserFileUploadConfigfn BrowserFileUploadConfig::from_json(value : Json, path : JsonPath) -> BrowserFileUploadConfig raise JsonDecodeErrorfn BrowserFileUploadConfig::not_equal(x : BrowserFileUploadConfig, y : BrowserFileUploadConfig) -> Boolimpl ToJson for BrowserFindConfigimpl FromJson for BrowserFindConfigfn BrowserFindConfig::from_json(value : Json, path : JsonPath) -> BrowserFindConfig raise JsonDecodeErrorimpl ToJson for BrowserFormInputConfigimpl FromJson for BrowserFormInputConfigfn BrowserFormInputConfig::from_json(value : Json, path : JsonPath) -> BrowserFormInputConfig raise JsonDecodeErrorfn BrowserFormInputConfig::not_equal(x : BrowserFormInputConfig, y : BrowserFormInputConfig) -> Boolimpl ToJson for BrowserGetPageTextConfigimpl FromJson for BrowserGetPageTextConfigfn BrowserGetPageTextConfig::from_json(value : Json, path : JsonPath) -> BrowserGetPageTextConfig raise JsonDecodeErrorfn BrowserGetPageTextConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserGetPageTextConfigfn BrowserGetPageTextConfig::not_equal(x : BrowserGetPageTextConfig, y : BrowserGetPageTextConfig) -> Boolimpl ToJson for BrowserHoldKeyConfigimpl FromJson for BrowserHoldKeyConfigfn BrowserHoldKeyConfig::from_json(value : Json, path : JsonPath) -> BrowserHoldKeyConfig raise JsonDecodeErrorimpl ToJson for BrowserHoverConfigimpl FromJson for BrowserHoverConfigfn BrowserHoverConfig::from_json(value : Json, path : JsonPath) -> BrowserHoverConfig raise JsonDecodeErrorimpl ToJson for BrowserJavascriptExecConfigimpl FromJson for BrowserJavascriptExecConfigfn BrowserJavascriptExecConfig::equal(BrowserJavascriptExecConfig, BrowserJavascriptExecConfig) -> Boolfn BrowserJavascriptExecConfig::from_json(value : Json, path : JsonPath) -> BrowserJavascriptExecConfig raise JsonDecodeErrorfn BrowserJavascriptExecConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserJavascriptExecConfigfn BrowserJavascriptExecConfig::not_equal(x : BrowserJavascriptExecConfig, y : BrowserJavascriptExecConfig) -> Boolimpl ToJson for BrowserKeyConfigimpl FromJson for BrowserKeyConfigfn BrowserKeyConfig::from_json(value : Json, path : JsonPath) -> BrowserKeyConfig raise JsonDecodeErrorimpl ToJson for BrowserLeftClickConfigimpl FromJson for BrowserLeftClickConfigfn BrowserLeftClickConfig::from_json(value : Json, path : JsonPath) -> BrowserLeftClickConfig raise JsonDecodeErrorfn BrowserLeftClickConfig::not_equal(x : BrowserLeftClickConfig, y : BrowserLeftClickConfig) -> Boolimpl ToJson for BrowserLeftClickDragConfigimpl FromJson for BrowserLeftClickDragConfigfn BrowserLeftClickDragConfig::equal(BrowserLeftClickDragConfig, BrowserLeftClickDragConfig) -> Boolfn BrowserLeftClickDragConfig::from_json(value : Json, path : JsonPath) -> BrowserLeftClickDragConfig raise JsonDecodeErrorfn BrowserLeftClickDragConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserLeftClickDragConfigfn BrowserLeftClickDragConfig::not_equal(x : BrowserLeftClickDragConfig, y : BrowserLeftClickDragConfig) -> Boolimpl ToJson for BrowserLeftMouseDownConfigimpl FromJson for BrowserLeftMouseDownConfigfn BrowserLeftMouseDownConfig::equal(BrowserLeftMouseDownConfig, BrowserLeftMouseDownConfig) -> Boolfn BrowserLeftMouseDownConfig::from_json(value : Json, path : JsonPath) -> BrowserLeftMouseDownConfig raise JsonDecodeErrorfn BrowserLeftMouseDownConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserLeftMouseDownConfigfn BrowserLeftMouseDownConfig::not_equal(x : BrowserLeftMouseDownConfig, y : BrowserLeftMouseDownConfig) -> Boolimpl ToJson for BrowserLeftMouseUpConfigimpl FromJson for BrowserLeftMouseUpConfigfn BrowserLeftMouseUpConfig::from_json(value : Json, path : JsonPath) -> BrowserLeftMouseUpConfig raise JsonDecodeErrorfn BrowserLeftMouseUpConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserLeftMouseUpConfigfn BrowserLeftMouseUpConfig::not_equal(x : BrowserLeftMouseUpConfig, y : BrowserLeftMouseUpConfig) -> Boolimpl ToJson for BrowserListTabsConfigimpl FromJson for BrowserListTabsConfigfn BrowserListTabsConfig::from_json(value : Json, path : JsonPath) -> BrowserListTabsConfig raise JsonDecodeErrorimpl ToJson for BrowserMiddleClickConfigimpl FromJson for BrowserMiddleClickConfigfn BrowserMiddleClickConfig::from_json(value : Json, path : JsonPath) -> BrowserMiddleClickConfig raise JsonDecodeErrorfn BrowserMiddleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserMiddleClickConfigfn BrowserMiddleClickConfig::not_equal(x : BrowserMiddleClickConfig, y : BrowserMiddleClickConfig) -> Boolimpl ToJson for BrowserMouseMoveConfigimpl FromJson for BrowserMouseMoveConfigfn BrowserMouseMoveConfig::from_json(value : Json, path : JsonPath) -> BrowserMouseMoveConfig raise JsonDecodeErrorfn BrowserMouseMoveConfig::not_equal(x : BrowserMouseMoveConfig, y : BrowserMouseMoveConfig) -> Boolfn BrowserNavigateConfig::from_json(value : Json, path : JsonPath) -> BrowserNavigateConfig raise JsonDecodeErrorimpl ToJson for BrowserNewTabConfigimpl FromJson for BrowserNewTabConfigfn BrowserNewTabConfig::from_json(value : Json, path : JsonPath) -> BrowserNewTabConfig raise JsonDecodeErrorimpl ToJson for BrowserReadConsoleConfigimpl FromJson for BrowserReadConsoleConfigfn BrowserReadConsoleConfig::from_json(value : Json, path : JsonPath) -> BrowserReadConsoleConfig raise JsonDecodeErrorfn BrowserReadConsoleConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserReadConsoleConfigfn BrowserReadConsoleConfig::not_equal(x : BrowserReadConsoleConfig, y : BrowserReadConsoleConfig) -> Boolimpl ToJson for BrowserReadNetworkConfigimpl FromJson for BrowserReadNetworkConfigfn BrowserReadNetworkConfig::from_json(value : Json, path : JsonPath) -> BrowserReadNetworkConfig raise JsonDecodeErrorfn BrowserReadNetworkConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserReadNetworkConfigfn BrowserReadNetworkConfig::not_equal(x : BrowserReadNetworkConfig, y : BrowserReadNetworkConfig) -> Boolimpl ToJson for BrowserReadPageConfigimpl FromJson for BrowserReadPageConfigfn BrowserReadPageConfig::from_json(value : Json, path : JsonPath) -> BrowserReadPageConfig raise JsonDecodeErrorimpl ToJson for BrowserRightClickConfigimpl FromJson for BrowserRightClickConfigfn BrowserRightClickConfig::from_json(value : Json, path : JsonPath) -> BrowserRightClickConfig raise JsonDecodeErrorfn BrowserRightClickConfig::not_equal(x : BrowserRightClickConfig, y : BrowserRightClickConfig) -> Boolimpl ToJson for BrowserScreenshotConfigimpl FromJson for BrowserScreenshotConfigfn BrowserScreenshotConfig::from_json(value : Json, path : JsonPath) -> BrowserScreenshotConfig raise JsonDecodeErrorfn BrowserScreenshotConfig::not_equal(x : BrowserScreenshotConfig, y : BrowserScreenshotConfig) -> Boolimpl ToJson for BrowserScrollConfigimpl FromJson for BrowserScrollConfigfn BrowserScrollConfig::from_json(value : Json, path : JsonPath) -> BrowserScrollConfig raise JsonDecodeErrorimpl ToJson for BrowserScrollToConfigimpl FromJson for BrowserScrollToConfigfn BrowserScrollToConfig::from_json(value : Json, path : JsonPath) -> BrowserScrollToConfig raise JsonDecodeErrorfn from_json(value : Json, path : JsonPath) -> BrowserStateChangeDownloadCompleted raise JsonDecodeErrorfn BrowserStateChangeDownloadCompleted::from_json(value : Json, path : JsonPath) -> 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 ToJson for BrowserStateChangeDownloadFailedimpl FromJson for BrowserStateChangeDownloadFailedfn from_json(value : Json, path : JsonPath) -> BrowserStateChangeDownloadFailed raise JsonDecodeErrorfn BrowserStateChangeDownloadFailed::from_json(value : Json, path : JsonPath) -> BrowserStateChangeDownloadFailed raise JsonDecodeErrorfn BrowserStateChangeDownloadFailed::new(download_id~ : String, type_~ : String, url~ : String, error? : String) -> BrowserStateChangeDownloadFailedfn BrowserStateChangeDownloadFailed::not_equal(x : BrowserStateChangeDownloadFailed, y : BrowserStateChangeDownloadFailed) -> Boolimpl ToJson for BrowserStateChangeDownloadStartedfn from_json(value : Json, path : JsonPath) -> BrowserStateChangeDownloadStarted raise JsonDecodeErrorfn BrowserStateChangeDownloadStarted::from_json(value : Json, path : JsonPath) -> BrowserStateChangeDownloadStarted raise JsonDecodeErrorfn BrowserStateChangeDownloadStarted::new(download_id~ : String, type_~ : String, url~ : String) -> BrowserStateChangeDownloadStartedfn BrowserStateChangeDownloadStarted::not_equal(x : BrowserStateChangeDownloadStarted, y : BrowserStateChangeDownloadStarted) -> Boolimpl ToJson for BrowserStateChangeTabOpenedimpl FromJson for BrowserStateChangeTabOpenedfn BrowserStateChangeTabOpened::equal(BrowserStateChangeTabOpened, BrowserStateChangeTabOpened) -> Boolfn BrowserStateChangeTabOpened::from_json(value : Json, path : JsonPath) -> BrowserStateChangeTabOpened raise JsonDecodeErrorfn BrowserStateChangeTabOpened::new(tab_id~ : String, type_~ : String) -> BrowserStateChangeTabOpenedfn BrowserStateChangeTabOpened::not_equal(x : BrowserStateChangeTabOpened, y : BrowserStateChangeTabOpened) -> Boolimpl ToJson for BrowserStateTabEntryimpl FromJson for BrowserStateTabEntryfn BrowserStateTabEntry::from_json(value : Json, path : JsonPath) -> BrowserStateTabEntry raise JsonDecodeErrorfn BrowserStateTabEntry::new(tab_id~ : String, title~ : String, url~ : String, active? : Bool) -> BrowserStateTabEntryimpl ToJson for BrowserSwitchTabConfigimpl FromJson for BrowserSwitchTabConfigfn BrowserSwitchTabConfig::from_json(value : Json, path : JsonPath) -> 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 ToJson for BrowserToolset20260801impl FromJson for BrowserToolset20260801fn BrowserToolset20260801::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for BrowserToolset20260801CacheControlfn from_json(value : Json, path : JsonPath) -> BrowserToolset20260801CacheControl raise JsonDecodeErrorfn BrowserToolset20260801CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for BrowserToolsetConfigsimpl FromJson for BrowserToolsetConfigsfn BrowserToolsetConfigs::from_json(value : Json, path : JsonPath) -> 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 ToJson for BrowserTripleClickConfigimpl FromJson for BrowserTripleClickConfigfn BrowserTripleClickConfig::from_json(value : Json, path : JsonPath) -> BrowserTripleClickConfig raise JsonDecodeErrorfn BrowserTripleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> BrowserTripleClickConfigfn BrowserTripleClickConfig::not_equal(x : BrowserTripleClickConfig, y : BrowserTripleClickConfig) -> Boolimpl ToJson for BrowserTypeConfigimpl FromJson for BrowserTypeConfigfn BrowserTypeConfig::from_json(value : Json, path : JsonPath) -> BrowserTypeConfig raise JsonDecodeErrorimpl ToJson for BrowserWaitConfigimpl FromJson for BrowserWaitConfigfn BrowserWaitConfig::from_json(value : Json, path : JsonPath) -> BrowserWaitConfig raise JsonDecodeErrorimpl ToJson for BrowserZoomConfigimpl FromJson for BrowserZoomConfigfn BrowserZoomConfig::from_json(value : Json, path : JsonPath) -> BrowserZoomConfig raise JsonDecodeErrorpub(all) struct CacheControlEphemeral {
ttl : CacheControlEphemeralTtl?
type_ : String
} derive(Eq, Debug)impl ToJson for CacheControlEphemeralimpl FromJson for CacheControlEphemeralfn CacheControlEphemeral::from_json(value : Json, path : JsonPath) -> CacheControlEphemeral raise JsonDecodeErrorfn CacheControlEphemeral::new(type_~ : String, ttl? : CacheControlEphemeralTtl) -> CacheControlEphemeralimpl ToJson for CacheControlEphemeralTtlimpl FromJson for CacheControlEphemeralTtlfn CacheControlEphemeralTtl::from_json(value : Json, path : JsonPath) -> CacheControlEphemeralTtl raise JsonDecodeErrorfn CacheControlEphemeralTtl::not_equal(x : CacheControlEphemeralTtl, y : CacheControlEphemeralTtl) -> Boolimpl ToJson for CacheCreationimpl FromJson for CacheCreationfn CacheCreation::new(ephemeral_1h_input_tokens~ : Int, ephemeral_5m_input_tokens~ : Int) -> CacheCreationimpl ToJson for CacheMissMessagesChangedimpl FromJson for CacheMissMessagesChangedfn CacheMissMessagesChanged::from_json(value : Json, path : JsonPath) -> CacheMissMessagesChanged raise JsonDecodeErrorfn CacheMissMessagesChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissMessagesChangedfn CacheMissMessagesChanged::not_equal(x : CacheMissMessagesChanged, y : CacheMissMessagesChanged) -> Boolimpl ToJson for CacheMissModelChangedimpl FromJson for CacheMissModelChangedfn CacheMissModelChanged::from_json(value : Json, path : JsonPath) -> CacheMissModelChanged raise JsonDecodeErrorfn CacheMissModelChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissModelChangedimpl ToJson for CacheMissPreviousMessageNotFoundimpl FromJson for CacheMissPreviousMessageNotFoundfn from_json(value : Json, path : JsonPath) -> CacheMissPreviousMessageNotFound raise JsonDecodeErrorfn CacheMissPreviousMessageNotFound::from_json(value : Json, path : JsonPath) -> 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 ToJson for CacheMissReasonimpl FromJson for CacheMissReasonfn CacheMissReason::from_json(value : Json, path : JsonPath) -> CacheMissReason raise JsonDecodeErrorimpl ToJson for CacheMissSystemChangedimpl FromJson for CacheMissSystemChangedfn CacheMissSystemChanged::from_json(value : Json, path : JsonPath) -> CacheMissSystemChanged raise JsonDecodeErrorfn CacheMissSystemChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissSystemChangedfn CacheMissSystemChanged::not_equal(x : CacheMissSystemChanged, y : CacheMissSystemChanged) -> Boolimpl ToJson for CacheMissToolsChangedimpl FromJson for CacheMissToolsChangedfn CacheMissToolsChanged::from_json(value : Json, path : JsonPath) -> CacheMissToolsChanged raise JsonDecodeErrorfn CacheMissToolsChanged::new(cache_missed_input_tokens~ : Int, type_~ : String) -> CacheMissToolsChangedfn CacheMissUnavailable::from_json(value : Json, path : JsonPath) -> CacheMissUnavailable raise JsonDecodeErrorimpl ToJson for CapabilitySupportimpl FromJson for CapabilitySupportfn CapabilitySupport::from_json(value : Json, path : JsonPath) -> CapabilitySupport raise JsonDecodeErrorpub(all) struct CitationsDelta {
citation : CitationsDeltaCitation
type_ : String
} derive(Eq, Debug)impl ToJson for CitationsDeltaimpl FromJson for CitationsDeltapub(all) enum CitationsDeltaCitation {
CharLocation(ResponseCharLocationCitation)
ContentBlockLocation(ResponseContentBlockLocationCitation)
PageLocation(ResponsePageLocationCitation)
SearchResultLocation(ResponseSearchResultLocationCitation)
WebSearchResultLocation(ResponseWebSearchResultLocationCitation)
Unknown(String, Json)
} derive(Eq, Debug)impl ToJson for CitationsDeltaCitationimpl FromJson for CitationsDeltaCitationfn CitationsDeltaCitation::from_json(value : Json, path : JsonPath) -> CitationsDeltaCitation raise JsonDecodeErrorfn CitationsDeltaCitation::not_equal(x : CitationsDeltaCitation, y : CitationsDeltaCitation) -> Boolpub(all) struct CodeExecutionTool20250522 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[CodeExecutionTool20250522CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : String
} derive(Eq, Debug)impl ToJson for CodeExecutionTool20250522impl FromJson for CodeExecutionTool20250522fn CodeExecutionTool20250522::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> CodeExecutionTool20250522CacheControl raise JsonDecodeErrorfn CodeExecutionTool20250522CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for CodeExecutionTool20250825impl FromJson for CodeExecutionTool20250825fn CodeExecutionTool20250825::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> CodeExecutionTool20250825CacheControl raise JsonDecodeErrorfn CodeExecutionTool20250825CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for CodeExecutionTool20260120impl FromJson for CodeExecutionTool20260120fn CodeExecutionTool20260120::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> CodeExecutionTool20260120CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260120CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for CodeExecutionTool20260521impl FromJson for CodeExecutionTool20260521fn CodeExecutionTool20260521::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> CodeExecutionTool20260521CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260521CacheControl::from_json(value : Json, path : JsonPath) -> CodeExecutionTool20260521CacheControl raise JsonDecodeErrorfn CodeExecutionTool20260521CacheControl::not_equal(x : CodeExecutionTool20260521CacheControl, y : CodeExecutionTool20260521CacheControl) -> Boolfn CodeExecutionTool20260521CacheControl::to_json(self : CodeExecutionTool20260521CacheControl) -> Jsonimpl ToJson for CodeExecutionToolResultErrorCodeimpl FromJson for CodeExecutionToolResultErrorCodefn from_json(value : Json, path : JsonPath) -> CodeExecutionToolResultErrorCode raise JsonDecodeErrorfn CodeExecutionToolResultErrorCode::from_json(value : Json, path : JsonPath) -> CodeExecutionToolResultErrorCode raise JsonDecodeErrorfn CodeExecutionToolResultErrorCode::not_equal(x : CodeExecutionToolResultErrorCode, y : CodeExecutionToolResultErrorCode) -> Boolimpl ToJson for ComputerCursorPositionConfigimpl FromJson for ComputerCursorPositionConfigfn ComputerCursorPositionConfig::equal(ComputerCursorPositionConfig, ComputerCursorPositionConfig) -> Boolfn ComputerCursorPositionConfig::from_json(value : Json, path : JsonPath) -> ComputerCursorPositionConfig raise JsonDecodeErrorfn ComputerCursorPositionConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerCursorPositionConfigfn ComputerCursorPositionConfig::not_equal(x : ComputerCursorPositionConfig, y : ComputerCursorPositionConfig) -> Boolimpl ToJson for ComputerDoubleClickConfigimpl FromJson for ComputerDoubleClickConfigfn ComputerDoubleClickConfig::from_json(value : Json, path : JsonPath) -> ComputerDoubleClickConfig raise JsonDecodeErrorfn ComputerDoubleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerDoubleClickConfigfn ComputerDoubleClickConfig::not_equal(x : ComputerDoubleClickConfig, y : ComputerDoubleClickConfig) -> Boolimpl ToJson for ComputerHoldKeyConfigimpl FromJson for ComputerHoldKeyConfigfn ComputerHoldKeyConfig::from_json(value : Json, path : JsonPath) -> ComputerHoldKeyConfig raise JsonDecodeErrorimpl ToJson for ComputerKeyConfigimpl FromJson for ComputerKeyConfigfn ComputerKeyConfig::from_json(value : Json, path : JsonPath) -> ComputerKeyConfig raise JsonDecodeErrorimpl ToJson for ComputerLeftClickConfigimpl FromJson for ComputerLeftClickConfigfn ComputerLeftClickConfig::from_json(value : Json, path : JsonPath) -> ComputerLeftClickConfig raise JsonDecodeErrorfn ComputerLeftClickConfig::not_equal(x : ComputerLeftClickConfig, y : ComputerLeftClickConfig) -> Boolimpl ToJson for ComputerLeftClickDragConfigimpl FromJson for ComputerLeftClickDragConfigfn ComputerLeftClickDragConfig::equal(ComputerLeftClickDragConfig, ComputerLeftClickDragConfig) -> Boolfn ComputerLeftClickDragConfig::from_json(value : Json, path : JsonPath) -> ComputerLeftClickDragConfig raise JsonDecodeErrorfn ComputerLeftClickDragConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerLeftClickDragConfigfn ComputerLeftClickDragConfig::not_equal(x : ComputerLeftClickDragConfig, y : ComputerLeftClickDragConfig) -> Boolimpl ToJson for ComputerLeftMouseDownConfigimpl FromJson for ComputerLeftMouseDownConfigfn ComputerLeftMouseDownConfig::equal(ComputerLeftMouseDownConfig, ComputerLeftMouseDownConfig) -> Boolfn ComputerLeftMouseDownConfig::from_json(value : Json, path : JsonPath) -> ComputerLeftMouseDownConfig raise JsonDecodeErrorfn ComputerLeftMouseDownConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerLeftMouseDownConfigfn ComputerLeftMouseDownConfig::not_equal(x : ComputerLeftMouseDownConfig, y : ComputerLeftMouseDownConfig) -> Boolimpl ToJson for ComputerLeftMouseUpConfigimpl FromJson for ComputerLeftMouseUpConfigfn ComputerLeftMouseUpConfig::from_json(value : Json, path : JsonPath) -> ComputerLeftMouseUpConfig raise JsonDecodeErrorfn ComputerLeftMouseUpConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerLeftMouseUpConfigfn ComputerLeftMouseUpConfig::not_equal(x : ComputerLeftMouseUpConfig, y : ComputerLeftMouseUpConfig) -> Boolimpl ToJson for ComputerMiddleClickConfigimpl FromJson for ComputerMiddleClickConfigfn ComputerMiddleClickConfig::from_json(value : Json, path : JsonPath) -> ComputerMiddleClickConfig raise JsonDecodeErrorfn ComputerMiddleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerMiddleClickConfigfn ComputerMiddleClickConfig::not_equal(x : ComputerMiddleClickConfig, y : ComputerMiddleClickConfig) -> Boolimpl ToJson for ComputerMouseMoveConfigimpl FromJson for ComputerMouseMoveConfigfn ComputerMouseMoveConfig::from_json(value : Json, path : JsonPath) -> ComputerMouseMoveConfig raise JsonDecodeErrorfn ComputerMouseMoveConfig::not_equal(x : ComputerMouseMoveConfig, y : ComputerMouseMoveConfig) -> Boolimpl ToJson for ComputerRightClickConfigimpl FromJson for ComputerRightClickConfigfn ComputerRightClickConfig::from_json(value : Json, path : JsonPath) -> ComputerRightClickConfig raise JsonDecodeErrorfn ComputerRightClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerRightClickConfigfn ComputerRightClickConfig::not_equal(x : ComputerRightClickConfig, y : ComputerRightClickConfig) -> Boolimpl ToJson for ComputerScreenshotConfigimpl FromJson for ComputerScreenshotConfigfn ComputerScreenshotConfig::from_json(value : Json, path : JsonPath) -> ComputerScreenshotConfig raise JsonDecodeErrorfn ComputerScreenshotConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerScreenshotConfigfn ComputerScreenshotConfig::not_equal(x : ComputerScreenshotConfig, y : ComputerScreenshotConfig) -> Boolimpl ToJson for ComputerScrollConfigimpl FromJson for ComputerScrollConfigfn ComputerScrollConfig::from_json(value : Json, path : JsonPath) -> ComputerScrollConfig raise JsonDecodeErrorpub(all) struct ComputerToolset20260801 {
cache_control : Presence[ComputerToolset20260801CacheControl]
configs : Presence[ComputerToolsetConfigs]
type_ : String
} derive(Eq, Debug)impl ToJson for ComputerToolset20260801impl FromJson for ComputerToolset20260801fn ComputerToolset20260801::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ComputerToolset20260801CacheControl raise JsonDecodeErrorfn ComputerToolset20260801CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for ComputerToolsetConfigsimpl FromJson for ComputerToolsetConfigsfn ComputerToolsetConfigs::from_json(value : Json, path : JsonPath) -> 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 ToJson for ComputerTripleClickConfigimpl FromJson for ComputerTripleClickConfigfn ComputerTripleClickConfig::from_json(value : Json, path : JsonPath) -> ComputerTripleClickConfig raise JsonDecodeErrorfn ComputerTripleClickConfig::new(defer_loading? : Bool, enabled? : Bool) -> ComputerTripleClickConfigfn ComputerTripleClickConfig::not_equal(x : ComputerTripleClickConfig, y : ComputerTripleClickConfig) -> Boolimpl ToJson for ComputerTypeConfigimpl FromJson for ComputerTypeConfigfn ComputerTypeConfig::from_json(value : Json, path : JsonPath) -> ComputerTypeConfig raise JsonDecodeErrorimpl ToJson for ComputerWaitConfigimpl FromJson for ComputerWaitConfigfn ComputerWaitConfig::from_json(value : Json, path : JsonPath) -> ComputerWaitConfig raise JsonDecodeErrorimpl ToJson for ComputerZoomConfigimpl FromJson for ComputerZoomConfigfn ComputerZoomConfig::from_json(value : Json, path : JsonPath) -> ComputerZoomConfig raise JsonDecodeErrorpub(all) struct Container {
expires_at : String
id : String
skills : Array[ContainerSkill]?
} derive(Eq, Debug)impl ToJson for ContainerParamsimpl FromJson for ContainerParamsfn ContainerParams::from_json(value : Json, path : JsonPath) -> ContainerParams raise JsonDecodeErrorpub(all) struct ContainerSkill {
skill_id : String
type_ : ContainerSkillType
version : String
} derive(Eq, Debug)impl ToJson for ContainerSkillimpl FromJson for ContainerSkillfn ContainerSkill::new(skill_id~ : String, type_~ : ContainerSkillType, version~ : String) -> ContainerSkillimpl ToJson for ContainerSkillTypeimpl FromJson for ContainerSkillTypefn ContainerSkillType::from_json(value : Json, path : JsonPath) -> 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 ToJson for ContentBlockimpl FromJson for ContentBlockpub(all) struct ContentBlockDeltaEvent {
delta : ContentBlockDeltaEventDelta
index : Int
type_ : String
} derive(Eq, Debug)impl ToJson for ContentBlockDeltaEventimpl FromJson for ContentBlockDeltaEventfn ContentBlockDeltaEvent::from_json(value : Json, path : JsonPath) -> 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 ToJson for ContentBlockDeltaEventDeltaimpl FromJson for ContentBlockDeltaEventDeltafn ContentBlockDeltaEventDelta::equal(ContentBlockDeltaEventDelta, ContentBlockDeltaEventDelta) -> Boolfn ContentBlockDeltaEventDelta::from_json(value : Json, path : JsonPath) -> ContentBlockDeltaEventDelta raise JsonDecodeErrorfn ContentBlockDeltaEventDelta::not_equal(x : ContentBlockDeltaEventDelta, y : ContentBlockDeltaEventDelta) -> Boolpub(all) struct ContentBlockSource {
content : ContentBlockSourceContent
type_ : String
} derive(Eq, Debug)impl ToJson for ContentBlockSourceimpl FromJson for ContentBlockSourcefn ContentBlockSource::from_json(value : Json, path : JsonPath) -> ContentBlockSource raise JsonDecodeErrorfn ContentBlockSource::new(content~ : ContentBlockSourceContent, type_~ : String) -> ContentBlockSourcepub(all) enum ContentBlockSourceContent {
Text(String)
ValueArray(Array[ContentBlockSourceContentValueArrayItem])
} derive(Eq, Debug)impl ToJson for ContentBlockSourceContentimpl FromJson for ContentBlockSourceContentfn ContentBlockSourceContent::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ContentBlockSourceContentValueArrayItem raise JsonDecodeErrorfn ContentBlockSourceContentValueArrayItem::from_json(value : Json, path : JsonPath) -> 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 ToJson for ContentBlockStartEventimpl FromJson for ContentBlockStartEventfn ContentBlockStartEvent::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for ContentBlockStartEventContentBlockfn from_json(value : Json, path : JsonPath) -> ContentBlockStartEventContentBlock raise JsonDecodeErrorfn ContentBlockStartEventContentBlock::from_json(value : Json, path : JsonPath) -> ContentBlockStartEventContentBlock raise JsonDecodeErrorfn ContentBlockStartEventContentBlock::not_equal(x : ContentBlockStartEventContentBlock, y : ContentBlockStartEventContentBlock) -> Boolimpl ToJson for ContentBlockStopEventimpl FromJson for ContentBlockStopEventfn ContentBlockStopEvent::from_json(value : Json, path : JsonPath) -> ContentBlockStopEvent raise JsonDecodeErrorpub(all) struct ContextManagementCapability {
clear_thinking_20251015 : CapabilitySupport?
clear_tool_uses_20250919 : CapabilitySupport?
compact_20260112 : CapabilitySupport?
supported : Bool
} derive(Eq, Debug)impl ToJson for ContextManagementCapabilityimpl FromJson for ContextManagementCapabilityfn ContextManagementCapability::equal(ContextManagementCapability, ContextManagementCapability) -> Boolfn ContextManagementCapability::from_json(value : Json, path : JsonPath) -> 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) -> Boolpub(all) struct CountMessageTokensParams {
cache_control : Presence[CountMessageTokensParamsCacheControl]
messages : Array[InputMessage]
model : String
output_config : OutputConfig?
system : CountMessageTokensParamsSystem?
thinking : ThinkingConfigParam?
tool_choice : ToolChoice?
tools : Array[CountMessageTokensParamsToolsItem]?
} derive(Eq, Debug)impl ToJson for CountMessageTokensParamsimpl FromJson for CountMessageTokensParamsfn CountMessageTokensParams::from_json(value : Json, path : JsonPath) -> CountMessageTokensParams raise JsonDecodeErrorfn CountMessageTokensParams::new(messages~ : Array[InputMessage], model~ : String, cache_control? : CountMessageTokensParamsCacheControl, output_config? : OutputConfig, 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 : JsonPath) -> CountMessageTokensParamsCacheControl raise JsonDecodeErrorfn CountMessageTokensParamsCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for CountMessageTokensParamsSystemimpl FromJson for CountMessageTokensParamsSystemfn CountMessageTokensParamsSystem::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for CountMessageTokensParamsToolsItemfn from_json(value : Json, path : JsonPath) -> CountMessageTokensParamsToolsItem raise JsonDecodeErrorfn CountMessageTokensParamsToolsItem::from_json(value : Json, path : JsonPath) -> CountMessageTokensParamsToolsItem raise JsonDecodeErrorfn CountMessageTokensParamsToolsItem::not_equal(x : CountMessageTokensParamsToolsItem, y : CountMessageTokensParamsToolsItem) -> Boolimpl ToJson for CountMessageTokensResponseimpl FromJson for CountMessageTokensResponsefn CountMessageTokensResponse::equal(CountMessageTokensResponse, CountMessageTokensResponse) -> Boolfn CountMessageTokensResponse::from_json(value : Json, path : JsonPath) -> CountMessageTokensResponse raise JsonDecodeErrorfn CountMessageTokensResponse::not_equal(x : CountMessageTokensResponse, y : CountMessageTokensResponse) -> Boolpub(all) struct CreateMessageParams {
model : String
messages : Array[InputMessage]
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?
stop_sequences : Array[String]?
stream : Bool?
system : CreateMessageParamsSystem?
temperature : Double?
thinking : ThinkingConfigParam?
tool_choice : ToolChoice?
tools : Array[CreateMessageParamsToolsItem]?
top_k : Int?
top_p : Double?
} derive(Eq, Debug)impl ToJson for CreateMessageParamsimpl FromJson for CreateMessageParamsfn CreateMessageParams::from_json(value : Json, path : JsonPath) -> CreateMessageParams raise JsonDecodeErrorfn CreateMessageParams::new(model~ : String, messages~ : Array[InputMessage], max_tokens~ : Int, cache_control? : CreateMessageParamsCacheControl, container? : CreateMessageParamsContainer, diagnostics? : DiagnosticsParam, inference_geo? : String, metadata? : Metadata, output_config? : OutputConfig, service_tier? : CreateMessageParamsServiceTier, stop_sequences? : Array[String], stream? : Bool, system? : CreateMessageParamsSystem, temperature? : Double, thinking? : ThinkingConfigParam, tool_choice? : ToolChoice, tools? : Array[CreateMessageParamsToolsItem], top_k? : Int, top_p? : Double) -> CreateMessageParamspub(all) enum CreateMessageParamsCacheControl {
Ephemeral(CacheControlEphemeral)
Unknown(String, Json)
} derive(Eq, Debug)impl ToJson for CreateMessageParamsCacheControlimpl FromJson for CreateMessageParamsCacheControlfn from_json(value : Json, path : JsonPath) -> CreateMessageParamsCacheControl raise JsonDecodeErrorfn CreateMessageParamsCacheControl::from_json(value : Json, path : JsonPath) -> CreateMessageParamsCacheControl raise JsonDecodeErrorfn CreateMessageParamsCacheControl::not_equal(x : CreateMessageParamsCacheControl, y : CreateMessageParamsCacheControl) -> Boolpub(all) enum CreateMessageParamsContainer {
ContainerParams(ContainerParams)
Text(String)
} derive(Eq, Debug)impl ToJson for CreateMessageParamsContainerimpl FromJson for CreateMessageParamsContainerfn CreateMessageParamsContainer::equal(CreateMessageParamsContainer, CreateMessageParamsContainer) -> Boolfn CreateMessageParamsContainer::from_json(value : Json, path : JsonPath) -> CreateMessageParamsContainer raise JsonDecodeErrorfn CreateMessageParamsContainer::not_equal(x : CreateMessageParamsContainer, y : CreateMessageParamsContainer) -> Boolimpl ToJson for CreateMessageParamsServiceTierimpl FromJson for CreateMessageParamsServiceTierfn CreateMessageParamsServiceTier::from_json(value : Json, path : JsonPath) -> CreateMessageParamsServiceTier raise JsonDecodeErrorfn CreateMessageParamsServiceTier::not_equal(x : CreateMessageParamsServiceTier, y : CreateMessageParamsServiceTier) -> Boolpub(all) enum CreateMessageParamsSystem {
Text(String)
RequestTextBlockArray(Array[RequestTextBlock])
} derive(Eq, Debug)impl ToJson for CreateMessageParamsSystemimpl FromJson for CreateMessageParamsSystemfn CreateMessageParamsSystem::from_json(value : Json, path : JsonPath) -> 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 ToJson for CreateMessageParamsToolsItemimpl FromJson for CreateMessageParamsToolsItemfn CreateMessageParamsToolsItem::equal(CreateMessageParamsToolsItem, CreateMessageParamsToolsItem) -> Boolfn CreateMessageParamsToolsItem::from_json(value : Json, path : JsonPath) -> CreateMessageParamsToolsItem raise JsonDecodeErrorfn CreateMessageParamsToolsItem::not_equal(x : CreateMessageParamsToolsItem, y : CreateMessageParamsToolsItem) -> Boolimpl ToJson for Diagnosticsimpl FromJson for Diagnosticsimpl ToJson for DiagnosticsParamimpl FromJson for DiagnosticsParamfn DiagnosticsParam::from_json(value : Json, path : JsonPath) -> DiagnosticsParam raise JsonDecodeErrorimpl ToJson for DirectCallerimpl FromJson for DirectCallerpub(all) struct EffortCapability {
high : CapabilitySupport
low : CapabilitySupport
max : CapabilitySupport
medium : CapabilitySupport
supported : Bool
xhigh : CapabilitySupport?
} derive(Eq, Debug)impl ToJson for EffortCapabilityimpl FromJson for EffortCapabilityfn EffortCapability::from_json(value : Json, path : JsonPath) -> EffortCapability raise JsonDecodeErrorfn EffortCapability::new(high~ : CapabilitySupport, low~ : CapabilitySupport, max~ : CapabilitySupport, medium~ : CapabilitySupport, supported~ : Bool, xhigh? : CapabilitySupport) -> EffortCapabilityimpl ToJson for EffortLevelimpl FromJson for EffortLevelimpl ToJson for ErrorResponseimpl FromJson for ErrorResponsepub(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 ToJson for ErrorResponseErrorimpl FromJson for ErrorResponseErrorfn ErrorResponseError::from_json(value : Json, path : JsonPath) -> ErrorResponseError raise JsonDecodeErrorimpl ToJson for FileDocumentSourceimpl FromJson for FileDocumentSourcefn FileDocumentSource::from_json(value : Json, path : JsonPath) -> FileDocumentSource raise JsonDecodeErrorimpl ToJson for FileImageSourceimpl FromJson for FileImageSourcefn FileImageSource::from_json(value : Json, path : JsonPath) -> FileImageSource raise JsonDecodeErrorimpl ToJson for GatewayTimeoutErrorimpl FromJson for GatewayTimeoutErrorfn GatewayTimeoutError::from_json(value : Json, path : JsonPath) -> GatewayTimeoutError raise JsonDecodeErrorpub(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 ToJson for InputContentBlockimpl FromJson for InputContentBlockfn InputContentBlock::from_json(value : Json, path : JsonPath) -> InputContentBlock raise JsonDecodeErrorimpl ToJson for InputJsonContentBlockDeltaimpl FromJson for InputJsonContentBlockDeltafn InputJsonContentBlockDelta::equal(InputJsonContentBlockDelta, InputJsonContentBlockDelta) -> Boolfn InputJsonContentBlockDelta::from_json(value : Json, path : JsonPath) -> InputJsonContentBlockDelta raise JsonDecodeErrorfn InputJsonContentBlockDelta::new(partial_json~ : String, type_~ : String) -> InputJsonContentBlockDeltafn InputJsonContentBlockDelta::not_equal(x : InputJsonContentBlockDelta, y : InputJsonContentBlockDelta) -> Boolpub(all) struct InputMessage {
content : InputMessageContent
role : InputMessageRole
} derive(Eq, Debug)impl ToJson for InputMessageimpl FromJson for InputMessagepub(all) enum InputMessageContent {
Text(String)
InputContentBlockArray(Array[InputContentBlock])
} derive(Eq, Debug)impl ToJson for InputMessageContentimpl FromJson for InputMessageContentfn InputMessageContent::from_json(value : Json, path : JsonPath) -> InputMessageContent raise JsonDecodeErrorimpl ToJson for InputMessageRoleimpl FromJson for InputMessageRolefn InputMessageRole::from_json(value : Json, path : JsonPath) -> InputMessageRole raise JsonDecodeErrorimpl ToJson for InvalidRequestErrorimpl FromJson for InvalidRequestErrorfn InvalidRequestError::from_json(value : Json, path : JsonPath) -> InvalidRequestError raise JsonDecodeErrorimpl ToJson for JsonOutputFormatimpl FromJson for JsonOutputFormatfn JsonOutputFormat::from_json(value : Json, path : JsonPath) -> JsonOutputFormat raise JsonDecodeErrorimpl ToJson for ListResponseModelInfoimpl FromJson for ListResponseModelInfofn ListResponseModelInfo::from_json(value : Json, path : JsonPath) -> 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 ToJson for MemoryTool20250818impl FromJson for MemoryTool20250818fn MemoryTool20250818::from_json(value : Json, path : JsonPath) -> 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 ToJson for MemoryTool20250818CacheControlimpl FromJson for MemoryTool20250818CacheControlfn MemoryTool20250818CacheControl::from_json(value : Json, path : JsonPath) -> 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[RefusalStopDetails]
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? : RefusalStopDetails, diagnostics? : Diagnostics, container? : Container) -> Messagepub(all) struct MessageDelta {
container : Presence[Container]
stop_details : Presence[RefusalStopDetails]
stop_reason : StopReason?
stop_sequence : Presence[String]
} derive(Eq, Debug)impl ToJson for MessageDeltaimpl FromJson for MessageDeltafn MessageDelta::new(container? : Container, stop_details? : RefusalStopDetails, stop_reason? : StopReason, stop_sequence? : String) -> MessageDeltapub(all) struct MessageDeltaEvent {
delta : MessageDelta
type_ : String
usage : MessageDeltaUsage
} derive(Eq, Debug)impl ToJson for MessageDeltaEventimpl FromJson for MessageDeltaEventfn MessageDeltaEvent::from_json(value : Json, path : JsonPath) -> 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 ToJson for MessageDeltaUsageimpl FromJson for MessageDeltaUsagefn MessageDeltaUsage::from_json(value : Json, path : JsonPath) -> 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 ToJson for MessageStartEventimpl FromJson for MessageStartEventfn MessageStartEvent::from_json(value : Json, path : JsonPath) -> MessageStartEvent raise JsonDecodeErrorimpl ToJson for MessageStopEventimpl FromJson for MessageStopEventfn MessageStopEvent::from_json(value : Json, path : JsonPath) -> 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 ToJson for MessageStreamEventimpl FromJson for MessageStreamEventfn MessageStreamEvent::from_json(value : Json, path : JsonPath) -> MessageStreamEvent raise JsonDecodeErrorpub(all) struct ModelCapabilities {
batch : CapabilitySupport
citations : CapabilitySupport
code_execution : CapabilitySupport
context_management : ContextManagementCapability
effort : EffortCapability
image_input : CapabilitySupport
pdf_input : CapabilitySupport
structured_outputs : CapabilitySupport
thinking : ThinkingCapability
} derive(Eq, Debug)impl ToJson for ModelCapabilitiesimpl FromJson for ModelCapabilitiesfn ModelCapabilities::from_json(value : Json, path : JsonPath) -> ModelCapabilities raise JsonDecodeErrorfn ModelCapabilities::new(batch~ : CapabilitySupport, citations~ : CapabilitySupport, code_execution~ : CapabilitySupport, context_management~ : ContextManagementCapability, effort~ : EffortCapability, image_input~ : CapabilitySupport, pdf_input~ : CapabilitySupport, structured_outputs~ : CapabilitySupport, thinking~ : ThinkingCapability) -> ModelCapabilitiespub(all) struct ModelInfo {
capabilities : ModelCapabilities?
created_at : String
display_name : String
id : String
max_input_tokens : Int?
max_tokens : Int?
} derive(Eq, Debug)fn ModelInfo::new(created_at~ : String, display_name~ : String, id~ : String, capabilities? : ModelCapabilities, max_input_tokens? : Int, max_tokens? : Int) -> ModelInfoimpl ToJson for NotFoundErrorimpl FromJson for NotFoundErrorpub(all) struct OutputConfig {
effort : Presence[EffortLevel]
format : Presence[JsonOutputFormat]
} derive(Eq, Debug)impl ToJson for OutputConfigimpl FromJson for OutputConfigimpl ToJson for OutputTokensDetailsimpl FromJson for OutputTokensDetailsfn OutputTokensDetails::from_json(value : Json, path : JsonPath) -> OutputTokensDetails raise JsonDecodeErrorimpl ToJson for OverloadedErrorimpl FromJson for OverloadedErrorfn OverloadedError::from_json(value : Json, path : JsonPath) -> OverloadedError raise JsonDecodeErrorimpl ToJson for PermissionErrorimpl FromJson for PermissionErrorfn PermissionError::from_json(value : Json, path : JsonPath) -> PermissionError raise JsonDecodeErrorimpl ToJson for PlainTextSourceimpl FromJson for PlainTextSourcefn PlainTextSource::from_json(value : Json, path : JsonPath) -> PlainTextSource raise JsonDecodeErrorimpl ToJson for RateLimitErrorimpl FromJson for RateLimitErrorimpl ToJson for RefusalCategoryimpl FromJson for RefusalCategoryfn RefusalCategory::from_json(value : Json, path : JsonPath) -> RefusalCategory raise JsonDecodeErrorpub(all) struct RefusalStopDetails {
category : RefusalCategory?
explanation : String?
} derive(Eq, Debug)impl ToJson for RefusalStopDetailsimpl FromJson for RefusalStopDetailsfn RefusalStopDetails::from_json(value : Json, path : JsonPath) -> RefusalStopDetails raise JsonDecodeErrorfn RefusalStopDetails::new(category? : RefusalCategory, explanation? : String) -> RefusalStopDetailsfn from_json(value : Json, path : JsonPath) -> RequestBashCodeExecutionOutputBlock raise JsonDecodeErrorfn RequestBashCodeExecutionOutputBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestBashCodeExecutionResultBlock raise JsonDecodeErrorfn RequestBashCodeExecutionResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestBashCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestBashCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> RequestBashCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorpub(all) enum RequestBashCodeExecutionToolResultBlockContent {
BashCodeExecutionToolResultError(RequestBashCodeExecutionToolResultError)
BashCodeExecutionResult(RequestBashCodeExecutionResultBlock)
Unknown(String, Json)
} derive(Eq, Debug)fn from_json(value : Json, path : JsonPath) -> RequestBashCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestBashCodeExecutionToolResultError raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultError::from_json(value : Json, path : JsonPath) -> RequestBashCodeExecutionToolResultError raise JsonDecodeErrorfn RequestBashCodeExecutionToolResultError::new(error_code~ : BashCodeExecutionToolResultErrorCode, type_~ : String) -> RequestBashCodeExecutionToolResultErrorfn RequestBashCodeExecutionToolResultError::not_equal(x : RequestBashCodeExecutionToolResultError, y : RequestBashCodeExecutionToolResultError) -> Boolfn RequestBashCodeExecutionToolResultError::to_json(self : RequestBashCodeExecutionToolResultError) -> Jsonpub(all) struct RequestBrowserStateBlock {
cache_control : Presence[RequestBrowserStateBlockCacheControl]
state_changes : Presence[Array[RequestBrowserStateBlockStateChangesItem]]
tabs : Array[BrowserStateTabEntry]
type_ : String
} derive(Eq, Debug)impl ToJson for RequestBrowserStateBlockimpl FromJson for RequestBrowserStateBlockfn RequestBrowserStateBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestBrowserStateBlockCacheControl raise JsonDecodeErrorfn RequestBrowserStateBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestBrowserStateBlockStateChangesItem raise JsonDecodeErrorfn RequestBrowserStateBlockStateChangesItem::from_json(value : Json, path : JsonPath) -> RequestBrowserStateBlockStateChangesItem raise JsonDecodeErrorfn RequestBrowserStateBlockStateChangesItem::not_equal(x : RequestBrowserStateBlockStateChangesItem, y : RequestBrowserStateBlockStateChangesItem) -> Boolfn RequestBrowserStateBlockStateChangesItem::to_json(self : RequestBrowserStateBlockStateChangesItem) -> Jsonimpl ToJson for RequestCharLocationCitationimpl FromJson for RequestCharLocationCitationfn RequestCharLocationCitation::equal(RequestCharLocationCitation, RequestCharLocationCitation) -> Boolfn RequestCharLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestCitationsConfigimpl FromJson for RequestCitationsConfigfn RequestCitationsConfig::from_json(value : Json, path : JsonPath) -> RequestCitationsConfig raise JsonDecodeErrorfn RequestCitationsConfig::not_equal(x : RequestCitationsConfig, y : RequestCitationsConfig) -> Boolimpl ToJson for RequestCodeExecutionOutputBlockimpl FromJson for RequestCodeExecutionOutputBlockfn from_json(value : Json, path : JsonPath) -> RequestCodeExecutionOutputBlock raise JsonDecodeErrorfn RequestCodeExecutionOutputBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestCodeExecutionResultBlockimpl FromJson for RequestCodeExecutionResultBlockfn from_json(value : Json, path : JsonPath) -> RequestCodeExecutionResultBlock raise JsonDecodeErrorfn RequestCodeExecutionResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestCodeExecutionToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestCodeExecutionToolResultError raise JsonDecodeErrorfn RequestCodeExecutionToolResultError::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestContainerUploadBlockimpl FromJson for RequestContainerUploadBlockfn RequestContainerUploadBlock::equal(RequestContainerUploadBlock, RequestContainerUploadBlock) -> Boolfn RequestContainerUploadBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestContainerUploadBlockCacheControl raise JsonDecodeErrorfn RequestContainerUploadBlockCacheControl::from_json(value : Json, path : JsonPath) -> RequestContainerUploadBlockCacheControl raise JsonDecodeErrorfn RequestContainerUploadBlockCacheControl::not_equal(x : RequestContainerUploadBlockCacheControl, y : RequestContainerUploadBlockCacheControl) -> Boolfn RequestContainerUploadBlockCacheControl::to_json(self : RequestContainerUploadBlockCacheControl) -> Jsonfn from_json(value : Json, path : JsonPath) -> RequestContentBlockLocationCitation raise JsonDecodeErrorfn RequestContentBlockLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestDocumentBlockimpl FromJson for RequestDocumentBlockfn RequestDocumentBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestDocumentBlockCacheControlimpl FromJson for RequestDocumentBlockCacheControlfn from_json(value : Json, path : JsonPath) -> RequestDocumentBlockCacheControl raise JsonDecodeErrorfn RequestDocumentBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestDocumentBlockSourceimpl FromJson for RequestDocumentBlockSourcefn RequestDocumentBlockSource::equal(RequestDocumentBlockSource, RequestDocumentBlockSource) -> Boolfn RequestDocumentBlockSource::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestEncryptedCodeExecutionResultBlock raise JsonDecodeErrorfn RequestEncryptedCodeExecutionResultBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestImageBlockimpl FromJson for RequestImageBlockfn RequestImageBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestImageBlockCacheControlimpl FromJson for RequestImageBlockCacheControlfn RequestImageBlockCacheControl::equal(RequestImageBlockCacheControl, RequestImageBlockCacheControl) -> Boolfn RequestImageBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestImageBlockSourceimpl FromJson for RequestImageBlockSourcefn RequestImageBlockSource::from_json(value : Json, path : JsonPath) -> RequestImageBlockSource raise JsonDecodeErrorfn RequestImageBlockSource::not_equal(x : RequestImageBlockSource, y : RequestImageBlockSource) -> Boolpub(all) struct RequestImageTransformations {
oversized_image : RequestImageTransformationsOversizedImage?
} derive(Eq, Debug)impl ToJson for RequestImageTransformationsimpl FromJson for RequestImageTransformationsfn RequestImageTransformations::equal(RequestImageTransformations, RequestImageTransformations) -> Boolfn RequestImageTransformations::from_json(value : Json, path : JsonPath) -> RequestImageTransformations raise JsonDecodeErrorfn RequestImageTransformations::new(oversized_image? : RequestImageTransformationsOversizedImage) -> RequestImageTransformationsfn RequestImageTransformations::not_equal(x : RequestImageTransformations, y : RequestImageTransformations) -> Boolfn from_json(value : Json, path : JsonPath) -> RequestImageTransformationsOversizedImage raise JsonDecodeErrorfn RequestImageTransformationsOversizedImage::from_json(value : Json, path : JsonPath) -> RequestImageTransformationsOversizedImage raise JsonDecodeErrorfn RequestImageTransformationsOversizedImage::not_equal(x : RequestImageTransformationsOversizedImage, y : RequestImageTransformationsOversizedImage) -> Boolfn RequestImageTransformationsOversizedImage::to_json(self : RequestImageTransformationsOversizedImage) -> Jsonimpl ToJson for RequestPageLocationCitationimpl FromJson for RequestPageLocationCitationfn RequestPageLocationCitation::equal(RequestPageLocationCitation, RequestPageLocationCitation) -> Boolfn RequestPageLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestRedactedThinkingBlockimpl FromJson for RequestRedactedThinkingBlockfn RequestRedactedThinkingBlock::equal(RequestRedactedThinkingBlock, RequestRedactedThinkingBlock) -> Boolfn RequestRedactedThinkingBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestSearchResultBlockimpl FromJson for RequestSearchResultBlockfn RequestSearchResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestSearchResultBlockCacheControl raise JsonDecodeErrorfn RequestSearchResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> RequestSearchResultBlockCacheControl raise JsonDecodeErrorfn RequestSearchResultBlockCacheControl::not_equal(x : RequestSearchResultBlockCacheControl, y : RequestSearchResultBlockCacheControl) -> Boolfn RequestSearchResultBlockCacheControl::to_json(self : RequestSearchResultBlockCacheControl) -> Jsonfn from_json(value : Json, path : JsonPath) -> RequestSearchResultLocationCitation raise JsonDecodeErrorfn RequestSearchResultLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestServerToolUseBlockimpl FromJson for RequestServerToolUseBlockfn RequestServerToolUseBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestServerToolUseBlockCacheControl raise JsonDecodeErrorfn RequestServerToolUseBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestServerToolUseBlockCallerimpl FromJson for RequestServerToolUseBlockCallerfn from_json(value : Json, path : JsonPath) -> RequestServerToolUseBlockCaller raise JsonDecodeErrorfn RequestServerToolUseBlockCaller::from_json(value : Json, path : JsonPath) -> RequestServerToolUseBlockCaller raise JsonDecodeErrorfn RequestServerToolUseBlockCaller::not_equal(x : RequestServerToolUseBlockCaller, y : RequestServerToolUseBlockCaller) -> Boolimpl ToJson for RequestServerToolUseBlockNameimpl FromJson for RequestServerToolUseBlockNamefn RequestServerToolUseBlockName::equal(RequestServerToolUseBlockName, RequestServerToolUseBlockName) -> Boolfn RequestServerToolUseBlockName::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestTextBlockimpl FromJson for RequestTextBlockfn RequestTextBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestTextBlockCacheControlimpl FromJson for RequestTextBlockCacheControlfn RequestTextBlockCacheControl::equal(RequestTextBlockCacheControl, RequestTextBlockCacheControl) -> Boolfn RequestTextBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestTextBlockCitationsItemimpl FromJson for RequestTextBlockCitationsItemfn RequestTextBlockCitationsItem::equal(RequestTextBlockCitationsItem, RequestTextBlockCitationsItem) -> Boolfn RequestTextBlockCitationsItem::from_json(value : Json, path : JsonPath) -> RequestTextBlockCitationsItem raise JsonDecodeErrorfn RequestTextBlockCitationsItem::not_equal(x : RequestTextBlockCitationsItem, y : RequestTextBlockCitationsItem) -> Boolfn from_json(value : Json, path : JsonPath) -> RequestTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionCreateResultBlock::from_json(value : Json, path : JsonPath) -> RequestTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionCreateResultBlock::new(is_file_update~ : Bool, type_~ : String) -> RequestTextEditorCodeExecutionCreateResultBlockfn RequestTextEditorCodeExecutionCreateResultBlock::to_json(self : RequestTextEditorCodeExecutionCreateResultBlock) -> Jsonfn from_json(value : Json, path : JsonPath) -> RequestTextEditorCodeExecutionStrReplaceResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionStrReplaceResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestTextEditorCodeExecutionToolResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestTextEditorCodeExecutionToolResultBlockCacheControl raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultBlockContent::from_json(value : Json, path : JsonPath) -> RequestTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorpub(all) struct RequestTextEditorCodeExecutionToolResultError {
error_code : TextEditorCodeExecutionToolResultErrorCode
error_message : Presence[String]
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : JsonPath) -> RequestTextEditorCodeExecutionToolResultError raise JsonDecodeErrorfn RequestTextEditorCodeExecutionToolResultError::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestTextEditorCodeExecutionViewResultBlock raise JsonDecodeErrorfn RequestTextEditorCodeExecutionViewResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorfn RequestTextEditorCodeExecutionViewResultBlockFileType::from_json(value : Json, path : JsonPath) -> RequestTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorimpl ToJson for RequestThinkingBlockimpl FromJson for RequestThinkingBlockfn RequestThinkingBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolReferenceBlockimpl FromJson for RequestToolReferenceBlockfn RequestToolReferenceBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestToolReferenceBlockCacheControl raise JsonDecodeErrorfn RequestToolReferenceBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolResultBlockimpl FromJson for RequestToolResultBlockfn RequestToolResultBlock::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for RequestToolResultBlockCacheControlfn from_json(value : Json, path : JsonPath) -> RequestToolResultBlockCacheControl raise JsonDecodeErrorfn RequestToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> RequestToolResultBlockCacheControl raise JsonDecodeErrorfn RequestToolResultBlockCacheControl::not_equal(x : RequestToolResultBlockCacheControl, y : RequestToolResultBlockCacheControl) -> Boolpub(all) enum RequestToolResultBlockContent {
Text(String)
ValueArray(Array[RequestToolResultBlockContentValueArrayItem])
} derive(Eq, Debug)impl ToJson for RequestToolResultBlockContentimpl FromJson for RequestToolResultBlockContentfn RequestToolResultBlockContent::equal(RequestToolResultBlockContent, RequestToolResultBlockContent) -> Boolfn RequestToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestToolResultBlockContentValueArrayItem raise JsonDecodeErrorfn RequestToolResultBlockContentValueArrayItem::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolSearchToolResultBlockimpl FromJson for RequestToolSearchToolResultBlockfn from_json(value : Json, path : JsonPath) -> RequestToolSearchToolResultBlock raise JsonDecodeErrorfn RequestToolSearchToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestToolSearchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestToolSearchToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestToolSearchToolResultBlockContent raise JsonDecodeErrorfn RequestToolSearchToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolSearchToolResultErrorimpl FromJson for RequestToolSearchToolResultErrorfn from_json(value : Json, path : JsonPath) -> RequestToolSearchToolResultError raise JsonDecodeErrorfn RequestToolSearchToolResultError::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestToolSearchToolSearchResultBlock raise JsonDecodeErrorfn RequestToolSearchToolSearchResultBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolUseBlockimpl FromJson for RequestToolUseBlockfn RequestToolUseBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolUseBlockCacheControlimpl FromJson for RequestToolUseBlockCacheControlfn from_json(value : Json, path : JsonPath) -> RequestToolUseBlockCacheControl raise JsonDecodeErrorfn RequestToolUseBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestToolUseBlockCallerimpl FromJson for RequestToolUseBlockCallerfn RequestToolUseBlockCaller::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestWebFetchResultBlockimpl FromJson for RequestWebFetchResultBlockfn RequestWebFetchResultBlock::equal(RequestWebFetchResultBlock, RequestWebFetchResultBlock) -> Boolfn RequestWebFetchResultBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestWebFetchToolResultBlockimpl FromJson for RequestWebFetchToolResultBlockfn RequestWebFetchToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebFetchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestWebFetchToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebFetchToolResultBlockCaller raise JsonDecodeErrorfn RequestWebFetchToolResultBlockCaller::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebFetchToolResultBlockContent raise JsonDecodeErrorfn RequestWebFetchToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestWebFetchToolResultErrorimpl FromJson for RequestWebFetchToolResultErrorfn RequestWebFetchToolResultError::from_json(value : Json, path : JsonPath) -> RequestWebFetchToolResultError raise JsonDecodeErrorfn RequestWebFetchToolResultError::new(error_code~ : WebFetchToolResultErrorCode, type_~ : String) -> RequestWebFetchToolResultErrorfn RequestWebFetchToolResultError::not_equal(x : RequestWebFetchToolResultError, y : RequestWebFetchToolResultError) -> Boolimpl ToJson for RequestWebSearchResultBlockimpl FromJson for RequestWebSearchResultBlockfn RequestWebSearchResultBlock::equal(RequestWebSearchResultBlock, RequestWebSearchResultBlock) -> Boolfn RequestWebSearchResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebSearchResultLocationCitation raise JsonDecodeErrorfn RequestWebSearchResultLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestWebSearchToolResultBlockimpl FromJson for RequestWebSearchToolResultBlockfn from_json(value : Json, path : JsonPath) -> RequestWebSearchToolResultBlock raise JsonDecodeErrorfn RequestWebSearchToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebSearchToolResultBlockCacheControl raise JsonDecodeErrorfn RequestWebSearchToolResultBlockCacheControl::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebSearchToolResultBlockCaller raise JsonDecodeErrorfn RequestWebSearchToolResultBlockCaller::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> RequestWebSearchToolResultBlockContent raise JsonDecodeErrorfn RequestWebSearchToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 ToJson for RequestWebSearchToolResultErrorimpl FromJson for RequestWebSearchToolResultErrorfn from_json(value : Json, path : JsonPath) -> RequestWebSearchToolResultError raise JsonDecodeErrorfn RequestWebSearchToolResultError::from_json(value : Json, path : JsonPath) -> RequestWebSearchToolResultError raise JsonDecodeErrorfn RequestWebSearchToolResultError::new(error_code~ : WebSearchToolResultErrorCode) -> RequestWebSearchToolResultErrorfn RequestWebSearchToolResultError::not_equal(x : RequestWebSearchToolResultError, y : RequestWebSearchToolResultError) -> Boolfn from_json(value : Json, path : JsonPath) -> ResponseBashCodeExecutionOutputBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionOutputBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseBashCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseBashCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseBashCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseBashCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseBashCodeExecutionToolResultError::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseCharLocationCitationimpl FromJson for ResponseCharLocationCitationfn ResponseCharLocationCitation::equal(ResponseCharLocationCitation, ResponseCharLocationCitation) -> Boolfn ResponseCharLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseCitationsConfigimpl FromJson for ResponseCitationsConfigfn ResponseCitationsConfig::from_json(value : Json, path : JsonPath) -> ResponseCitationsConfig raise JsonDecodeErrorfn ResponseCitationsConfig::not_equal(x : ResponseCitationsConfig, y : ResponseCitationsConfig) -> Boolimpl ToJson for ResponseCodeExecutionOutputBlockimpl FromJson for ResponseCodeExecutionOutputBlockfn from_json(value : Json, path : JsonPath) -> ResponseCodeExecutionOutputBlock raise JsonDecodeErrorfn ResponseCodeExecutionOutputBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseCodeExecutionResultBlockimpl FromJson for ResponseCodeExecutionResultBlockfn from_json(value : Json, path : JsonPath) -> ResponseCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseCodeExecutionResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseCodeExecutionToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseCodeExecutionToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseCodeExecutionToolResultError::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseContainerUploadBlockimpl FromJson for ResponseContainerUploadBlockfn ResponseContainerUploadBlock::equal(ResponseContainerUploadBlock, ResponseContainerUploadBlock) -> Boolfn ResponseContainerUploadBlock::from_json(value : Json, path : JsonPath) -> ResponseContainerUploadBlock raise JsonDecodeErrorfn ResponseContainerUploadBlock::new(file_id~ : String, type_~ : String) -> ResponseContainerUploadBlockfn ResponseContainerUploadBlock::not_equal(x : ResponseContainerUploadBlock, y : ResponseContainerUploadBlock) -> Boolfn from_json(value : Json, path : JsonPath) -> ResponseContentBlockLocationCitation raise JsonDecodeErrorfn ResponseContentBlockLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseDocumentBlockimpl FromJson for ResponseDocumentBlockfn ResponseDocumentBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseDocumentBlockSourceimpl FromJson for ResponseDocumentBlockSourcefn ResponseDocumentBlockSource::equal(ResponseDocumentBlockSource, ResponseDocumentBlockSource) -> Boolfn ResponseDocumentBlockSource::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseEncryptedCodeExecutionResultBlock raise JsonDecodeErrorfn ResponseEncryptedCodeExecutionResultBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponsePageLocationCitationimpl FromJson for ResponsePageLocationCitationfn ResponsePageLocationCitation::equal(ResponsePageLocationCitation, ResponsePageLocationCitation) -> Boolfn ResponsePageLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseRedactedThinkingBlockimpl FromJson for ResponseRedactedThinkingBlockfn ResponseRedactedThinkingBlock::equal(ResponseRedactedThinkingBlock, ResponseRedactedThinkingBlock) -> Boolfn ResponseRedactedThinkingBlock::from_json(value : Json, path : JsonPath) -> ResponseRedactedThinkingBlock raise JsonDecodeErrorfn ResponseRedactedThinkingBlock::new(data~ : String, type_~ : String) -> ResponseRedactedThinkingBlockfn ResponseRedactedThinkingBlock::not_equal(x : ResponseRedactedThinkingBlock, y : ResponseRedactedThinkingBlock) -> Boolfn from_json(value : Json, path : JsonPath) -> ResponseSearchResultLocationCitation raise JsonDecodeErrorfn ResponseSearchResultLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseServerToolUseBlockimpl FromJson for ResponseServerToolUseBlockfn ResponseServerToolUseBlock::equal(ResponseServerToolUseBlock, ResponseServerToolUseBlock) -> Boolfn ResponseServerToolUseBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseServerToolUseBlockCallerimpl FromJson for ResponseServerToolUseBlockCallerfn from_json(value : Json, path : JsonPath) -> ResponseServerToolUseBlockCaller raise JsonDecodeErrorfn ResponseServerToolUseBlockCaller::from_json(value : Json, path : JsonPath) -> ResponseServerToolUseBlockCaller raise JsonDecodeErrorfn ResponseServerToolUseBlockCaller::not_equal(x : ResponseServerToolUseBlockCaller, y : ResponseServerToolUseBlockCaller) -> Boolimpl ToJson for ResponseServerToolUseBlockNameimpl FromJson for ResponseServerToolUseBlockNamefn ResponseServerToolUseBlockName::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseTextBlockimpl FromJson for ResponseTextBlockfn ResponseTextBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseTextBlockCitationsItemimpl FromJson for ResponseTextBlockCitationsItemfn ResponseTextBlockCitationsItem::from_json(value : Json, path : JsonPath) -> ResponseTextBlockCitationsItem raise JsonDecodeErrorfn ResponseTextBlockCitationsItem::not_equal(x : ResponseTextBlockCitationsItem, y : ResponseTextBlockCitationsItem) -> Boolfn from_json(value : Json, path : JsonPath) -> ResponseTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionCreateResultBlock::from_json(value : Json, path : JsonPath) -> ResponseTextEditorCodeExecutionCreateResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionCreateResultBlock::new(is_file_update~ : Bool, type_~ : String) -> ResponseTextEditorCodeExecutionCreateResultBlockfn ResponseTextEditorCodeExecutionCreateResultBlock::to_json(self : ResponseTextEditorCodeExecutionCreateResultBlock) -> Jsonfn from_json(value : Json, path : JsonPath) -> ResponseTextEditorCodeExecutionStrReplaceResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionStrReplaceResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseTextEditorCodeExecutionToolResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultBlockContent::from_json(value : Json, path : JsonPath) -> ResponseTextEditorCodeExecutionToolResultBlockContent raise JsonDecodeErrorpub(all) struct ResponseTextEditorCodeExecutionToolResultError {
error_code : TextEditorCodeExecutionToolResultErrorCode
error_message : String?
type_ : String
} derive(Eq, Debug)fn from_json(value : Json, path : JsonPath) -> ResponseTextEditorCodeExecutionToolResultError raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionToolResultError::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseTextEditorCodeExecutionViewResultBlock raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionViewResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorfn ResponseTextEditorCodeExecutionViewResultBlockFileType::from_json(value : Json, path : JsonPath) -> ResponseTextEditorCodeExecutionViewResultBlockFileType raise JsonDecodeErrorimpl ToJson for ResponseThinkingBlockimpl FromJson for ResponseThinkingBlockfn ResponseThinkingBlock::from_json(value : Json, path : JsonPath) -> ResponseThinkingBlock raise JsonDecodeErrorfn ResponseThinkingBlock::new(signature~ : String, thinking~ : String, type_~ : String) -> ResponseThinkingBlockimpl ToJson for ResponseToolReferenceBlockimpl FromJson for ResponseToolReferenceBlockfn ResponseToolReferenceBlock::equal(ResponseToolReferenceBlock, ResponseToolReferenceBlock) -> Boolfn ResponseToolReferenceBlock::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for ResponseToolSearchToolResultBlockfn from_json(value : Json, path : JsonPath) -> ResponseToolSearchToolResultBlock raise JsonDecodeErrorfn ResponseToolSearchToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseToolSearchToolResultBlockContent raise JsonDecodeErrorfn ResponseToolSearchToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for ResponseToolSearchToolResultErrorfn from_json(value : Json, path : JsonPath) -> ResponseToolSearchToolResultError raise JsonDecodeErrorfn ResponseToolSearchToolResultError::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseToolSearchToolSearchResultBlock raise JsonDecodeErrorfn ResponseToolSearchToolSearchResultBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseToolUseBlockimpl FromJson for ResponseToolUseBlockfn ResponseToolUseBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseToolUseBlockCallerimpl FromJson for ResponseToolUseBlockCallerfn ResponseToolUseBlockCaller::equal(ResponseToolUseBlockCaller, ResponseToolUseBlockCaller) -> Boolfn ResponseToolUseBlockCaller::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseWebFetchResultBlockimpl FromJson for ResponseWebFetchResultBlockfn ResponseWebFetchResultBlock::equal(ResponseWebFetchResultBlock, ResponseWebFetchResultBlock) -> Boolfn ResponseWebFetchResultBlock::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseWebFetchToolResultBlockimpl FromJson for ResponseWebFetchToolResultBlockfn from_json(value : Json, path : JsonPath) -> ResponseWebFetchToolResultBlock raise JsonDecodeErrorfn ResponseWebFetchToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseWebFetchToolResultBlockCaller raise JsonDecodeErrorfn ResponseWebFetchToolResultBlockCaller::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseWebFetchToolResultBlockContent raise JsonDecodeErrorfn ResponseWebFetchToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseWebFetchToolResultErrorimpl FromJson for ResponseWebFetchToolResultErrorfn from_json(value : Json, path : JsonPath) -> ResponseWebFetchToolResultError raise JsonDecodeErrorfn ResponseWebFetchToolResultError::from_json(value : Json, path : JsonPath) -> ResponseWebFetchToolResultError raise JsonDecodeErrorfn ResponseWebFetchToolResultError::new(error_code~ : WebFetchToolResultErrorCode, type_~ : String) -> ResponseWebFetchToolResultErrorfn ResponseWebFetchToolResultError::not_equal(x : ResponseWebFetchToolResultError, y : ResponseWebFetchToolResultError) -> Boolimpl ToJson for ResponseWebSearchResultBlockimpl FromJson for ResponseWebSearchResultBlockfn ResponseWebSearchResultBlock::equal(ResponseWebSearchResultBlock, ResponseWebSearchResultBlock) -> Boolfn ResponseWebSearchResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseWebSearchResultLocationCitation raise JsonDecodeErrorfn ResponseWebSearchResultLocationCitation::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseWebSearchToolResultBlockimpl FromJson for ResponseWebSearchToolResultBlockfn from_json(value : Json, path : JsonPath) -> ResponseWebSearchToolResultBlock raise JsonDecodeErrorfn ResponseWebSearchToolResultBlock::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseWebSearchToolResultBlockCaller raise JsonDecodeErrorfn ResponseWebSearchToolResultBlockCaller::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ResponseWebSearchToolResultBlockContent raise JsonDecodeErrorfn ResponseWebSearchToolResultBlockContent::from_json(value : Json, path : JsonPath) -> 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 ToJson for ResponseWebSearchToolResultErrorimpl FromJson for ResponseWebSearchToolResultErrorfn from_json(value : Json, path : JsonPath) -> ResponseWebSearchToolResultError raise JsonDecodeErrorfn ResponseWebSearchToolResultError::from_json(value : Json, path : JsonPath) -> ResponseWebSearchToolResultError raise JsonDecodeErrorfn ResponseWebSearchToolResultError::new(error_code~ : WebSearchToolResultErrorCode) -> ResponseWebSearchToolResultErrorfn ResponseWebSearchToolResultError::not_equal(x : ResponseWebSearchToolResultError, y : ResponseWebSearchToolResultError) -> Boolimpl ToJson for ServerToolCallerimpl FromJson for ServerToolCallerfn ServerToolCaller::from_json(value : Json, path : JsonPath) -> ServerToolCaller raise JsonDecodeErrorimpl ToJson for ServerToolCaller20260120impl FromJson for ServerToolCaller20260120fn ServerToolCaller20260120::from_json(value : Json, path : JsonPath) -> ServerToolCaller20260120 raise JsonDecodeErrorfn ServerToolCaller20260120::not_equal(x : ServerToolCaller20260120, y : ServerToolCaller20260120) -> Boolimpl ToJson for ServerToolUsageimpl FromJson for ServerToolUsagefn ServerToolUsage::from_json(value : Json, path : JsonPath) -> ServerToolUsage raise JsonDecodeErrorimpl ToJson for SignatureContentBlockDeltaimpl FromJson for SignatureContentBlockDeltafn SignatureContentBlockDelta::equal(SignatureContentBlockDelta, SignatureContentBlockDelta) -> Boolfn SignatureContentBlockDelta::from_json(value : Json, path : JsonPath) -> 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 ToJson for SkillParamsimpl FromJson for SkillParamsimpl ToJson for SkillParamsTypeimpl FromJson for SkillParamsTypefn SkillParamsType::from_json(value : Json, path : JsonPath) -> SkillParamsType raise JsonDecodeErrorimpl ToJson for StopReasonimpl FromJson for StopReasonimpl ToJson for TextContentBlockDeltaimpl FromJson for TextContentBlockDeltafn TextContentBlockDelta::from_json(value : Json, path : JsonPath) -> 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 ToJson for TextEditor20250124impl FromJson for TextEditor20250124fn TextEditor20250124::from_json(value : Json, path : JsonPath) -> 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 ToJson for TextEditor20250124CacheControlimpl FromJson for TextEditor20250124CacheControlfn TextEditor20250124CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for TextEditor20250429impl FromJson for TextEditor20250429fn TextEditor20250429::from_json(value : Json, path : JsonPath) -> 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 ToJson for TextEditor20250429CacheControlimpl FromJson for TextEditor20250429CacheControlfn TextEditor20250429CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for TextEditor20250728impl FromJson for TextEditor20250728fn TextEditor20250728::from_json(value : Json, path : JsonPath) -> 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 ToJson for TextEditor20250728CacheControlimpl FromJson for TextEditor20250728CacheControlfn TextEditor20250728CacheControl::from_json(value : Json, path : JsonPath) -> TextEditor20250728CacheControl raise JsonDecodeErrorfn TextEditor20250728CacheControl::not_equal(x : TextEditor20250728CacheControl, y : TextEditor20250728CacheControl) -> Boolfn from_json(value : Json, path : JsonPath) -> TextEditorCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn TextEditorCodeExecutionToolResultErrorCode::from_json(value : Json, path : JsonPath) -> TextEditorCodeExecutionToolResultErrorCode raise JsonDecodeErrorfn TextEditorCodeExecutionToolResultErrorCode::not_equal(x : TextEditorCodeExecutionToolResultErrorCode, y : TextEditorCodeExecutionToolResultErrorCode) -> Boolfn TextEditorCodeExecutionToolResultErrorCode::to_json(self : TextEditorCodeExecutionToolResultErrorCode) -> Jsonimpl ToJson for ThinkingCapabilityimpl FromJson for ThinkingCapabilityfn ThinkingCapability::from_json(value : Json, path : JsonPath) -> ThinkingCapability raise JsonDecodeErrorpub(all) struct ThinkingConfigAdaptive {
display : Presence[ThinkingDisplayMode]
type_ : String
} derive(Eq, Debug)impl ToJson for ThinkingConfigAdaptiveimpl FromJson for ThinkingConfigAdaptivefn ThinkingConfigAdaptive::from_json(value : Json, path : JsonPath) -> ThinkingConfigAdaptive raise JsonDecodeErrorfn ThinkingConfigAdaptive::new(type_~ : String, display? : ThinkingDisplayMode) -> ThinkingConfigAdaptivefn ThinkingConfigAdaptive::not_equal(x : ThinkingConfigAdaptive, y : ThinkingConfigAdaptive) -> Boolimpl ToJson for ThinkingConfigBetweenToolsimpl FromJson for ThinkingConfigBetweenToolsfn ThinkingConfigBetweenTools::equal(ThinkingConfigBetweenTools, ThinkingConfigBetweenTools) -> Boolfn ThinkingConfigBetweenTools::from_json(value : Json, path : JsonPath) -> ThinkingConfigBetweenTools raise JsonDecodeErrorfn ThinkingConfigBetweenTools::not_equal(x : ThinkingConfigBetweenTools, y : ThinkingConfigBetweenTools) -> Boolimpl ToJson for ThinkingConfigDisabledimpl FromJson for ThinkingConfigDisabledfn ThinkingConfigDisabled::from_json(value : Json, path : JsonPath) -> 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 ToJson for ThinkingConfigEnabledimpl FromJson for ThinkingConfigEnabledfn ThinkingConfigEnabled::from_json(value : Json, path : JsonPath) -> 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 ToJson for ThinkingConfigParamimpl FromJson for ThinkingConfigParamfn ThinkingConfigParam::from_json(value : Json, path : JsonPath) -> ThinkingConfigParam raise JsonDecodeErrorimpl ToJson for ThinkingContentBlockDeltaimpl FromJson for ThinkingContentBlockDeltafn ThinkingContentBlockDelta::from_json(value : Json, path : JsonPath) -> ThinkingContentBlockDelta raise JsonDecodeErrorfn ThinkingContentBlockDelta::not_equal(x : ThinkingContentBlockDelta, y : ThinkingContentBlockDelta) -> Boolimpl ToJson for ThinkingDisplayModeimpl FromJson for ThinkingDisplayModefn ThinkingDisplayMode::from_json(value : Json, path : JsonPath) -> ThinkingDisplayMode raise JsonDecodeErrorpub(all) struct ThinkingTypes {
adaptive : CapabilitySupport
enabled : CapabilitySupport
} derive(Eq, Debug)impl ToJson for ThinkingTypesimpl FromJson for ThinkingTypespub(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 ToJson for ToolCacheControlimpl FromJson for ToolCacheControlfn ToolCacheControl::from_json(value : Json, path : JsonPath) -> ToolCacheControl raise JsonDecodeErrorpub(all) enum ToolChoice {
Any(ToolChoiceAny)
Auto(ToolChoiceAuto)
None(ToolChoiceNone)
Tool(ToolChoiceTool)
Unknown(String, Json)
} derive(Eq, Debug)impl ToJson for ToolChoiceimpl FromJson for ToolChoiceimpl ToJson for ToolChoiceAnyimpl FromJson for ToolChoiceAnyimpl ToJson for ToolChoiceAutoimpl FromJson for ToolChoiceAutoimpl ToJson for ToolChoiceNoneimpl FromJson for ToolChoiceNoneimpl ToJson for ToolChoiceToolimpl FromJson for ToolChoiceToolfn ToolChoiceTool::new(name~ : String, type_~ : String, disable_parallel_tool_use? : Bool) -> ToolChoiceToolpub(all) struct ToolSearchToolBM2520251119 {
allowed_callers : Array[AllowedCaller]?
cache_control : Presence[ToolSearchToolBM2520251119CacheControl]
defer_loading : Bool?
strict : Bool?
type_ : ToolSearchToolBM2520251119Type
} derive(Eq, Debug)impl ToJson for ToolSearchToolBM2520251119impl FromJson for ToolSearchToolBM2520251119fn ToolSearchToolBM2520251119::equal(ToolSearchToolBM2520251119, ToolSearchToolBM2520251119) -> Boolfn ToolSearchToolBM2520251119::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ToolSearchToolBM2520251119CacheControl raise JsonDecodeErrorfn ToolSearchToolBM2520251119CacheControl::from_json(value : Json, path : JsonPath) -> ToolSearchToolBM2520251119CacheControl raise JsonDecodeErrorfn ToolSearchToolBM2520251119CacheControl::not_equal(x : ToolSearchToolBM2520251119CacheControl, y : ToolSearchToolBM2520251119CacheControl) -> Boolfn ToolSearchToolBM2520251119CacheControl::to_json(self : ToolSearchToolBM2520251119CacheControl) -> Jsonimpl ToJson for ToolSearchToolBM2520251119Typeimpl FromJson for ToolSearchToolBM2520251119Typefn ToolSearchToolBM2520251119Type::from_json(value : Json, path : JsonPath) -> 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 ToJson for ToolSearchToolRegex20251119impl FromJson for ToolSearchToolRegex20251119fn ToolSearchToolRegex20251119::equal(ToolSearchToolRegex20251119, ToolSearchToolRegex20251119) -> Boolfn ToolSearchToolRegex20251119::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> ToolSearchToolRegex20251119CacheControl raise JsonDecodeErrorfn ToolSearchToolRegex20251119CacheControl::from_json(value : Json, path : JsonPath) -> ToolSearchToolRegex20251119CacheControl raise JsonDecodeErrorfn ToolSearchToolRegex20251119CacheControl::not_equal(x : ToolSearchToolRegex20251119CacheControl, y : ToolSearchToolRegex20251119CacheControl) -> Boolfn ToolSearchToolRegex20251119CacheControl::to_json(self : ToolSearchToolRegex20251119CacheControl) -> Jsonimpl ToJson for ToolSearchToolRegex20251119Typeimpl FromJson for ToolSearchToolRegex20251119Typefn from_json(value : Json, path : JsonPath) -> ToolSearchToolRegex20251119Type raise JsonDecodeErrorfn ToolSearchToolRegex20251119Type::from_json(value : Json, path : JsonPath) -> ToolSearchToolRegex20251119Type raise JsonDecodeErrorfn ToolSearchToolRegex20251119Type::not_equal(x : ToolSearchToolRegex20251119Type, y : ToolSearchToolRegex20251119Type) -> Boolimpl ToJson for ToolSearchToolResultErrorCodeimpl FromJson for ToolSearchToolResultErrorCodefn ToolSearchToolResultErrorCode::equal(ToolSearchToolResultErrorCode, ToolSearchToolResultErrorCode) -> Boolfn ToolSearchToolResultErrorCode::from_json(value : Json, path : JsonPath) -> ToolSearchToolResultErrorCode raise JsonDecodeErrorfn ToolSearchToolResultErrorCode::not_equal(x : ToolSearchToolResultErrorCode, y : ToolSearchToolResultErrorCode) -> Boolimpl ToJson for URLImageSourceimpl FromJson for URLImageSourceimpl ToJson for URLPDFSourceimpl FromJson for URLPDFSourcepub(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]
} 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) -> Usageimpl ToJson for UsageServiceTierimpl FromJson for UsageServiceTierfn UsageServiceTier::from_json(value : Json, path : JsonPath) -> UsageServiceTier raise JsonDecodeErrorimpl ToJson for UserLocationimpl FromJson for UserLocationfn UserLocation::new(city? : String, country? : String, region? : String, timezone? : String) -> UserLocationpub(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 ToJson for WebFetchTool20250910impl FromJson for WebFetchTool20250910fn WebFetchTool20250910::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20250910CacheControlimpl FromJson for WebFetchTool20250910CacheControlfn from_json(value : Json, path : JsonPath) -> WebFetchTool20250910CacheControl raise JsonDecodeErrorfn WebFetchTool20250910CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20260209impl FromJson for WebFetchTool20260209fn WebFetchTool20260209::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20260209CacheControlimpl FromJson for WebFetchTool20260209CacheControlfn from_json(value : Json, path : JsonPath) -> WebFetchTool20260209CacheControl raise JsonDecodeErrorfn WebFetchTool20260209CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20260309impl FromJson for WebFetchTool20260309fn WebFetchTool20260309::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20260309CacheControlimpl FromJson for WebFetchTool20260309CacheControlfn from_json(value : Json, path : JsonPath) -> WebFetchTool20260309CacheControl raise JsonDecodeErrorfn WebFetchTool20260309CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20260318impl FromJson for WebFetchTool20260318fn WebFetchTool20260318::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchTool20260318CacheControlimpl FromJson for WebFetchTool20260318CacheControlfn from_json(value : Json, path : JsonPath) -> WebFetchTool20260318CacheControl raise JsonDecodeErrorfn WebFetchTool20260318CacheControl::from_json(value : Json, path : JsonPath) -> WebFetchTool20260318CacheControl raise JsonDecodeErrorfn WebFetchTool20260318CacheControl::not_equal(x : WebFetchTool20260318CacheControl, y : WebFetchTool20260318CacheControl) -> Boolfn from_json(value : Json, path : JsonPath) -> WebFetchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebFetchTool20260318ResponseInclusion::from_json(value : Json, path : JsonPath) -> WebFetchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebFetchTool20260318ResponseInclusion::not_equal(x : WebFetchTool20260318ResponseInclusion, y : WebFetchTool20260318ResponseInclusion) -> Boolfn WebFetchTool20260318ResponseInclusion::to_json(self : WebFetchTool20260318ResponseInclusion) -> Jsonimpl ToJson for WebFetchToolResultErrorCodeimpl FromJson for WebFetchToolResultErrorCodefn WebFetchToolResultErrorCode::equal(WebFetchToolResultErrorCode, WebFetchToolResultErrorCode) -> Boolfn WebFetchToolResultErrorCode::from_json(value : Json, path : JsonPath) -> WebFetchToolResultErrorCode raise JsonDecodeErrorfn WebFetchToolResultErrorCode::not_equal(x : WebFetchToolResultErrorCode, y : WebFetchToolResultErrorCode) -> Boolimpl ToJson for WebFetchUrlSourceAllimpl FromJson for WebFetchUrlSourceAllfn WebFetchUrlSourceAll::from_json(value : Json, path : JsonPath) -> WebFetchUrlSourceAll raise JsonDecodeErrorpub(all) struct WebFetchUrlSourceExcept {
tools : Array[WebFetchUrlSourceToolReference]
type_ : String
} derive(Eq, Debug)impl ToJson for WebFetchUrlSourceExceptimpl FromJson for WebFetchUrlSourceExceptfn WebFetchUrlSourceExcept::from_json(value : Json, path : JsonPath) -> WebFetchUrlSourceExcept raise JsonDecodeErrorfn WebFetchUrlSourceExcept::new(tools~ : Array[WebFetchUrlSourceToolReference], type_~ : String) -> WebFetchUrlSourceExceptfn WebFetchUrlSourceExcept::not_equal(x : WebFetchUrlSourceExcept, y : WebFetchUrlSourceExcept) -> Boolimpl ToJson for WebFetchUrlSourceNoneimpl FromJson for WebFetchUrlSourceNonefn WebFetchUrlSourceNone::from_json(value : Json, path : JsonPath) -> WebFetchUrlSourceNone raise JsonDecodeErrorpub(all) struct WebFetchUrlSourceOnly {
tools : Array[WebFetchUrlSourceToolReference]
type_ : String
} derive(Eq, Debug)impl ToJson for WebFetchUrlSourceOnlyimpl FromJson for WebFetchUrlSourceOnlyfn WebFetchUrlSourceOnly::from_json(value : Json, path : JsonPath) -> WebFetchUrlSourceOnly raise JsonDecodeErrorfn WebFetchUrlSourceOnly::new(tools~ : Array[WebFetchUrlSourceToolReference], type_~ : String) -> WebFetchUrlSourceOnlyimpl ToJson for WebFetchUrlSourceToolReferenceimpl FromJson for WebFetchUrlSourceToolReferencefn WebFetchUrlSourceToolReference::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchUrlSourcesimpl FromJson for WebFetchUrlSourcesfn WebFetchUrlSources::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> WebFetchUrlSourcesClientToolResults raise JsonDecodeErrorfn WebFetchUrlSourcesClientToolResults::from_json(value : Json, path : JsonPath) -> 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 : JsonPath) -> WebFetchUrlSourcesServerToolResults raise JsonDecodeErrorfn WebFetchUrlSourcesServerToolResults::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebFetchUrlSourcesUserInputimpl FromJson for WebFetchUrlSourcesUserInputfn WebFetchUrlSourcesUserInput::equal(WebFetchUrlSourcesUserInput, WebFetchUrlSourcesUserInput) -> Boolfn WebFetchUrlSourcesUserInput::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebSearchTool20250305impl FromJson for WebSearchTool20250305fn WebSearchTool20250305::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for WebSearchTool20250305CacheControlfn from_json(value : Json, path : JsonPath) -> WebSearchTool20250305CacheControl raise JsonDecodeErrorfn WebSearchTool20250305CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebSearchTool20260209impl FromJson for WebSearchTool20260209fn WebSearchTool20260209::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for WebSearchTool20260209CacheControlfn from_json(value : Json, path : JsonPath) -> WebSearchTool20260209CacheControl raise JsonDecodeErrorfn WebSearchTool20260209CacheControl::from_json(value : Json, path : JsonPath) -> 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 ToJson for WebSearchTool20260318impl FromJson for WebSearchTool20260318fn WebSearchTool20260318::from_json(value : Json, path : JsonPath) -> 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)impl ToJson for WebSearchTool20260318CacheControlfn from_json(value : Json, path : JsonPath) -> WebSearchTool20260318CacheControl raise JsonDecodeErrorfn WebSearchTool20260318CacheControl::from_json(value : Json, path : JsonPath) -> WebSearchTool20260318CacheControl raise JsonDecodeErrorfn WebSearchTool20260318CacheControl::not_equal(x : WebSearchTool20260318CacheControl, y : WebSearchTool20260318CacheControl) -> Boolfn from_json(value : Json, path : JsonPath) -> WebSearchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebSearchTool20260318ResponseInclusion::from_json(value : Json, path : JsonPath) -> WebSearchTool20260318ResponseInclusion raise JsonDecodeErrorfn WebSearchTool20260318ResponseInclusion::not_equal(x : WebSearchTool20260318ResponseInclusion, y : WebSearchTool20260318ResponseInclusion) -> Boolfn WebSearchTool20260318ResponseInclusion::to_json(self : WebSearchTool20260318ResponseInclusion) -> Jsonimpl ToJson for WebSearchToolResultErrorCodeimpl FromJson for WebSearchToolResultErrorCodefn WebSearchToolResultErrorCode::equal(WebSearchToolResultErrorCode, WebSearchToolResultErrorCode) -> Boolfn WebSearchToolResultErrorCode::from_json(value : Json, path : JsonPath) -> WebSearchToolResultErrorCode raise JsonDecodeErrorfn WebSearchToolResultErrorCode::not_equal(x : WebSearchToolResultErrorCode, y : WebSearchToolResultErrorCode) -> Boolfn messages_count_tokens_post_decode(response : Response) -> CountMessageTokensResponse raise SdkErrorfn 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) -> RequestInstall
Download zipThin Anthropic Messages API client for MoonBit built on gaato/http and gaato/sdk-runtime.
Dependencies