Skip to main content

agentkernel_sdk/
lib.rs

1//! # agentkernel-sdk
2//!
3//! Rust SDK for [agentkernel](https://github.com/thrashr888/agentkernel) — run
4//! AI coding agents in secure, isolated microVMs.
5//!
6//! ## Quick Start
7//!
8//! ```no_run
9//! # async fn example() -> agentkernel_sdk::Result<()> {
10//! use agentkernel_sdk::AgentKernel;
11//!
12//! let client = AgentKernel::builder().build()?;
13//! let output = client.run(&["echo", "hello"], None).await?;
14//! println!("{}", output.output);
15//! # Ok(())
16//! # }
17//! ```
18
19pub mod browser;
20mod client;
21mod error;
22mod types;
23
24pub use browser::BrowserSession;
25pub use client::{AgentKernel, AgentKernelBuilder, SandboxHandle};
26pub use error::{Error, Result};
27pub use types::{
28    AriaSnapshot, BatchCommand, BatchFileWriteResponse, BatchResult, BatchRunResponse,
29    BrowserEvent, CreateSandboxOptions, DetachedCommand, DetachedLogsResponse, DetachedStatus,
30    ExecOptions, ExtendTtlResponse, FileReadResponse, PageLink, PageResult, RunOptions, RunOutput,
31    SandboxInfo, SecurityProfile, SnapshotMeta, StreamEvent, TakeSnapshotOptions,
32};