FunctionResponse interface Stay organized with collections Save and categorize content based on your preferences.
The result output from aFunctionCall that contains a string representing theFunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of aFunctionCall made based on model prediction.
Signature:
exportinterfaceFunctionResponseProperties
| Property | Type | Description |
|---|---|---|
| id | string | The id of theFunctionCall. |
| name | string | |
| response | object |
FunctionResponse.id
The id of theFunctionCall.
This property is only supported in the Gemini Developer API (GoogleAIBackend). When using the Gemini Developer API (GoogleAIBackend), this property will beundefined.
Signature:
id?:string;FunctionResponse.name
Signature:
name:string;FunctionResponse.response
Signature:
response:object;Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.