pub enum ToolChoice {
None,
Auto,
CallOne,
Force(String),
}Expand description
Tool choice settings.
Variants§
None
Do not use tools.
Auto
LLM decide whether to call any of provided tools or not.
CallOne
LLM must use any one of the provided tools.
Force(String)
LLM must call specified tool (name).
Auto Trait Implementations§
impl Freeze for ToolChoice
impl RefUnwindSafe for ToolChoice
impl Send for ToolChoice
impl Sync for ToolChoice
impl Unpin for ToolChoice
impl UnwindSafe for ToolChoice
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