Function
tool_call_line
(call_id: u64, tool_call: &ToolCall)
Source from the content-addressed store, hash-verified
| 126 | } |
| 127 | |
| 128 | fn tool_call_line(call_id: u64, tool_call: &ToolCall) -> String { |
| 129 | let args = serde_json::Value::Object(tool_call.arguments.clone()); |
| 130 | let args = serde_json::to_string_pretty(&args).unwrap_or_else(|_| args.to_string()); |
| 131 | format!( |
| 132 | "[debug llm #{call_id} tool-call] id={} name={} args=\n{}", |
| 133 | tool_call.id, |
| 134 | tool_call.name, |
| 135 | debug_preview(&args) |
| 136 | ) |
| 137 | } |
| 138 | |
| 139 | fn done_line( |
| 140 | call_id: u64, |