pub struct WorkflowAgentConfig {
pub name: String,
pub description: String,
pub sub_agents: Vec<Arc<dyn Agent>>,
pub edges: Vec<Edge>,
pub before_agent_callbacks: Vec<BeforeAgentCallback>,
pub after_agent_callbacks: Vec<AfterAgentCallback>,
}Expand description
The configuration for creating a new workflow agent.
Fields§
§name: StringThe agent’s (and workflow’s) name.
description: StringThe agent’s description.
sub_agents: Vec<Arc<dyn Agent>>The child agents this agent can delegate to.
edges: Vec<Edge>The workflow graph’s edges.
before_agent_callbacks: Vec<BeforeAgentCallback>Called sequentially before the agent starts its run.
after_agent_callbacks: Vec<AfterAgentCallback>Called sequentially after the agent completes its run.
Trait Implementations§
Source§impl Clone for WorkflowAgentConfig
impl Clone for WorkflowAgentConfig
Auto Trait Implementations§
impl !RefUnwindSafe for WorkflowAgentConfig
impl !UnwindSafe for WorkflowAgentConfig
impl Forget for WorkflowAgentConfig
impl Freeze for WorkflowAgentConfig
impl Move for WorkflowAgentConfig
impl Send for WorkflowAgentConfig
impl Sync for WorkflowAgentConfig
impl Unpin for WorkflowAgentConfig
impl UnsafeUnpin for WorkflowAgentConfig
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