seedframe_anthropic

Crates.ioseedframe_anthropic
lib.rsseedframe_anthropic
version0.1.1
created_at2025-04-22 12:08:10.559215+00
updated_at2025-04-30 10:56:10.547929+00
descriptionAnthropic AI integration crate for SeedFrame
homepage
repositoryhttps://github.com/Shifta-Robel/SeedFrame/tree/main/integrations/completion_providers/seedframe_anthropic
max_upload_size
id1643939
size20,838
Robel B. Tamirat (Shifta-Robel)

documentation

README

Seedframe Anthropic

Anthropic AI integration crate for Seedframe, provides struct AnthropicClient which implements the trait Seedframe::completion::CompletionModel

Intended for use with the #[client] macro

Accepts the following configuration parameters, passed as json to the config attribute in the client proc-macro - model: optional String - identifier for the model to use - api_key_var: optional String - Environment variable name containing the API key - api_url: optional String - Custom API endpoint URL

use seedframe_anthropic::AnthropicCompletionModel;

#[client(
    provider = "AnthropicCompletionModel",
    config = r#"{
      "model": "claude-3-7-sonnet-20250219",
      "api_key_var": "ENV_VAR",
      "api_url": "https://api.anthropic.com/v1/messages"
    }"#
)]
struct AnthropicClient;
Commit count: 134

cargo fmt