Skip to content
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
11 changes: 8 additions & 3 deletions src/google/adk/flows/llm_flows/_output_schema_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,15 @@ def create_final_model_response_event(
from google.genai import types

# Create a proper model response event
final_event = Event(author=invocation_context.agent.name)
final_event.content = types.Content(
role='model', parts=[types.Part(text=json_response)]
final_event = Event(
author=invocation_context.agent.name,
invocation_id=invocation_context.invocation_id,
branch=invocation_context.branch,
content=types.Content(
role='model', parts=[types.Part(text=json_response)]
),
)

return final_event


Expand Down