Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Question] Multiple tools calling #1971

@AvivSpiritt

Description

@AvivSpiritt

I have an agent that updates the session state with the following call:

tool_context.state["test"] = "foo"

This agent should then hand control over to a second agent (it uses sub_agents).
However, when the LLM invokes both tools within the same call, the state update does not appear to persist.

Is this expected behavior, or am I overlooking something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bot triaged[Bot] This issue is triaged by ADK botquestion[Component] This issue is asking a question or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions