Skip to content

Add support for Gemini thought signatures via chat_message_metadata#3712

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770243911-thought-signatures
Open

Add support for Gemini thought signatures via chat_message_metadata#3712
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770243911-thought-signatures

Conversation

@devin-ai-integration
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot commented Feb 4, 2026

Adds support for Gemini's thought signatures feature by capturing chat_message_metadata from FulfilledExecutePromptEvent and storing it in ChatMessage objects. This allows the metadata to be transparently passed back to subsequent prompt calls via chat_history, preserving the model's reasoning context across turns.



Open with Devin

- Capture chat_message_metadata from FulfilledExecutePromptEvent in ToolPromptNode
- Store metadata in ChatMessage for preservation in chat history
- Pass metadata to subsequent prompt calls via chat_history
- Add test verifying metadata is fed back in subsequent turns

Co-Authored-By: vincent@vellum.ai <0426vincent@gmail.com>
@devin-ai-integration
Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vincent0426 vincent0426 marked this pull request as ready for review February 4, 2026 22:37
Copy link
Copy Markdown
Contributor Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review

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