pub struct AgentLoopConfig {
pub model: Model,
pub options: SimpleStreamOptions,
pub convert_to_llm: ConvertToLlmFn,
pub transform_context: Option<TransformContextFn>,
pub should_stop_after_turn: Option<ShouldStopAfterTurnFn>,
pub prepare_next_turn: Option<PrepareNextTurnFn>,
pub get_steering_messages: Option<MessageQueueFn>,
pub get_follow_up_messages: Option<MessageQueueFn>,
pub before_tool_call: Option<BeforeToolCallFn>,
pub after_tool_call: Option<AfterToolCallFn>,
pub tool_execution: ToolExecutionMode,
}Fields§
§model: Model§options: SimpleStreamOptions§convert_to_llm: ConvertToLlmFn§transform_context: Option<TransformContextFn>§should_stop_after_turn: Option<ShouldStopAfterTurnFn>§prepare_next_turn: Option<PrepareNextTurnFn>§get_steering_messages: Option<MessageQueueFn>§get_follow_up_messages: Option<MessageQueueFn>§before_tool_call: Option<BeforeToolCallFn>§after_tool_call: Option<AfterToolCallFn>§tool_execution: ToolExecutionModeImplementations§
Trait Implementations§
Source§impl Clone for AgentLoopConfig
impl Clone for AgentLoopConfig
Source§fn clone(&self) -> AgentLoopConfig
fn clone(&self) -> AgentLoopConfig
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 !RefUnwindSafe for AgentLoopConfig
impl !UnwindSafe for AgentLoopConfig
impl Freeze for AgentLoopConfig
impl Send for AgentLoopConfig
impl Sync for AgentLoopConfig
impl Unpin for AgentLoopConfig
impl UnsafeUnpin for AgentLoopConfig
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