| 7773 | if (item->is_custom || responses_tool_call_is_tool_search(tc, order)) return true; |
| 7774 | buf args = {0}; |
| 7775 | append_json_object_string(&args, tc->arguments); |
| 7776 | buf b = {0}; |
| 7777 | buf_printf(&b, |
| 7778 | "{\"type\":\"response.function_call_arguments.delta\"," |
| 7779 | "\"item_id\":\"%s\",\"output_index\":%d,\"delta\":", |
| 7780 | item->fc_id, item->output_index); |
| 7781 | buf_append(&b, args.ptr ? args.ptr : "\"\"", args.ptr ? args.len : 2); |
| 7782 | buf_putc(&b, '}'); |
| 7783 | bool ok = responses_sse_emit_event(fd, st, b.ptr); |
no test coverage detected