{"record":{"id":"5cc59cef5062e586","repo":"apache/beam","slug":"agent-runner-agent-name-did-not-return-a-response","errorCode":null,"errorMessage":"Agent {runner.agent.name} did not return a response","messagePattern":"Agent (.+?) did not return a response","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"sdks/python/apache_beam/ml/inference/agent_development_kit.py","lineNumber":305,"sourceCode":"      await runner.session_service.create_session(\n          app_name=app_name,\n          user_id=user_id,\n          session_id=session_id,\n      )\n\n    async for event in runner.run_async(\n        user_id=user_id,\n        session_id=session_id,\n        new_message=message,\n    ):\n      if event.is_final_response():\n        if event.content and event.content.parts:\n          return \"\".join([p.text for p in event.content.parts])\n        raise ValueError(\n            f\"Agent {runner.agent.name} did not return a response, \"\n            f\"final event: {event}\")\n\n    raise ValueError(f\"Agent {runner.agent.name} did not return a response\")\n\n  def get_metrics_namespace(self) -> str:\n    return \"ADKAgentModelHandler\"\n","sourceCodeStart":287,"sourceCodeEnd":309,"githubUrl":"https://github.com/apache/beam/blob/12126d8942aaf848030c478b4c6a28c6af861c66/sdks/python/apache_beam/ml/inference/agent_development_kit.py#L287-L309","documentation":"The ADK runner's event stream finished without any event marked is_final_response(), meaning the agent never completed a turn; _invoke_agent reached the end of run_async and has no result to yield for this element.","triggerScenarios":"Thrown at sdks/python/apache_beam/ml/inference/agent_development_kit.py:305 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check agent configuration for runaway tool loops or missing final-answer behavior","Enable ADK tracing/logs to see which event the run ended on and fix the agent flow"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"12126d8942aaf848030c478b4c6a28c6af861c66","analyzedAt":"2026-09-13T01:50:10.254Z","contentChangedAt":"2026-09-13T01:50:10.254Z","schemaVersion":2},"datasetVersion":"2026-09-20T03:17:13.778Z"}