Skip to content
Open
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
4 changes: 4 additions & 0 deletions src/strands/models/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,10 @@ async def stream(

for part in parts:
if part.function_call:
if data_type is not None:
yield self._format_chunk({"chunk_type": "content_stop", "data_type": data_type})
data_type = None

yield self._format_chunk({"chunk_type": "content_start", "data_type": "tool", "data": part})
yield self._format_chunk({"chunk_type": "content_delta", "data_type": "tool", "data": part})
yield self._format_chunk({"chunk_type": "content_stop", "data_type": "tool", "data": part})
Expand Down
Loading