Skip to content

Commit 624fb1e

Browse files
feat: Add thought parts from litellm response
1 parent 632bf8b commit 624fb1e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/google/adk/models/lite_llm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,11 @@ def _message_to_generate_content_response(
513513
"""
514514

515515
parts = []
516+
517+
if message.get("reasoning_content"):
518+
thought_part = types.Part(text=message.get("reasoning_content"), thought=True)
519+
parts.append(thought_part)
520+
516521
if message.get("content", None):
517522
parts.append(types.Part.from_text(text=message.get("content")))
518523

0 commit comments

Comments
 (0)