Skip to main content

af_agent/
lib.rs

1//! Stable Agent extension contracts: model, tools, inbox, and trusted plugins.
2//! The single executable loop lives in `af-agent-runtime`.
3
4pub mod context;
5pub mod inbox;
6pub mod model;
7pub mod plugin;
8pub mod prompt;
9pub mod tool;
10
11pub use af_agent_session::InteractionResolution;
12pub use af_context::RequestContext;
13pub use context::{ContextAuthority, ContextContribution, ContextContributor, ContextRequest};
14pub use inbox::{Inbox, InboxError, InboxItem};
15pub use model::ChatModel;
16pub use plugin::{
17    mount_plugins, resolve_plugin_order, AgentPlugin, AgentRegistrar, Hook, HookDecision,
18    MountedPlugins, PluginCatalog, PluginError, PluginLease, PluginManifest, PluginMountContext,
19    PluginPermission, ToolExecutionFuture,
20};
21pub use prompt::{PromptAuthority, PromptRegistry, PromptSection};
22pub use tool::{
23    model_tool_name, support as tool_support, validate_json_schema,
24    validate_json_schema_definition, validate_json_schema_value, CancellationToken, Tool,
25    ToolConcurrency, ToolExecutionContext, ToolMeta, ToolRegistry, ToolSurface,
26};