Skip to main content

everruns_sdk/
lib.rs

1//! Everruns SDK for Rust
2//!
3//! This crate provides a typed client for the Everruns API.
4//!
5//! # Quick Start
6//!
7//! ```rust,no_run
8//! use everruns_sdk::Everruns;
9//!
10//! #[tokio::main]
11//! async fn main() -> Result<(), everruns_sdk::Error> {
12//!     // Uses EVERRUNS_API_KEY environment variable
13//!     let client = Everruns::from_env()?;
14//!
15//!     // Create an agent
16//!     let agent = client.agents().create(
17//!         "Assistant",
18//!         "You are a helpful assistant."
19//!     ).await?;
20//!
21//!     // Create a session
22//!     let session = client.sessions().create().await?;
23//!
24//!     // Send a message
25//!     client.messages().create(&session.id, "Hello!").await?;
26//!
27//!     Ok(())
28//! }
29//! ```
30
31pub mod auth;
32pub mod client;
33pub mod error;
34pub mod models;
35pub mod sse;
36
37pub use auth::ApiKey;
38pub use client::Everruns;
39pub use error::Error;
40pub use models::*;