aether-llm 0.1.9

Multi-provider LLM abstraction layer for the Aether AI agent framework
Documentation
Factory trait for constructing model providers from environment configuration.

This trait is separate from [`StreamingModelProvider`] because construction methods require `Sized`, which is incompatible with trait objects (`Box<dyn StreamingModelProvider>`). By splitting the factory methods into their own trait, the provider trait remains object-safe.

# Methods

- **`async from_env() -> Result<Self>`** -- Create a provider from environment variables (e.g. `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`). Returns [`LlmError::MissingApiKey`]crate::LlmError::MissingApiKey if the required variable is not set.

- **`with_model(self, model: &str) -> Self`** -- Set or override the model for this provider. Returns `self` for builder-style chaining.

# Example

```rust,no_run
# async fn example() {
use llm::{ProviderFactory, StreamingModelProvider};
use llm::providers::anthropic::AnthropicProvider;

let provider = AnthropicProvider::from_env().await
    .expect("ANTHROPIC_API_KEY must be set")
    .with_model("claude-sonnet-4-5-20250929");

println!("Using: {}", provider.display_name());
# }
```