ToolkitSession

Trait ToolkitSession 

Source
pub trait ToolkitSession<TCtx>: Send + Sync {
    // Required methods
    fn system_prompt(&self) -> Option<String>;
    fn tools(&self) -> Vec<Arc<dyn AgentTool<TCtx>>>;
    fn close(self: Box<Self>) -> BoxFuture<'static, Result<(), BoxedError>>;
}
Expand description

ToolkitSession exposes dynamically resolved tools and system prompt data for a run session.

Required Methods§

Source

fn system_prompt(&self) -> Option<String>

Retrieve the current system prompt for the session, if available.

Source

fn tools(&self) -> Vec<Arc<dyn AgentTool<TCtx>>>

Retrieve the current set of tools that should be available to the session.

Source

fn close(self: Box<Self>) -> BoxFuture<'static, Result<(), BoxedError>>

Release any resources that were allocated for the session.

Implementors§