Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pavelgj
Copy link
Collaborator

@pavelgj pavelgj commented Nov 24, 2025

    const { response, stream } = ai.generateStream({
      model: vertexAI.model('gemini-3-pro-preview'),
      config: {
        functionCallingConfig: {
          streamFunctionCallArguments: true,
        },
      },
      tools: [...],
    });

    for await (const chunk of stream) {
      if (chunk.toolRequest?.partial) {
        console.log('partial'); 
      }  else {
        console.log('final'); 
      }
    }

Checklist (if applicable):

@pavelgj pavelgj requested a review from ifielker November 24, 2025 23:44
Base automatically changed from pj/multipart-tool-core to main November 26, 2025 02:48
@pavelgj pavelgj merged commit 39d4e60 into main Nov 26, 2025
5 checks passed
@pavelgj pavelgj deleted the pj/partial-tool-request branch November 26, 2025 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants