Commit bac6922
committed
fix: deduplicate STATE_DELTA logging and add log_state_changes toggle
- Remove inline STATE_DELTA logging from after_tool_callback to avoid
duplicate rows (on_state_change_callback is the canonical path)
- Add event ID dedup guard in Runner._exec_with_plugin to prevent
the same event from triggering on_state_change_callback twice
- Add log_state_changes config flag (default False) to
BigQueryLoggerConfig for explicit opt-in to STATE_DELTA logging
- Update tests to verify dedup, toggle on, and toggle off behavior1 parent 87c46a7 commit bac6922
3 files changed
Lines changed: 39 additions & 33 deletions
File tree
- src/google/adk
- plugins
- tests/unittests/plugins
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| 413 | + | |
| 414 | + | |
413 | 415 | | |
414 | 416 | | |
415 | 417 | | |
| |||
2183 | 2185 | | |
2184 | 2186 | | |
2185 | 2187 | | |
| 2188 | + | |
| 2189 | + | |
2186 | 2190 | | |
2187 | 2191 | | |
2188 | 2192 | | |
| |||
2510 | 2514 | | |
2511 | 2515 | | |
2512 | 2516 | | |
2513 | | - | |
2514 | | - | |
2515 | | - | |
2516 | | - | |
2517 | | - | |
2518 | | - | |
2519 | | - | |
2520 | 2517 | | |
2521 | 2518 | | |
2522 | 2519 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
774 | 774 | | |
775 | 775 | | |
776 | 776 | | |
| 777 | + | |
777 | 778 | | |
778 | 779 | | |
779 | 780 | | |
| |||
845 | 846 | | |
846 | 847 | | |
847 | 848 | | |
848 | | - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
849 | 854 | | |
850 | 855 | | |
851 | 856 | | |
| |||
Lines changed: 29 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1560 | 1560 | | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | | - | |
| 1563 | + | |
1564 | 1564 | | |
1565 | 1565 | | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
1566 | 1571 | | |
1567 | 1572 | | |
1568 | 1573 | | |
| |||
1581 | 1586 | | |
1582 | 1587 | | |
1583 | 1588 | | |
1584 | | - | |
1585 | | - | |
1586 | | - | |
1587 | | - | |
1588 | | - | |
1589 | | - | |
1590 | | - | |
1591 | | - | |
1592 | | - | |
1593 | | - | |
1594 | | - | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
1598 | | - | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
1599 | 1593 | | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
| 1594 | + | |
1609 | 1595 | | |
1610 | 1596 | | |
1611 | 1597 | | |
| |||
1615 | 1601 | | |
1616 | 1602 | | |
1617 | 1603 | | |
| 1604 | + | |
1618 | 1605 | | |
1619 | 1606 | | |
1620 | 1607 | | |
| |||
1632 | 1619 | | |
1633 | 1620 | | |
1634 | 1621 | | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
1635 | 1639 | | |
1636 | 1640 | | |
1637 | 1641 | | |
| |||
0 commit comments