8000 chore: Add a debug_metadata to event by copybara-service[bot] · Pull Request #1527 · google/adk-python · GitHub
[go: up one dir, main page]

Skip to content

chore: Add a debug_metadata to event #1527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
chore: Add a debug_metadata to event
PiperOrigin-RevId: 773414464
  • Loading branch information
seanzhougoogle authored and copybara-github committed Jun 19, 2025
commit c7e1c277f7acaa4c12508cadffac82dd72cc981d
6 changes: 6 additions & 0 deletions src/google/adk/events/event.py
8CC0
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
import random
import string
from typing import Optional
from typing import Any


from google.genai import types
from pydantic import alias_generators
Expand Down Expand Up @@ -85,6 +87,10 @@ class Event(LlmResponse):
"""The unique identifier of the event."""
timestamp: float = Field(default_factory=lambda: datetime.now().timestamp())
"""The timestamp of the event."""
debug_metadata: Optional[dict[str, Any]] = None
"""The debug metadata of the event.
e.g. the corresponding a2a request and response that generate this event.
"""

def model_post_init(self, __context):
"""Post initialization logic for the event."""
Expand Down
Loading
0