pub struct AgentOptionsBuilder { /* private fields */ }Implementations§
Source§impl AgentOptionsBuilder
impl AgentOptionsBuilder
pub fn new(model: Model) -> Self
pub fn initial_state(self, initial_state: AgentState) -> Self
pub fn system_prompt(self, system_prompt: impl Into<String>) -> Self
pub fn thinking_level(self, thinking_level: ModelThinkingLevel) -> Self
pub fn tool(self, tool: DynAgentTool) -> Self
pub fn tools(self, tools: impl IntoIterator<Item = DynAgentTool>) -> Self
pub fn message(self, message: AgentMessage) -> Self
pub fn messages(self, messages: impl IntoIterator<Item = AgentMessage>) -> Self
pub fn convert_to_llm(self, convert_to_llm: ConvertToLlmFn) -> Self
pub fn transform_context(self, transform_context: TransformContextFn) -> Self
pub fn stream_fn(self, stream_fn: StreamFn) -> Self
pub fn prepare_next_turn( self, prepare_next_turn: AgentPrepareNextTurnFn, ) -> Self
pub fn before_tool_call(self, before_tool_call: BeforeToolCallFn) -> Self
pub fn after_tool_call(self, after_tool_call: AfterToolCallFn) -> Self
pub fn session_id(self, session_id: impl Into<String>) -> Self
pub fn options(self, options: SimpleStreamOptions) -> Self
pub fn steering_mode(self, steering_mode: QueueMode) -> Self
pub fn follow_up_mode(self, follow_up_mode: QueueMode) -> Self
pub fn tool_execution(self, tool_execution: ToolExecutionMode) -> Self
pub fn build(self) -> AgentOptions
Auto Trait Implementations§
impl !RefUnwindSafe for AgentOptionsBuilder
impl !UnwindSafe for AgentOptionsBuilder
impl Freeze for AgentOptionsBuilder
impl Send for AgentOptionsBuilder
impl Sync for AgentOptionsBuilder
impl Unpin for AgentOptionsBuilder
impl UnsafeUnpin for AgentOptionsBuilder
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