Skip to main content

everruns_anthropic/
lib.rs

1//! Anthropic Claude provider driver for Everruns.
2//!
3//! `everruns-anthropic` is part of the [Everruns](https://everruns.com)
4//! ecosystem. It implements the [`ChatDriver`] contract from `everruns-core` and
5//! registers Anthropic's Messages API driver into a [`DriverRegistry`].
6//!
7//! Provider crates depend on `everruns-core`; `everruns-core` does not depend on
8//! provider implementations. Hosts register whichever drivers they want to make
9//! available.
10//!
11//! # Example
12//!
13//! ```
14//! use everruns_anthropic::{AnthropicChatDriver, register_driver};
15//! use everruns_provider::DriverRegistry;
16//!
17//! let driver = AnthropicChatDriver::new("your-api-key");
18//!
19//! let mut registry = DriverRegistry::new();
20//! register_driver(&mut registry);
21//!
22//! assert!(format!("{driver:?}").contains("AnthropicChatDriver"));
23//! ```
24
25mod driver;
26
27#[cfg(test)]
28mod tests;
29
30pub use driver::{AnthropicChatDriver, register_driver};
31
32// Re-export core types for convenience
33pub use everruns_provider::driver_registry::{ChatDriver, DriverRegistry};