pub struct Agent {
pub id: String,
pub capabilities: Vec<ModelCapability>,
pub system_prompt: Option<String>,
pub tool_names: Vec<String>,
pub max_iterations: usize,
}Expand description
Configuration for an agent.
Fields§
§id: String§capabilities: Vec<ModelCapability>Model capabilities that must be available for every model invocation.
system_prompt: Option<String>§tool_names: Vec<String>Names of the tools available to this agent.
max_iterations: usizeTrait Implementations§
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 Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnsafeUnpin for Agent
impl UnwindSafe for Agent
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