Something went wrong. Try again.
A Rust library that provides a convenient way to interact with the Anthropic API for chat-based AI applications
Something went wrong. Try again.
README.md
another-anthropic-rs #
another-anthropic-rs is a Rust library that provides a convenient way to interact with the Anthropic API for chat-based AI applications. It allows you to easily send chat messages, receive responses, and handle different types of content and events.
Features #
- Simple and intuitive API for sending chat messages and receiving responses
- Support for different chat models and configurations
- Serialization of API responses into structured Rust types
- Handling of text content, content deltas, and errors
- Access to usage information for chat conversations
Installation #
Add the following to your Cargo.toml file:
[dependencies]
another-anthropic-rs = "0.1.0"
Usage #
To see how to use another-anthropic-rs in your Rust project, check out the provided example:
simple-chat: Demonstrates how to send a chat message and receive a response using the library.
You can run the example using the following command:
cargo run -p example-simple-chat
For more detailed usage and examples, please refer to the documentation.
Contributing #
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the sourcehut repository.
License #
This project is licensed under the GPLv3 License.