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§
Sourcetype Output: AgentOutputT
type Output: AgentOutputT
The output type this agent produces
Required Methods§
Sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
Get the agent’s description