Skip to content

Commit f511352

Browse files
DeanChensjcopybara-github
authored andcommitted
chore: Clarify the usage of agent_state
Co-authored-by: Shangjie Chen <deanchen@google.com> PiperOrigin-RevId: 828733706
1 parent 0fccc79 commit f511352

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/google/adk/events/event_actions.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ class EventActions(BaseModel):
100100
end_of_agent: Optional[bool] = None
101101
"""If true, the current agent has finished its current run. Note that there
102102
can be multiple events with end_of_agent=True for the same agent within one
103-
invocation when there is a loop."""
103+
invocation when there is a loop. This should only be set by ADK workflow."""
104104

105105
agent_state: Optional[dict[str, Any]] = None
106-
"""The agent state at the current event."""
106+
"""The agent state at the current event, used for checkpoint and resume. This
107+
should only be set by ADK workflow."""
107108

108109
rewind_before_invocation_id: Optional[str] = None
109110
"""The invocation id to rewind to. This is only set for rewind event."""

0 commit comments

Comments
 (0)