pub struct ToolCallingBlock {
pub convention: ToolCallingConvention,
pub markers: ToolCallingMarkers,
pub args_format: ToolCallingArgsFormat,
pub result_format: ToolCallingResultFormat,
}Expand description
Per-model tool-calling convention block carried inside a TokenizerMap.
Each convention value pins a specific argument layout, marker placement,
and result framing — see spec/PROTOCOL.md § “Tool-call calling
conventions in the map” for the normative table.
Fields§
§convention: ToolCallingConventionClosed enum naming the convention. New values are additive point
releases of the schema; per-deployment extension is not supported.
Use "custom" to opt out of the registry.
markers: ToolCallingMarkersStart/end marker token names. Both names MUST appear as keys in the
parent map’s special_tokens table.
args_format: ToolCallingArgsFormatHow tool-call arguments are packed inside the marker pair on the engine’s output side.
result_format: ToolCallingResultFormatHow tool results come back into the model’s input.
Trait Implementations§
Source§impl Clone for ToolCallingBlock
impl Clone for ToolCallingBlock
Source§fn clone(&self) -> ToolCallingBlock
fn clone(&self) -> ToolCallingBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ToolCallingBlock
impl Debug for ToolCallingBlock
Source§impl<'de> Deserialize<'de> for ToolCallingBlock
impl<'de> Deserialize<'de> for ToolCallingBlock
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 ToolCallingBlock
impl RefUnwindSafe for ToolCallingBlock
impl Send for ToolCallingBlock
impl Sync for ToolCallingBlock
impl Unpin for ToolCallingBlock
impl UnsafeUnpin for ToolCallingBlock
impl UnwindSafe for ToolCallingBlock
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