Skip to content

fix(gemini): set function id#861

Closed
sixlive wants to merge 1 commit intomainfrom
gemini-toolcall-id
Closed

fix(gemini): set function id#861
sixlive wants to merge 1 commit intomainfrom
gemini-toolcall-id

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

@sixlive sixlive closed this Mar 1, 2026
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

1 participant