Access agent via api is not working for me #416
-
I've created a simple trip planner agent which works well with adk web. Now I wanted to make this serve as an api with adk api_server. It start well on localhost:8000. But when I call this vai postman localhost:8000/run 1st I'm not sure what json to pass. I tried few jsons bit I always get 422 Unprocessable Entity. I'm not sure what is wrong, can someone guide me? I tried { { { |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's an |
Beta Was this translation helpful? Give feedback.
It's an
AgentRunRequest
. You can look at this file for definition: https://github.com/google/adk-python/blob/main/src/google/adk/cli/fast_api.py#L590