pub struct LoopConfig {
pub model: Model,
pub thinking_level: ThinkingLevel,
pub stream: StreamFn,
pub options: StreamOptions,
pub tool_execution: ExecutionMode,
}Expand description
How the loop calls the model.
Fields§
§model: ModelThe model to call.
thinking_level: ThinkingLevelThinking level. Off disables thinking.
stream: StreamFnStarts provider requests.
options: StreamOptionsOptions for every request. Their cancel aborts the run.
tool_execution: ExecutionModeForces sequential tool execution.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LoopConfig
impl !UnwindSafe for LoopConfig
impl Freeze for LoopConfig
impl Send for LoopConfig
impl Sync for LoopConfig
impl Unpin for LoopConfig
impl UnsafeUnpin for LoopConfig
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