pub struct ArchitectAgent { /* private fields */ }Expand description
Architect agent - handles planning and DAG construction
Implementations§
Source§impl ArchitectAgent
impl ArchitectAgent
pub fn new(provider: Arc<GenAIProvider>, model: Option<String>) -> Self
pub fn build_planning_prompt( &self, node: &SRBNNode, ctx: &AgentContext, ) -> String
Trait Implementations§
Source§impl Agent for ArchitectAgent
impl Agent for ArchitectAgent
Source§fn process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node: &'life1 SRBNNode,
ctx: &'life2 AgentContext,
) -> Pin<Box<dyn Future<Output = Result<AgentMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn process<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
node: &'life1 SRBNNode,
ctx: &'life2 AgentContext,
) -> Pin<Box<dyn Future<Output = Result<AgentMessage>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Process a task and return a message
Source§fn can_handle(&self, node: &SRBNNode) -> bool
fn can_handle(&self, node: &SRBNNode) -> bool
Check if this agent can handle the given node
Source§fn build_prompt(&self, node: &SRBNNode, ctx: &AgentContext) -> String
fn build_prompt(&self, node: &SRBNNode, ctx: &AgentContext) -> String
Build the prompt for this agent (for logging)
Auto Trait Implementations§
impl Freeze for ArchitectAgent
impl !RefUnwindSafe for ArchitectAgent
impl Send for ArchitectAgent
impl Sync for ArchitectAgent
impl Unpin for ArchitectAgent
impl !UnwindSafe for ArchitectAgent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more