google / google/adk-java

Invocation context attribute propagation

オープン
#564 コメント 2 件 リアクション 0 件 担当者 1 名 @hemasekhar-p が担当を希望しています GitHub で見る
needs review
主要言語
Java
スター
1.7k
フォーク
420
平均マージ
4日 12時間
マージ済み PR(30日)
31

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。