clust
An unofficial Rust client for the Anthropic/Claude API.
Installation
Run the following Cargo command in your project directory:
cargo add clust
or add the following line to your Cargo.toml:
[]
= "0.1.0"
Supported APIs
- Messages
Usage
An example of creating a message with the API key loaded from the environment variable: ANTHROPIC_API_KEY
ANTHROPIC_API_KEY={your-api-key}
is as follows:
use ClaudeModel;
use MaxTokens;
use Message;
use MessagesRequestBody;
use SystemPrompt;
use Client;
async
Other examples
See the examples directory for more examples.
Changelog
See CHANGELOG.
License
Licensed under either of the Apache License, Version 2.0 or the MIT license at your option.