Skip to content

Commit 228c741

Browse files
committed
fix: use 'user' as author for synthetic function response event
Address code review feedback: synthetic error responses for orphaned function calls should consistently use 'user' as the author field, matching the role='user' already set in the content.
1 parent f68c225 commit 228c741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/flows/llm_flows/contents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def _create_synthetic_response_for_orphaned_calls(
104104

105105
return Event(
106106
invocation_id=event.invocation_id,
107-
author=event.author,
107+
author='user',
108108
content=types.Content(role='user', parts=parts),
109109
branch=event.branch,
110110
)

0 commit comments

Comments
 (0)