The result output from a [FunctionCall](https://firebase.google.com/docs/reference/js/ai.functioncall#functioncall_interface) that contains a string representing the [FunctionDeclaration.name](https://firebase.google.com/docs/reference/js/ai.functiondeclaration#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](https://firebase.google.com/docs/reference/js/ai.functioncall#functioncall_interface) made based on model prediction.

**Signature:**

    export interface FunctionResponse 

## Properties

| Property | Type | Description |
|---|---|---|
| [id](https://firebase.google.com/docs/reference/js/ai.functionresponse#functionresponseid) | string | The id of the [FunctionCall](https://firebase.google.com/docs/reference/js/ai.functioncall#functioncall_interface). |
| [name](https://firebase.google.com/docs/reference/js/ai.functionresponse#functionresponsename) | string |   |
| [parts](https://firebase.google.com/docs/reference/js/ai.functionresponse#functionresponseparts) | [Part](https://firebase.google.com/docs/reference/js/ai#part)\[\] |   |
| [response](https://firebase.google.com/docs/reference/js/ai.functionresponse#functionresponseresponse) | object |   |

## FunctionResponse.id

The id of the [FunctionCall](https://firebase.google.com/docs/reference/js/ai.functioncall#functioncall_interface).

This property is only supported in the Gemini Developer API ([GoogleAIBackend](https://firebase.google.com/docs/reference/js/ai.googleaibackend#googleaibackend_class)). When using the Gemini Developer API ([GoogleAIBackend](https://firebase.google.com/docs/reference/js/ai.googleaibackend#googleaibackend_class)), this property will be `undefined`.

**Signature:**

    id?: string;

## FunctionResponse.name

**Signature:**

    name: string;

## FunctionResponse.parts

**Signature:**

    parts?: Part[];

## FunctionResponse.response

**Signature:**

    response: object;