MCPcopy Index your code
hub / github.com/google/adk-python / TrackingPlugin

Class TrackingPlugin

tests/unittests/tools/test_agent_tool.py:628–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626
627 # Create a test plugin that tracks callbacks
628 class TrackingPlugin(BasePlugin):
629
630 def __init__(self, name: str):
631 super().__init__(name)
632 self.before_agent_calls = 0
633
634 async def before_agent_callback(self, **kwargs):
635 self.before_agent_calls += 1
636
637 tracking_plugin = TrackingPlugin(name='tracking')
638

Calls

no outgoing calls