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 config;
32#[doc(hidden)]
33pub mod config_writer;
34#[doc(hidden)]
35pub mod difflib;
36#[doc(hidden)]
37pub mod escape;
38#[doc(hidden)]
39pub mod guardrails;
40#[doc(hidden)]
41pub mod limits;
42#[doc(hidden)]
43pub mod mcp;
44#[doc(hidden)]
45pub mod memory;
46#[doc(hidden)]
47pub mod observability;
48#[doc(hidden)]
49pub mod otel;
50#[doc(hidden)]
51pub mod pricing;
52#[doc(hidden)]
53pub mod prompt;
54#[doc(hidden)]
55pub mod provider;
56#[doc(hidden)]
57pub mod pyjson;
58#[doc(hidden)]
59pub mod router;
60#[doc(hidden)]
61pub mod secrets;
62#[doc(hidden)]
63pub mod session;
64#[doc(hidden)]
65pub mod skills;
66#[doc(hidden)]
67pub mod specialty_turn;
68#[doc(hidden)]
69pub mod subagent;
70#[doc(hidden)]
71pub mod tools;
72#[doc(hidden)]
73pub mod trust;
74#[doc(hidden)]
75pub mod turn;
76#[doc(hidden)]
77pub mod types;
78#[doc(hidden)]
79pub mod vault;
80#[doc(hidden)]
81pub mod worktree;