1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Agents a person adds (spec 3.3 §5.7, §10 K7): by asking or by hand, kept by the kernel,
//! hosted beside the primary agent, and changed, paused or removed from the web home and the
//! terminal.
//!
//! | Item | Spec |
//! |---|---|
//! | [`AgentRecord`], [`AgentDefinition`], [`AgentRecordState`], [`AgentOrigin`], [`AvatarColor`], [`ModelChoice`], [`AgentUses`], [`FileAccess`], [`ShellAccess`], [`WebAccess`], [`agent_id_for`], [`check_agent_id`] | §5.7 "The definition", "Its identity" |
//! | [`AgentStore`], [`InMemoryAgentStore`](crate::stores::InMemoryAgentStore), `SqliteAgentStore`, `PostgresAgentStore`, `RedisAgentStore`, `MongoAgentStore`, `FirestoreAgentStore`, `Neo4jAgentStore` | §5.7 "Where it lives", K7 |
//! | [`AgentFactory`], [`AgentAssessment`], [`AgentCeiling`], [`AgentChoices`], [`HostedAgent`], [`HostedClose`] | §5.7 "How an added agent runs", K7 |
//! | [`AgentCaller`], [`Presence`] | §5.7, §7.2, S-I18 |
//! | [`AGENT_CREATE_TOOL_NAME`] | §5.7 "The decision that adds an agent" |
//! | [`AgentAction`], [`AgentPreview`], [`EndedWork`], [`AgentChange`], [`AgentView`] | §5.7 "Changing an agent", "Pausing and removing" |
//! | [`Agents`], [`AgentsHandle`], [`AgentProposer`], [`AgentProposal`], [`AgentOutcome`], [`suggestion_request_id`] | §5.7, K7 |
//! | [`kernel_assessment`], [`area_limits`], [`over_ceiling`], [`changed_fields`], [`widened`] | §5.7 "Risk", S-I12 |
//!
//! The kernel keeps every agent in its [`AgentStore`] and changes it only through its agent
//! table, which records each change before it acts (S-I17, S-I18). Agent definitions are
//! never read from workspace files, a watched directory or `adk-server`'s agent registry.
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;
pub use AgentStore;
pub use AgentsParts;
pub use ;
pub use Targets;
/// The tool name of the inbox request that suggests an agent (spec 3.3 §5.7): a person
/// approves it as "Add this agent" or refuses it as "Don't add"; no standing rule, mode,
/// routine, chat or voice answers it yes (S-I11).
///
/// # Example
///
/// ```rust
/// assert_eq!(adk_kernel::agents::AGENT_CREATE_TOOL_NAME, "kernel:agent.create");
/// ```
pub const AGENT_CREATE_TOOL_NAME: &str = "kernel:agent.create";