Skip to content

Conversation

@sixlive
Copy link
Contributor

@sixlive sixlive commented Jan 25, 2026

Description

Fixes #811

Problem: When Gemini's functionCall.name is missing/null, the ToolCall constructor throws a TypeError because the id parameter must be a string.

Solution: Generate unique IDs using EventID::generate('gm'), consistent with how the streaming handler already handles tool call IDs.

@kinsta
Copy link

kinsta bot commented Jan 25, 2026

Preview deployments for prism ⚡️

Status Branch preview Commit preview
✅ Ready Visit preview Visit preview

Commit: c584dd7c1d7ad6ab428afa2b102394ee7cfee5ef

Deployment ID: 15e98682-5df9-4b77-b4ae-c7c9cde051cb

Static site name: prism-97nz9

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.

GEMINI: Prism\Prism\ValueObjects\ToolCall::__construct(): Argument #1 ($id) must be of type string, null given

2 participants