pub struct AgentOptions {
pub system_prompt: String,
pub model: Model,
pub thinking_level: ThinkingLevel,
pub tools: Vec<Arc<dyn AgentTool>>,
pub messages: Vec<AgentMessage>,
pub stream: Arc<dyn StreamFn>,
pub convert_to_llm: ConvertToLlm,
pub hooks: AgentHooks,
pub steering_mode: QueueMode,
pub follow_up_mode: QueueMode,
pub stream_options: StreamOptions,
pub tool_execution: ToolExecution,
}Expand description
Construction options.
Fields§
§system_prompt: StringInitial system prompt (becomes the leading system message).
model: ModelInitial model.
thinking_level: ThinkingLevelInitial thinking level.
tools: Vec<Arc<dyn AgentTool>>Initial tools.
messages: Vec<AgentMessage>Initial transcript.
stream: Arc<dyn StreamFn>Provider dispatch.
convert_to_llm: ConvertToLlmRequest-boundary conversion.
hooks: AgentHooksHooks.
steering_mode: QueueModeSteering drain mode.
follow_up_mode: QueueModeFollow-up drain mode.
stream_options: StreamOptionsBase stream options (sessionId, transport, budgets, retry caps).
tool_execution: ToolExecutionBatch scheduling.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentOptions
impl !UnwindSafe for AgentOptions
impl Freeze for AgentOptions
impl Send for AgentOptions
impl Sync for AgentOptions
impl Unpin for AgentOptions
impl UnsafeUnpin for AgentOptions
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