Skip to content

Commit e5ce965

Browse files
DeanChensjcopybara-github
authored andcommitted
chore: Clarify the behavior of Event.invocation_id
PiperOrigin-RevId: 774235097
1 parent 7c670f6 commit e5ce965

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/google/adk/events/event.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ class Event(LlmResponse):
3434
taken by the agents like function calls, etc.
3535
3636
Attributes:
37-
invocation_id: The invocation ID of the event.
38-
author: "user" or the name of the agent, indicating who appended the event
39-
to the session.
37+
invocation_id: Required. The invocation ID of the event. Should be non-empty
38+
before appending to a session.
39+
author: Required. "user" or the name of the agent, indicating who appended
40+
the event to the session.
4041
actions: The actions taken by the agent.
4142
long_running_tool_ids: The ids of the long running function calls.
4243
branch: The branch of the event.
@@ -55,9 +56,8 @@ class Event(LlmResponse):
5556
)
5657
"""The pydantic model config."""
5758

58-
# TODO: revert to be required after spark migration
5959
invocation_id: str = ''
60-
"""The invocation ID of the event."""
60+
"""The invocation ID of the event. Should be non-empty before appending to a session."""
6161
author: str
6262
"""'user' or the name of the agent, indicating who appended the event to the
6363
session."""

0 commit comments

Comments
 (0)