Skip to content

Commit 6911927

Browse files
committed
fix: Change reasoning_text to reasoning_summary_text
1 parent 906d403 commit 6911927

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

portkey_ai/integrations/adk.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _content_to_input_items(content: Any, system_role: str) -> list[dict[str, An
242242
"id": thought_signature or f"reasoning_{len(items)}",
243243
"type": "reasoning",
244244
"summary": [],
245-
"content": [{"type": "reasoning_text", "text": text}],
245+
"content": [{"type": "reasoning_summary_text", "text": text}],
246246
}
247247
if thought_signature:
248248
reasoning_item["encrypted_content"] = thought_signature
@@ -435,7 +435,7 @@ def _response_output_to_parts(output: Iterable[Any]) -> list[Any]:
435435
getattr(item, "encrypted_content", None)
436436
)
437437
for content in getattr(item, "content", None) or []:
438-
if getattr(content, "type", None) == "reasoning_text":
438+
if getattr(content, "type", None) == "reasoning_summary_text":
439439
parts.append(
440440
_build_text_part(
441441
getattr(content, "text", ""),
@@ -652,7 +652,7 @@ async def generate_content_async(
652652
async for event in stream_response: # type: ignore[union-attr] # create() returns union of Response|AsyncStream; we know it's AsyncStream here
653653
event_type: str | None = getattr(event, "type", None)
654654

655-
if event_type == "response.reasoning_text.delta":
655+
if event_type == "response.reasoning_summary_text.delta":
656656
delta: str = getattr(event, "delta", "")
657657
if delta:
658658
yield _parts_to_llm_response(

0 commit comments

Comments
 (0)