Expand description
Model provider interface and routing.
Re-exports§
pub use self::realtime::RealtimeVoiceCall;pub use self::realtime::RealtimeVoiceCommand;pub use self::realtime::RealtimeVoiceEvent;pub use self::realtime::RealtimeVoiceRequest;
Modules§
- anthropic
- Native Anthropic Messages API provider.
- deepseek
- DeepSeek Responses provider.
- kimi
- Native Kimi Chat Completions provider.
- openai
- OpenAI Responses API Adapter.
- openai_
codex - ChatGPT-authenticated Codex Responses provider.
- openai_
socket - First-party OpenAI Responses WebSocket transport.
- openrouter
- OpenRouter Responses provider.
- provider
- Provider-owned setup metadata and model construction.
- realtime
- Provider-owned WebRTC negotiation and authenticated voice sideband control.
Structs§
- Compact
Output - Durable replacement history returned by server-side compaction.
- Compact
Request - Input for a provider’s native compaction endpoint.
- Model
Output - Completed output from a model response.
- Model
Pricing - Token rates owned by one concrete provider/model implementation.
- Model
Request - Input for one model turn.
- Model
Router - Selects a model Adapter by a stable provider ID.
- Prompt
Cache Identity - Provider-visible identity for one prompt-cache lineage.
- Tool
Call - One model-requested function call.
- Tool
Definition - A function tool definition sent to a model provider.
- Tool
Load - A durable control item recording tool schemas materialized at one context position.
Constants§
- TOOLS_
SEARCH_ NAME - Stable semantic name of the core deferred-tool discovery function.
Traits§
- Model
- A model provider Adapter used by the agent loop.
Functions§
- prompt_
cache_ key - Hashes a local session identity into a stable provider cache key.
- tool_
output - Creates a Responses API function-call-output item.
- user_
message - Creates a Responses API user-message item.
- user_
message_ with_ attachments - Creates a durable user message carrying opaque uploaded-file references.
Type Aliases§
- Model
Event Sink - Fallible synchronous callback used to forward streaming provider events.