pub struct AgentOptions {
pub initial_state: Option<InitialState>,
pub convert_to_llm: Option<ConvertToLlm>,
pub stream_fn: Option<StreamFn>,
pub thinking_level: Option<ThinkingLevel>,
pub queue_mode: Option<QueueMode>,
pub follow_up_mode: Option<QueueMode>,
pub tool_execution: Option<ToolExecutionMode>,
pub session_id: Option<String>,
}Expand description
Options for constructing an Agent. Mirrors TS AgentOptions. Only
stream_fn is required (or a default must have been installed process-wide
via crate::stream_fn::set_default_stream_fn).
Fields§
§initial_state: Option<InitialState>§convert_to_llm: Option<ConvertToLlm>§stream_fn: Option<StreamFn>§thinking_level: Option<ThinkingLevel>§queue_mode: Option<QueueMode>§follow_up_mode: Option<QueueMode>§tool_execution: Option<ToolExecutionMode>§session_id: Option<String>Trait Implementations§
Source§impl Default for AgentOptions
impl Default for AgentOptions
Source§fn default() -> AgentOptions
fn default() -> AgentOptions
Returns the “default value” for a type. Read more
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