pub trait SpecialFunctions: Debug {
// Required methods
fn get_attributes_from_agent(&self) -> &BasicAgent;
fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
fact_sheet: &'life1 mut FactSheet,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Defines the interface for agents to implement special functions.
§Methods
get_attributes_from_agent
: Returns a reference to the agent’s attributes.execute
: Executes the agent’s workflow using a mutable reference to theFactSheet
.
Required Methods§
fn get_attributes_from_agent(&self) -> &BasicAgent
fn execute<'life0, 'life1, 'async_trait>(
&'life0 mut self,
fact_sheet: &'life1 mut FactSheet,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Implementors§
impl SpecialFunctions for AgentSolutionArchitect
impl SpecialFunctions for AgentBackendDeveloper
Implementation of special functions for AgentBackendDeveloper