agent-sdk-providers 0.10.0

LLM provider trait, streaming primitives, and first-party provider implementations for the Agent SDK
Documentation

agent-sdk-providers

crates.io docs.rs MIT

The LlmProvider trait, streaming primitives, schema-validated structured output (run_structured), and the first-party provider implementations for the Agent SDK.

Providers

Each provider is an opt-in Cargo feature (no default features when depended on directly):

Feature Provider
anthropic Anthropic (Claude)
openai OpenAI Chat Completions
openai-codex OpenAI Codex / Responses (WebSocket)
gemini Google Gemini
vertex Google Vertex AI
cloudflare Cloudflare AI Gateway

Most users want agent-sdk

Provider selection is normally done through the agent-sdk façade's feature flags, which re-exports these providers under agent_sdk::providers. Depend on this crate directly only to implement a custom provider against the LlmProvider trait.

[dependencies]
agent-sdk = { version = "0.9", features = ["openai", "gemini"] }

Documentation

License

MIT. See LICENSE.