pub struct ToolCallConfig {
pub format: ToolCallParserType,
pub json: JsonParserConfig,
}Expand description
Configuration for parsing tool calls with different formats
Fields§
§format: ToolCallParserTypeThe format type for tool calls
json: JsonParserConfigThe config for the JSON parser
Implementations§
Source§impl ToolCallConfig
impl ToolCallConfig
Sourcepub fn hermes() -> Self
pub fn hermes() -> Self
Default configuration for hermes tool calls <tool_call>{“name”: “get_weather”, “arguments”: {“location”: “San Francisco, CA”, “unit”: “fahrenheit”}}\n</tool_call>
Sourcepub fn nemotron_deci() -> Self
pub fn nemotron_deci() -> Self
Default configuration for nemotron tool calls
pub fn llama3_json() -> Self
pub fn mistral() -> Self
pub fn phi4() -> Self
pub fn pythonic() -> Self
pub fn harmony() -> Self
pub fn deepseek_v3_1() -> Self
Trait Implementations§
Source§impl Clone for ToolCallConfig
impl Clone for ToolCallConfig
Source§fn clone(&self) -> ToolCallConfig
fn clone(&self) -> ToolCallConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ToolCallConfig
impl Debug for ToolCallConfig
Source§impl Default for ToolCallConfig
impl Default for ToolCallConfig
Source§impl<'de> Deserialize<'de> for ToolCallConfig
impl<'de> Deserialize<'de> for ToolCallConfig
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
Auto Trait Implementations§
impl Freeze for ToolCallConfig
impl RefUnwindSafe for ToolCallConfig
impl Send for ToolCallConfig
impl Sync for ToolCallConfig
impl Unpin for ToolCallConfig
impl UnwindSafe for ToolCallConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more