1 unstable release

0.1.2 Nov 22, 2025

#2492 in Asynchronous

Download history 26/week @ 2025-11-20 18/week @ 2025-11-27 52/week @ 2025-12-04 49/week @ 2025-12-11 58/week @ 2025-12-18 63/week @ 2025-12-25 56/week @ 2026-01-01

241 downloads per month

MIT license

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