(output: &serde_json::Value)
| 738 | |
| 739 | #[inline] |
| 740 | fn is_tool_calls_required(output: &serde_json::Value) -> bool { |
| 741 | output |
| 742 | .get("type") |
| 743 | .and_then(|v| v.as_str()) |
| 744 | .is_some_and(|kind| kind == "tool_calls_required") |
| 745 | } |
| 746 | |
| 747 | #[inline] |
| 748 | fn stream_event_name(event: &StreamEvent) -> &'static str { |