pub struct ReactConfig {
pub enable_react_mode: bool,
pub max_iterations: usize,
pub tool_timeout_seconds: u64,
pub exploration_depth: ExplorationDepth,
pub verbose_logging: bool,
pub model_name: String,
pub max_tokens: u32,
pub temperature: f32,
}
Expand description
ReAct模式配置
Fields§
§enable_react_mode: bool
是否启用ReAct模式
max_iterations: usize
最大探索迭代次数
tool_timeout_seconds: u64
工具调用超时时间(秒)
exploration_depth: ExplorationDepth
探索深度级别
verbose_logging: bool
是否启用详细日志
model_name: String
LLM模型名称
max_tokens: u32
最大token数
temperature: f32
温度参数
Trait Implementations§
Source§impl Clone for ReactConfig
impl Clone for ReactConfig
Source§fn clone(&self) -> ReactConfig
fn clone(&self) -> ReactConfig
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 ReactConfig
impl Debug for ReactConfig
Source§impl Default for ReactConfig
impl Default for ReactConfig
Source§impl<'de> Deserialize<'de> for ReactConfig
impl<'de> Deserialize<'de> for ReactConfig
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 ReactConfig
impl RefUnwindSafe for ReactConfig
impl Send for ReactConfig
impl Sync for ReactConfig
impl Unpin for ReactConfig
impl UnwindSafe for ReactConfig
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