google / google/adk-java

Invocation context attribute propagation

Open
#564 2 comments 0 reactions 1 assignee Claimed by @hemasekhar-p View on GitHub
needs review
Dominant language
Java
Stars
1.7k
Forks
420
Avg merge
4d 12h
Merged PRs (30d)
31

Description

As per python-variant of the ADK library issue (https://github.com/google/adk-python/issues/1746) I would like to propagate request-scoped variable into agent and his tools (ToolContext) in order that tool used by agent would have this variable at its disposal for the given runAsync() run.
I suppose that instances of Runner, Agent and Tool(set) are meant to be long-lived singletons, so that leaves me only Session option, which also seem to live across many requests, so only hack-like solution with pushing and then removing the request variable through Session with before/afterToolCallback are available now.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.