pub struct ActuatorAgent { /* private fields */ }Expand description
Actuator agent - handles code generation
Implementations§
Source§impl ActuatorAgent
impl ActuatorAgent
pub fn new(provider: Arc<GenAIProvider>, model: Option<String>) -> Self
pub fn build_coding_prompt(&self, node: &SRBNNode, ctx: &AgentContext) -> String
Trait Implementations§
Source§impl Agent for ActuatorAgent
impl Agent for ActuatorAgent
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 ActuatorAgent
impl !RefUnwindSafe for ActuatorAgent
impl Send for ActuatorAgent
impl Sync for ActuatorAgent
impl Unpin for ActuatorAgent
impl !UnwindSafe for ActuatorAgent
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