pub struct StopConfig {
pub max_iterations: usize,
pub max_reasoning_tokens: Option<u32>,
pub max_total_output_tokens: Option<u32>,
pub max_total_reasoning_tokens: Option<u32>,
}Expand description
终止条件配置 — 从 LLMNode 提取的运行时策略。
由 PostLLMGuard 持有,LLMNode 完全不知道这些概念。
Fields§
§max_iterations: usize最大迭代轮次
max_reasoning_tokens: Option<u32>单轮推理 Token 上限
max_total_output_tokens: Option<u32>总输出 Token 上限
max_total_reasoning_tokens: Option<u32>总推理 Token 上限
Implementations§
Source§impl StopConfig
impl StopConfig
pub fn from_tool_use_config(config: &ToolUseConfig) -> Self
Trait Implementations§
Source§impl Clone for StopConfig
impl Clone for StopConfig
Source§fn clone(&self) -> StopConfig
fn clone(&self) -> StopConfig
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 moreAuto Trait Implementations§
impl Freeze for StopConfig
impl RefUnwindSafe for StopConfig
impl Send for StopConfig
impl Sync for StopConfig
impl Unpin for StopConfig
impl UnsafeUnpin for StopConfig
impl UnwindSafe for StopConfig
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