| Crates.io | seedframe_anthropic |
| lib.rs | seedframe_anthropic |
| version | 0.1.1 |
| created_at | 2025-04-22 12:08:10.559215+00 |
| updated_at | 2025-04-30 10:56:10.547929+00 |
| description | Anthropic AI integration crate for SeedFrame |
| homepage | |
| repository | https://github.com/Shifta-Robel/SeedFrame/tree/main/integrations/completion_providers/seedframe_anthropic |
| max_upload_size | |
| id | 1643939 |
| size | 20,838 |
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;