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
| Property | Type | Description |
|---|---|---|
| id | string | The id of the FunctionCall. |
| name | string | |
| response | object |
FunctionResponse.id
The id of the FunctionCall.
This property is only supported in the Gemini Developer API (GoogleAIBackend). When using the Gemini Developer API (GoogleAIBackend), this property will be undefined.
Signature:
id?: string;
FunctionResponse.name
Signature:
name: string;
FunctionResponse.response
Signature:
response: object;