pub enum ToolsMode {
Native,
Prompt,
Unknown,
}Expand description
How turns pass tools to the model.
Variants§
Native
The server’s structured tools / tool_calls.
Prompt
Tools described in the system prompt; calls parsed from the reply text.
Unknown
Not known yet: native first, switching to prompt mode if the server rejects tools.
Trait Implementations§
impl Copy for ToolsMode
Source§impl<'de> Deserialize<'de> for ToolsMode
impl<'de> Deserialize<'de> for ToolsMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToolsMode
impl StructuralPartialEq for ToolsMode
Auto Trait Implementations§
impl Forget for ToolsMode
impl Freeze for ToolsMode
impl Move for ToolsMode
impl RefUnwindSafe for ToolsMode
impl Send for ToolsMode
impl Sync for ToolsMode
impl Unpin for ToolsMode
impl UnsafeUnpin for ToolsMode
impl UnwindSafe for ToolsMode
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