Forge documentation
Rust

Rust providers

Providers contracts and source references for Rust.

Provider adapters are separate crates. The aggregate enables selected providers through features such as anthropic, openai, and google. Native HTTP clients are gated out on wasm32; a native provider example is not a WASM deployment example.

Rust reference

Each reference records the source path, hash and declaration inventory for this language. Start at the import boundary before using a symbol found in a deeper implementation file.

Endpoint and model configuration

Read the provider's current catalog and select a model ID available to your account. Adapters may have configurable default endpoints. No model name in a source fixture is a promise of current provider availability. Test streaming, structured output, tool calls and cancellation separately for the selected provider.

Continue

On this page