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§
- Chat
Response - Chat response from the provider
- Common
Params - Common AI parameters