Skip to content

improvement: preserve thinking content in ADK integration#419

Open
viraj-s15 wants to merge 1 commit intoPortkey-AI:mainfrom
viraj-s15:feature/add-thoughts-support-adk
Open

improvement: preserve thinking content in ADK integration#419
viraj-s15 wants to merge 1 commit intoPortkey-AI:mainfrom
viraj-s15:feature/add-thoughts-support-adk

Conversation

@viraj-s15
Copy link

Title: : Preserve thinking content in ADK integration

Description:

  • Preserve reasoning content by mapping thinking blocks and reasoning_content into ADK Part(thought=True) responses
  • Add streaming support for thinking chunks, including aggregation and content block reconstruction
  • Normalize and forward thought_signature values, including Gemini bytes -> base64 string handling
  • Map ADK ThinkingConfig to Portkey's thinking configuration and enable non-strict OpenAI compliance

Motivation:
I want to use thinking content and signatures across streaming and non-streaming responses, aligning behavior with providers that expose reasoning blocks.

Context: https://discord.com/channels/1143393887742861333/1462080485583749318/1462080485583749318

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant