pub struct AgentSchema {
pub agent_type: AgentType,
pub model: Option<String>,
pub instruction: String,
pub tools: Vec<String>,
pub sub_agents: Vec<String>,
pub position: Position,
pub max_iterations: Option<u32>,
pub routes: Vec<Route>,
}Expand description
Agent definition schema
Fields§
§agent_type: AgentType§model: Option<String>§instruction: String§tools: Vec<String>§sub_agents: Vec<String>§position: Position§max_iterations: Option<u32>§routes: Vec<Route>For router agents: condition -> target agent mapping
Implementations§
Source§impl AgentSchema
impl AgentSchema
Trait Implementations§
Source§impl Clone for AgentSchema
impl Clone for AgentSchema
Source§fn clone(&self) -> AgentSchema
fn clone(&self) -> AgentSchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentSchema
impl Debug for AgentSchema
Source§impl<'de> Deserialize<'de> for AgentSchema
impl<'de> Deserialize<'de> for AgentSchema
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AgentSchema
impl RefUnwindSafe for AgentSchema
impl Send for AgentSchema
impl Sync for AgentSchema
impl Unpin for AgentSchema
impl UnwindSafe for AgentSchema
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