(callback_context: CallbackContext)
| 317 | """The agent tool can read and write artifacts.""" |
| 318 | |
| 319 | async def before_tool_agent(callback_context: CallbackContext): |
| 320 | # Artifact 1 should be available in the tool agent. |
| 321 | artifact = await callback_context.load_artifact('artifact_1') |
| 322 | await callback_context.save_artifact( |
| 323 | 'artifact_2', Part.from_text(text=artifact.text + ' 2') |
| 324 | ) |
| 325 | |
| 326 | tool_agent = SequentialAgent( |
| 327 | name='tool_agent', |
nothing calls this directly
no test coverage detected