Commit aa2c196
fix: Restore API surface compatibility for batch_processor, write_client, write_stream, and on_state_change_callback
Restore class-level `= None` attributes and `__getattribute__` override
for batch_processor, write_client, and write_stream to preserve the
public API surface. The properties were renamed to `_*_prop` (private)
with the `__getattribute__` routing access to them.
Add deprecated `on_state_change_callback` stub for backward compat.
This method is never invoked by the framework but retaining it prevents
breaking subclasses that may override it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6e5046b commit aa2c196
File tree
2 files changed
+75
-13
lines changed- src/google/adk/plugins
- tests/unittests/plugins
2 files changed
+75
-13
lines changedLines changed: 47 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1595 | 1620 | | |
1596 | | - | |
| 1621 | + | |
1597 | 1622 | | |
1598 | 1623 | | |
1599 | 1624 | | |
| |||
1605 | 1630 | | |
1606 | 1631 | | |
1607 | 1632 | | |
1608 | | - | |
| 1633 | + | |
1609 | 1634 | | |
1610 | 1635 | | |
1611 | 1636 | | |
| |||
1616 | 1641 | | |
1617 | 1642 | | |
1618 | 1643 | | |
1619 | | - | |
| 1644 | + | |
1620 | 1645 | | |
1621 | | - | |
| 1646 | + | |
1622 | 1647 | | |
1623 | 1648 | | |
1624 | 1649 | | |
| |||
2135 | 2160 | | |
2136 | 2161 | | |
2137 | 2162 | | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
2138 | 2181 | | |
2139 | 2182 | | |
2140 | 2183 | | |
| |||
Lines changed: 28 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
537 | | - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
| |||
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
575 | | - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
576 | 580 | | |
577 | 581 | | |
578 | 582 | | |
| |||
608 | 612 | | |
609 | 613 | | |
610 | 614 | | |
611 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
612 | 618 | | |
613 | 619 | | |
614 | 620 | | |
| |||
645 | 651 | | |
646 | 652 | | |
647 | 653 | | |
648 | | - | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
649 | 657 | | |
650 | 658 | | |
651 | 659 | | |
| |||
678 | 686 | | |
679 | 687 | | |
680 | 688 | | |
681 | | - | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
682 | 692 | | |
683 | 693 | | |
684 | 694 | | |
| |||
796 | 806 | | |
797 | 807 | | |
798 | 808 | | |
799 | | - | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
800 | 812 | | |
801 | 813 | | |
802 | 814 | | |
| |||
894 | 906 | | |
895 | 907 | | |
896 | 908 | | |
897 | | - | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
898 | 912 | | |
899 | 913 | | |
900 | 914 | | |
| |||
936 | 950 | | |
937 | 951 | | |
938 | 952 | | |
939 | | - | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
940 | 956 | | |
941 | 957 | | |
942 | 958 | | |
| |||
1838 | 1854 | | |
1839 | 1855 | | |
1840 | 1856 | | |
1841 | | - | |
| 1857 | + | |
| 1858 | + | |
| 1859 | + | |
1842 | 1860 | | |
1843 | 1861 | | |
1844 | 1862 | | |
| |||
2067 | 2085 | | |
2068 | 2086 | | |
2069 | 2087 | | |
| 2088 | + | |
2070 | 2089 | | |
2071 | 2090 | | |
2072 | 2091 | | |
| |||
0 commit comments