Skip to main content

Crate siumai_anthropic_compatible

Crate siumai_anthropic_compatible 

Source
Expand description

Configured execution engine for Anthropic Messages-compatible APIs.

This crate owns reusable protocol execution, endpoint isolation, authentication, option merging, and evidence-backed compatibility profiles. It deliberately does not own any branded provider identity, provider annotation namespace, or native resource API.

Structs§

AnthropicCompatibleLanguageModel
Lightweight language-model handle sharing one configured provider runtime.
AnthropicCompatibleProfile
Immutable endpoint, identity, evidence, and protocol policy for one compatible runtime.
AnthropicCompatibleProvider
Long-lived, synchronously configured Anthropic Messages-compatible runtime.
AnthropicCompatibleProviderBuilder
Builder for one network-free configured runtime.
CacheControl
One explicit Anthropic-protocol prompt-cache breakpoint.
ClearThinkingEdit
Configuration for the clear_thinking_20251015 edit.
ClearToolUsesEdit
Configuration for the clear_tool_uses_20250919 edit.
CompactionEdit
Configuration for the compact_20260112 edit.
ContainerSkill
One skill mounted into an Anthropic code-execution container.
ContextManagement
Ordered context-management edits for one Messages request.
CredentialError
Sanitized static-credential validation failure.
McpAuthorizationToken
Secret bearer value used by one remote MCP server.
McpServer
One remote MCP server available to a Messages request.
MessagesCallOptions
Provider-independent Messages call shaping understood by the compatible engine.
MessagesEncodingRules
Bounded request-encoding rules for one Anthropic Messages-compatible dialect.
MessagesRequestProjectionContext
Read-only inputs available while projecting one encoded Messages request.
MessagesRequestRequirements
Additional execution requirements discovered while preparing one Messages request.
MessagesTokenCountOptions
Protocol-owned shaping for one Anthropic token-count request.
NativeMessagesRequestProjection
Native Anthropic Messages projection used by default.
NoMessagesRequestPolicy
No-op request policy used by generic compatible profiles.
ProjectedMessagesRequest
Bounded wire projection returned to the compatible execution engine.
TemperatureEncodingRule
Validated upper-bound rule for the Messages temperature field.
TokenTaskBudget
Token budget carried by output_config.task_budget.

Enums§

AnthropicCompatibleConfigError
AnthropicCompatibleCredential
Explicit authentication strategy for one compatible endpoint.
CacheControlWireStyle
How a compatible Messages dialect represents prompt-cache TTLs.
CacheTtl
Lifetime of one Anthropic-protocol prompt-cache entry.
ClearThinkingKeep
Retention policy used by the clear-thinking edit.
ClearToolInputs
Selection policy for tool inputs cleared by context management.
ContainerSkillType
Source namespace for a container skill.
ContextManagementEdit
One versioned Anthropic context-management edit.
ContextManagementTrigger
Threshold that activates one context-management edit.
InferenceGeo
Request-side inference geography accepted by the current Messages API.
InferenceSpeed
Inference speed override for a Messages request or fallback attempt.
MessagesAssignedServiceTier
Response-side service tier assigned by Anthropic.
MessagesContainer
Container reuse or construction settings for one Messages request.
MessagesEncodingRuleError
Invalid compatible-dialect encoding configuration.
MessagesServiceTierPreference
Request-side preference accepted by the Messages service_tier field.
MidConversationSystemEncoding
How a Messages dialect represents system instructions after the conversation starts.

Traits§

MessagesRequestPolicy
Provider- or dialect-owned preparation for one merged Messages request.
MessagesRequestProjection
Provider- or dialect-owned projection of one canonical Messages request.