Skip to main content

agent86_core/
lib.rs

1//! The agent behind agent86: a safe agent runtime you can embed.
2//!
3//! [`sdk`] is the embedding API, and the only module with a stability promise:
4//! [`sdk::Agent::builder`] assembles the harness from parts the caller passes in,
5//! with the workspace jail, the approval gate, the guardrails, the sandbox, and
6//! the secret vault's redaction already in place.
7//!
8//! Every other module is public because the `agent86` binary (the terminal
9//! interface, the REPL, `run`, and the ACP server) is built on them. They carry no
10//! stability promise and are hidden from these docs; the binary builds this crate
11//! from the same checkout.
12
13pub mod sdk;
14
15/// Compiles the README's example (shown on crates.io) as a doctest, so it
16/// cannot drift from the API.
17#[cfg(doctest)]
18#[doc = include_str!("../README.md")]
19pub struct ReadmeDoctests;
20
21#[doc(hidden)]
22pub mod agent;
23#[doc(hidden)]
24pub mod agents_def;
25#[doc(hidden)]
26pub mod approval;
27#[doc(hidden)]
28pub mod config;
29#[doc(hidden)]
30pub mod config_writer;
31#[doc(hidden)]
32pub mod difflib;
33#[doc(hidden)]
34pub mod escape;
35#[doc(hidden)]
36pub mod guardrails;
37#[doc(hidden)]
38pub mod limits;
39#[doc(hidden)]
40pub mod mcp;
41#[doc(hidden)]
42pub mod memory;
43#[doc(hidden)]
44pub mod observability;
45#[doc(hidden)]
46pub mod otel;
47#[doc(hidden)]
48pub mod pricing;
49#[doc(hidden)]
50pub mod prompt;
51#[doc(hidden)]
52pub mod provider;
53#[doc(hidden)]
54pub mod pyjson;
55#[doc(hidden)]
56pub mod router;
57#[doc(hidden)]
58pub mod secrets;
59#[doc(hidden)]
60pub mod session;
61#[doc(hidden)]
62pub mod skills;
63#[doc(hidden)]
64pub mod specialty_turn;
65#[doc(hidden)]
66pub mod subagent;
67#[doc(hidden)]
68pub mod tools;
69#[doc(hidden)]
70pub mod trust;
71#[doc(hidden)]
72pub mod turn;
73#[doc(hidden)]
74pub mod types;
75#[doc(hidden)]
76pub mod vault;
77#[doc(hidden)]
78pub mod worktree;