(
map: &mut serde_json::Map<String, Value>,
message: &Value,
)
| 248 | } |
| 249 | |
| 250 | pub(crate) fn append_tool_calls_metadata( |
| 251 | map: &mut serde_json::Map<String, Value>, |
| 252 | message: &Value, |
| 253 | ) { |
| 254 | if let Some(tool_calls) = message.get("tool_calls") { |
| 255 | map.insert("tool_calls".to_string(), tool_calls.clone()); |
| 256 | } |
| 257 | } |
| 258 | |
| 259 | #[derive(Clone, Copy)] |
| 260 | pub(crate) struct TranscriptLocation<'a> { |
no test coverage detected