Skip to main content

Crate yapi_agent

Crate yapi_agent 

Source
Expand description

Agent loop with tool execution, steering and follow-up queues, and events. An internal library of yapi, with no stable API.

Re-exports§

pub use hooks::AgentHooks;
pub use run::AgentContext;
pub use run::LoopConfig;
pub use run::StreamFn;
pub use run::ToolCallOutcome;
pub use run::ToolCallScope;
pub use run::run;
pub use run::run_continue;
pub use run::run_tool_call;
pub use tool::ExecutionMode;
pub use tool::Tool;
pub use tool::UpdateSink;

Modules§

hooks
Points where the session steers the loop.
run
The agent loop: stream a response, run its tool calls, repeat.
tool
Tools the agent can call.