adk-python icon indicating copy to clipboard operation
adk-python copied to clipboard

Why does the state in the web UI and api_server get updated only after the llm is done processing?

Open BenSnaas opened this issue 1 year ago • 1 comments

I have an agent that calls multiple tools, gets back data, stores it into state and then produces an output with the retrieved data. The state only shows up at the end of this process, while I would already like to access the state before the LLM returns its output.

Is it possible to access the state before the end of the invocation of an agent?

BenSnaas avatar Apr 29 '25 14:04 BenSnaas

A later tool can access a state set by an earlier tool within one invocation.

It's just dev ui only to update the session state in the web page at the end of an invocation.

Jacksunwei avatar May 03 '25 06:05 Jacksunwei