Skip to main content

Crate siumai_protocol_anthropic

Crate siumai_protocol_anthropic 

Source
Expand description

siumai-protocol-anthropic

Anthropic Messages protocol mapping for siumai.

This crate owns the vendor-agnostic protocol layer for Anthropic Messages:

  • Messages API request/response mapping
  • Streaming event conversion
  • Prompt caching + thinking helpers (protocol-level)

Provider crates should depend on this crate and keep vendor-specific quirks behind provider-owned presets/wrappers.

Modules§

hosted_tools
Anthropic protocol-owned provider-defined tool constructors.
provider_metadata
Protocol-owned typed metadata views. Typed response metadata (protocol-owned).
standards
Protocol standards owned by this crate.

Structs§

ChatResponse
Chat response from the provider
CommonParams
Common AI parameters