pub struct AgentDefinition {
pub name: String,
pub description: String,
pub capabilities: Vec<ModelCapability>,
pub instructions: String,
pub tools: Vec<String>,
pub max_iterations: usize,
}Fields§
§name: String§description: String§capabilities: Vec<ModelCapability>§instructions: String§tools: Vec<String>§max_iterations: usizeTrait Implementations§
Source§impl Clone for AgentDefinition
impl Clone for AgentDefinition
Source§impl Debug for AgentDefinition
impl Debug for AgentDefinition
Source§impl<'de> Deserialize<'de> for AgentDefinition
impl<'de> Deserialize<'de> for AgentDefinition
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
Source§impl From<&AgentDefinition> for Agent
impl From<&AgentDefinition> for Agent
Source§fn from(definition: &AgentDefinition) -> Self
fn from(definition: &AgentDefinition) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentDefinition
impl RefUnwindSafe for AgentDefinition
impl Send for AgentDefinition
impl Sync for AgentDefinition
impl Unpin for AgentDefinition
impl UnsafeUnpin for AgentDefinition
impl UnwindSafe for AgentDefinition
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