How to Pass State in async_stream_query #3730
Replies: 1 comment 1 reply
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: When an agent is deployed to Agent Engine, you do not pass the state directly into the Hello! That's a great question. The way state is handled shifts when you move from local development to a deployed Agent Engine environment, which can be a bit confusing. How State Works in Agent EngineWhen you deploy your ADK application to Agent Engine, it automatically uses a persistent Because the state is managed server-side and tied to a How to Access and Modify StateThe correct way to interact with the session state is from within your agent's internal logic, primarily through its tools.
In summary, instead of trying to push state to the agent with your query, you should be passing a unique [1] https://google.github.io/adk-docs/deploy/agent-engine/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a simple agent and then deployed it to agent engine, however I am unable to pass the state as a param to input in async_stream_query class method. In my local development using adk web I can simply pass the properties and state is updated.
How can this be done when the agent in deployed to agent engine
Beta Was this translation helpful? Give feedback.
All reactions