Skip to main content

Module agent

Module agent 

Source
Expand description

The vocabulary an agent application needs and a conversation does not.

A run made of steps, the permission it asks for, and what it costs.

Re-exports§

pub use approval::AlwaysScope;
pub use approval::ApprovalDecision;
pub use approval::ApprovalEvent;
pub use approval::ApprovalPrompt;
pub use approval::ApprovalStatus;
pub use cost::Basis;
pub use cost::ContextGauge;
pub use cost::CostLine;
pub use cost::CostMeter;
pub use cost::LastVerified;
pub use cost::Limit;
pub use cost::Quantity;
pub use cost::Reading;
pub use offering_catalog::OfferingCatalog;
pub use offering_catalog::OfferingIdentity;
pub use offering_catalog::OfferingSource;
pub use offering_catalog::OfferingSourceState;
pub use offering_catalog::SearchableOffering;
pub use permission::PermissionAction;
pub use permission::PermissionChange;
pub use permission::PermissionEntry;
pub use permission::PermissionMatrix;
pub use permission::PermissionSource;
pub use permission::PermissionState;
pub use permission::PermissionSubject;
pub use server_list::Catalog;
pub use server_list::Offering;
pub use server_list::OfferingKind;
pub use server_list::ServerEntry;
pub use server_list::ServerList;
pub use server_list::ServerState;
pub use step_list::RunLength;
pub use step_list::Step;
pub use step_list::StepList;
pub use step_list::StepState;
pub use thinking::Reasoning;
pub use thinking::ThinkingBlock;
pub use tool_call::Elapsed;
pub use tool_call::ToolBody;
pub use tool_call::ToolCallCard;
pub use tool_call::ToolCallState;
pub use tool_call::ToolOutput;

Modules§

approval
A request for permission to do one specific thing.
cost
What a run has cost, and how much of a context window it has used.
offering_catalog
Searchable offerings aggregated across caller-owned server sources.
permission
What is currently permitted, across a set of subjects and actions.
server_list
What is connected, and what each connection offers.
step_list
An ordered run of steps, each with its own state and its own body.
thinking
Model reasoning, collapsed by default.
tool_call
One invocation of one tool: what was called, with what, what came back, and how long it took.