Skip to main content

TOOL_FORMAT

Constant TOOL_FORMAT 

Source
pub const TOOL_FORMAT: &str = "## Tool format\nTo call a tool, respond with a JSON object:\n{\"name\": \"tool_name\", \"arguments\": { ... }}\n\nWarning: Do not wrap tool calls in a code block or any markdown formatting. Emit the tool call as raw, unformatted JSON only \u{2014} no backticks, no language tags, no surrounding text.\n\nINCORRECT (do not do this):\n```json\n    {\"name\": \"tool_name\", \"arguments\": {...}}\n```\n\nCORRECT:{\"name\": \"tool_name\", \"arguments\": {...}}\n";