FunctionResponse interface
Stay organized with collections
Save and categorize content based on your preferences.
The result output from a FunctionCall that contains a string representing the FunctionDeclaration.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 a FunctionCall made based on model prediction.
Signature:
export interface FunctionResponse
Properties
FunctionResponse.name
Signature:
name: string;
FunctionResponse.response
Signature:
response: object;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["The result output from a [FunctionCall](./ai.functioncall.md#functioncall_interface) that contains a string representing the [FunctionDeclaration.name](./ai.functiondeclaration.md#functiondeclarationname) and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a [FunctionCall](./ai.functioncall.md#functioncall_interface) made based on model prediction.\n\n**Signature:** \n\n export interface FunctionResponse \n\nProperties\n\nFunctionResponse.name\n\n**Signature:** \n\n name: string;\n\nFunctionResponse.response\n\n**Signature:** \n\n response: object;"]]