Open
Description
** Please make sure you read the contribution guide and file the issues in the rigth place. **
Contribution guide.
Describe the bug
A clear and concise description of what the bug is.
Currently RestAPITool is using requests
to call API, however since this is not async, we are not able to use it in our API server to serve multiple users concurrently.
To Reproduce
Steps to reproduce the behavior:
- Install 'adk-python'
- Run 'adk api_server openapi_tool_agent'
- Send concurrent API requests
- Request is executed in sync mode.
Expected behavior
A clear and concise description of what you expected to happen.
Should use httpx or asyncio.to_thread to turn the blocking code to async
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
Add any other context about the problem here.