# FunctionResponsePart


```
public final class FunctionResponsePart extends Part
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [com.google.mlkit.genai.prompt.Part](https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/Part) ||
|   | ↳ | [com.google.mlkit.genai.prompt.FunctionResponsePart](https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/FunctionResponsePart) |

*** ** * ** ***

A data class representing a function response part of a prompt.

Used in multi-turn conversation history to provide the result of executing a function call back to the model as input, enabling the model to generate the final response.

## Summary

| ### Nested types |
|---|
| `public static class https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/FunctionResponsePart.Companion` |

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/FunctionResponsePart#FunctionResponsePart(kotlin.String,kotlin.String,kotlin.collections.Map)( https://developer.android.com/reference/java/lang/String.html id, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html name, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html, https://developer.android.com/reference/java/lang/Object.html> response )` |

| ### Public methods |
|---|---|
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/FunctionResponsePart#getId()()` optional unique identifier for the function call. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/FunctionResponsePart#getName()()` function name. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/java/lang/String.html, https://developer.android.com/reference/java/lang/Object.html>` | `https://developers.google.com/android/reference/com/google/mlkit/genai/prompt/FunctionResponsePart#getResponse()()` map of property name to response value. |

## Public constructors

### FunctionResponsePart

```
public FunctionResponsePart(
    String id,
    @NonNull String name,
    @NonNull Map<@NonNull String, Object> response
)
```

## Public methods

### getId

```
public final String getId()
```

optional unique identifier for the function call.

### getName

```
public final @NonNull String getName()
```

function name.

### getResponse

```
public final @NonNull Map<@NonNull String, Object> getResponse()
```

map of property name to response value.