google / google/adk-python

A before_agent_callback which changes the state results in an empty Event being returned

オープン
#7,078 コメント 11 件 リアクション 0 件 担当者 1 名 @surajksharma07 が担当を希望しています GitHub で見る
agent engine request clarification
主要言語
Python
スター
21.5k
フォーク
4k
平均マージ
1日 14時間
マージ済み PR(30日)
37

説明

[This code](https://github.com/google/adk-python/blob/54274cdeba42a46e4346f48589c84fe2ebcc0da2/src/google/adk/agents/base_agent.py#L559) forces the end of the turn and results in an empty event being returned if there are state changes.

This prevents these callbacks from doing any kind of processing that result in state changes. It's not clear what's the purpose of this logic. This behavior is [not documented](https://adk.dev/callbacks/types-of-callbacks/#before-agent-callback).

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

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

評価

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

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

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