pub struct AgentConfig {
pub agent_id: AgentId,
pub model: String,
pub temperature: f32,
pub max_iterations: i32,
pub system_prompt: Option<String>,
}Expand description
Agent 配置
Fields§
§agent_id: AgentId§model: String§temperature: f32§max_iterations: i32§system_prompt: Option<String>Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentConfig
impl Debug for AgentConfig
Source§impl Default for AgentConfig
impl Default for AgentConfig
Source§impl From<&AgentConfig> for SessionConfig
impl From<&AgentConfig> for SessionConfig
Source§fn from(config: &AgentConfig) -> Self
fn from(config: &AgentConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnsafeUnpin for AgentConfig
impl UnwindSafe for AgentConfig
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