We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b9193 commit d620bcbCopy full SHA for d620bcb
src/google/adk/flows/llm_flows/contents.py
@@ -322,7 +322,8 @@ def _convert_foreign_event(event: Event) -> Event:
322
content.role = 'user'
323
content.parts = [types.Part(text='For context:')]
324
for part in event.content.parts:
325
- if part.text:
+ # Exclude thoughts from the context.
326
+ if part.text and not part.thought:
327
content.parts.append(
328
types.Part(text=f'[{event.author}] said: {part.text}')
329
)
0 commit comments