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

Function before_main_agent

tests/unittests/tools/test_agent_tool.py:331–334  ·  view source on GitHub ↗
(callback_context: CallbackContext)

Source from the content-addressed store, hash-verified

329 )
330
331 async def before_main_agent(callback_context: CallbackContext):
332 await callback_context.save_artifact(
333 'artifact_1', Part.from_text(text='test')
334 )
335
336 async def after_main_agent(callback_context: CallbackContext):
337 # Artifact 2 should be available after the tool agent.

Callers

nothing calls this directly

Calls 1

save_artifactMethod · 0.45

Tested by

no test coverage detected