Expand description
Model and provider abstraction.
Mirrors Model / ImageContent from pi-ai: a pluggable interface that
any concrete provider (OpenAI, Anthropic, local GGUF via mistralrs, …)
implements. The agent loop talks only to ModelProvider.
Structs§
- Model
- A model identifier in
provider/modelform, e.g.anthropic/claude-sonnet-4-6. - Model
Request - A request to a model.
- Model
Response - The final, non-streamed response from a model turn.
Enums§
- Stream
Event - One event in a streamed model response.
Traits§
- Model
Provider - The provider abstraction. Implement this to add a backend.
Type Aliases§
- Stream
Event Stream - A boxed, sendable stream of
StreamEvents.