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, BackendCapabilities, BackendDescriptor, BackendDiscovery, BatchCommand,
29    BatchFileWriteResponse, BatchResult, BatchRunResponse, BrowserEvent, CreateSandboxOptions,
30    DetachedCommand, DetachedLogsResponse, DetachedStatus, DurableObject,
31    DurableObjectCreateRequest, DurableStore, DurableStoreCommandResult, DurableStoreCreateRequest,
32    DurableStoreExecuteResult, DurableStoreQueryResult, ExecOptions, ExtendTtlResponse,
33    FileReadResponse, Orchestration, OrchestrationCreateRequest, OrchestrationDefinition, PageLink,
34    PageResult, RunOptions, RunOutput, SandboxInfo, Schedule, ScheduleCreateRequest,
35    SecurityProfile, SnapshotMeta, StreamEvent, TakeSnapshotOptions,
36};