1 unstable release
| 0.1.2 | Nov 22, 2025 |
|---|
#2492 in Asynchronous
241 downloads per month
41KB
603 lines
Anthropic Claude SDK for Miyabi LLM
This crate provides Anthropic Claude API integration for the Miyabi LLM framework.
It implements the LlmClient and LlmStreamingClient traits from miyabi-llm-core.
Features
- Claude 3.5 Sonnet support
- Tool/function calling
- Streaming responses via SSE
- Environment variable configuration
Example
use miyabi_llm_anthropic::AnthropicClient;
use miyabi_llm_core::{LlmClient, Message};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = AnthropicClient::from_env()?;
let messages = vec![Message::user("Hello!")];
let response = client.chat(messages).await?;
println!("Response: {}", response);
Ok(())
}
miyabi-llm-anthropic
Part of the Miyabi LLM ecosystem - Unified LLM interface for Rust.
Installation
cargo add miyabi-llm-anthropic
License
MIT
Dependencies
~8–24MB
~270K SLoC