Skip to content

Event loop is closed when running eval programatically #1429

Open
@sandangel

Description

@sandangel

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Describe the bug
A clear and concise description of what the bug is.

When extending adk eval and call EvaluationGenerator.generate_responses programatically, it has error "Event loop is closed"

To Reproduce
Steps to reproduce the behavior:

  1. Use
asyncio.run(EvaluationGenerator.generate_responses(....))

Expected behavior
A clear and concise description of what you expected to happen.

Should not throw error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Python version(python -V):
  • ADK version(pip show google-adk):

Additional context

I added a PR to fix here: #1408

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions