# AgentEvent.FunctionResponse


```
data class AgentEvent.FunctionResponse : AgentEvent
```

<br />

*** ** * ** ***

Emitted immediately after a function invocation completes.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.FunctionResponse#FunctionResponse(kotlin.String,kotlin.collections.Map)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, response: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?>)` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.FunctionResponse#name()` The name of the function that was called. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-map/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?>` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.FunctionResponse#response()` The response map returned by the function or error details. |

## Public constructors

### FunctionResponse

```
FunctionResponse(name: String, response: Map<String, Any?>)
```

## Public properties

### name

```
val name: String
```

The name of the function that was called.

### response

```
val response: Map<String, Any?>
```

The response map returned by the function or error details.