Trait AgentDeriveT

Source
pub trait AgentDeriveT:
    Send
    + Sync
    + 'static
    + AgentExecutor
    + Debug {
    type Output: AgentOutputT;

    // Required methods
    fn description(&self) -> &'static str;
    fn output_schema(&self) -> Option<Value>;
    fn name(&self) -> &'static str;
    fn tools(&self) -> Vec<Box<dyn ToolT>>;
}
Expand description

Core trait that defines agent metadata and behavior This trait is implemented via the #[agent] macro

Required Associated Types§

Source

type Output: AgentOutputT

The output type this agent produces

Required Methods§

Source

fn description(&self) -> &'static str

Get the agent’s description

Source

fn output_schema(&self) -> Option<Value>

Source

fn name(&self) -> &'static str

Get the agent’s name

Source

fn tools(&self) -> Vec<Box<dyn ToolT>>

Get the tools available to this agent

Implementors§