Invocation context attribute propagation
Offen
#564
2 Kommentare
0 Reaktionen
1 zugewiesene Person
Beansprucht von @hemasekhar-p
Auf GitHub ansehen
needs review
- Vorherrschende Sprache
- Java
- Sterne
- 1.7k
- Forks
- 420
- Ø Merge
- 4 T. 12 Std.
- Gemergte PRs (30 T.)
- 31
Beschreibung
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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.