A before_agent_callback which changes the state results in an empty Event being returned
Offen
#7,078
11 Kommentare
0 Reaktionen
1 zugewiesene Person
Beansprucht von @surajksharma07
Auf GitHub ansehen
agent engine
request clarification
- Vorherrschende Sprache
- Python
- Sterne
- 21.5k
- Forks
- 4k
- Ø Merge
- 1 T. 14 Std.
- Gemergte PRs (30 T.)
- 37
Beschreibung
[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).
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.