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

Function after_main_agent

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

Source from the content-addressed store, hash-verified

334 )
335
336 async def after_main_agent(callback_context: CallbackContext):
337 # Artifact 2 should be available after the tool agent.
338 artifact_2 = await callback_context.load_artifact('artifact_2')
339 await callback_context.save_artifact(
340 'artifact_3', Part.from_text(text=artifact_2.text + ' 3')
341 )
342
343 mock_model = testing_utils.MockModel.create(
344 responses=[function_call_no_schema, 'response2']

Callers

nothing calls this directly

Calls 2

load_artifactMethod · 0.45
save_artifactMethod · 0.45

Tested by

no test coverage detected