(s string)
| 630 | slots[tc.Index] = slot |
| 631 | *order = append(*order, tc.Index) |
| 632 | } |
| 633 | // id/name usually arrive in the first fragment, but updating on any |
| 634 | // non-empty value tolerates a provider that ships them later; |
| 635 | // otherwise an empty tool_call_id round-trips into history and the |
| 636 | // next /v1 request 400s on the unpaired tool message. |
| 637 | if tc.ID != "" { |
| 638 | slot.id = tc.ID |
| 639 | } |
| 640 | if tc.Function.Name != "" { |
no outgoing calls
no test coverage detected