This repository was archived by the owner on May 15, 2026. It is now read-only.
Commit 33fd972
committed
fix(huggingface): defer tool_call_end until arguments received
The sequence must be start → delta → end. For HuggingFace:
- tool-input-start emits tool_call_start
- tool-input-end is DEFERRED (no deltas yet, args not received)
- tool-call emits tool_call_delta + deferred tool_call_end
This ensures arguments appear before the end event.1 parent fd37472 commit 33fd972
2 files changed
Lines changed: 31 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
| 584 | + | |
584 | 585 | | |
585 | 586 | | |
586 | | - | |
| 587 | + | |
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| |||
596 | 597 | | |
597 | 598 | | |
598 | 599 | | |
599 | | - | |
600 | | - | |
| 600 | + | |
| 601 | + | |
601 | 602 | | |
602 | | - | |
603 | | - | |
| 603 | + | |
| 604 | + | |
604 | 605 | | |
605 | 606 | | |
606 | 607 | | |
607 | 608 | | |
608 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
609 | 614 | | |
610 | 615 | | |
611 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
| 393 | + | |
| 394 | + | |
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
| |||
414 | 416 | | |
415 | 417 | | |
416 | 418 | | |
417 | | - | |
418 | | - | |
419 | | - | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
420 | 429 | | |
421 | 430 | | |
422 | 431 | | |
| |||
435 | 444 | | |
436 | 445 | | |
437 | 446 | | |
438 | | - | |
| 447 | + | |
439 | 448 | | |
440 | 449 | | |
441 | 450 | | |
442 | 451 | | |
443 | 452 | | |
444 | 453 | | |
445 | 454 | | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
446 | 463 | | |
447 | 464 | | |
448 | 465 | | |
| |||
0 commit comments