pub struct AgentNodeConfig {
pub name: String,
pub system_prompt: String,
pub tools: Vec<String>,
pub max_steps: usize,
pub temperature: f32,
pub max_tokens: Option<usize>,
pub structured_output: bool,
pub instructions: Vec<String>,
}Expand description
Configuration for an agent node
Fields§
§name: StringAgent name
system_prompt: StringSystem prompt for the agent
tools: Vec<String>Available tools
max_steps: usizeMaximum number of reasoning steps
temperature: f32Temperature for generation
max_tokens: Option<usize>Maximum tokens for generation
structured_output: boolWhether to use structured output
instructions: Vec<String>Custom instructions
Trait Implementations§
Source§impl Clone for AgentNodeConfig
impl Clone for AgentNodeConfig
Source§fn clone(&self) -> AgentNodeConfig
fn clone(&self) -> AgentNodeConfig
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 AgentNodeConfig
impl Debug for AgentNodeConfig
Source§impl Default for AgentNodeConfig
impl Default for AgentNodeConfig
Source§impl<'de> Deserialize<'de> for AgentNodeConfig
impl<'de> Deserialize<'de> for AgentNodeConfig
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 AgentNodeConfig
impl RefUnwindSafe for AgentNodeConfig
impl Send for AgentNodeConfig
impl Sync for AgentNodeConfig
impl Unpin for AgentNodeConfig
impl UnwindSafe for AgentNodeConfig
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