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#[cfg(feature = "agent86ui")]
24#[doc(hidden)]
25pub mod agent86ui;
26#[doc(hidden)]
27pub mod agents_def;
28#[doc(hidden)]
29pub mod approval;
30#[doc(hidden)]
31pub mod ask;
32#[doc(hidden)]
33pub mod broken_json;
34#[doc(hidden)]
35pub mod config;
36#[doc(hidden)]
37pub mod config_writer;
38#[doc(hidden)]
39pub mod difflib;
40#[doc(hidden)]
41pub mod escape;
42#[doc(hidden)]
43pub mod guardrails;
44#[doc(hidden)]
45pub mod limits;
46#[doc(hidden)]
47pub mod mcp;
48#[doc(hidden)]
49pub mod memory;
50#[doc(hidden)]
51pub mod observability;
52#[doc(hidden)]
53pub mod otel;
54#[doc(hidden)]
55pub mod pricing;
56#[doc(hidden)]
57pub mod prompt;
58#[doc(hidden)]
59pub mod provider;
60#[doc(hidden)]
61pub mod pyjson;
62#[doc(hidden)]
63pub mod router;
64#[doc(hidden)]
65pub mod secrets;
66#[doc(hidden)]
67pub mod session;
68#[doc(hidden)]
69pub mod skills;
70#[doc(hidden)]
71pub mod specialty_turn;
72#[doc(hidden)]
73pub mod stall;
74#[doc(hidden)]
75pub mod subagent;
76#[doc(hidden)]
77pub mod tools;
78#[doc(hidden)]
79pub mod trust;
80#[doc(hidden)]
81pub mod turn;
82#[doc(hidden)]
83pub mod types;
84#[doc(hidden)]
85pub mod vault;
86#[doc(hidden)]
87pub mod verify;
88#[doc(hidden)]
89pub mod worktree;