feat: Pass event id as a metadata when it is converted into a message

PiperOrigin-RevId: 860929058
This commit is contained in:
Jinhyuk Kim
2026-01-25 16:05:45 -08:00
committed by Copybara-Service
parent 324796b4fe
commit 85434e293f
2 changed files with 3 additions and 1 deletions
@@ -56,6 +56,7 @@ class TestEventConverter:
self.mock_invocation_context.artifact_service = self.mock_artifact_service
self.mock_event = Mock(spec=Event)
self.mock_event.id = None
self.mock_event.invocation_id = "test-invocation-id"
self.mock_event.author = "test-author"
self.mock_event.branch = None
@@ -130,6 +131,7 @@ class TestEventConverter:
f"{ADK_METADATA_KEY_PREFIX}session_id",
f"{ADK_METADATA_KEY_PREFIX}invocation_id",
f"{ADK_METADATA_KEY_PREFIX}author",
f"{ADK_METADATA_KEY_PREFIX}event_id",
]
for key in expected_keys: