# AgentEvent.FunctionCall


```
data class AgentEvent.FunctionCall : AgentEvent
```

<br />

*** ** * ** ***

Emitted immediately before a function is invoked by the runner.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.FunctionCall#FunctionCall(kotlin.String,kotlin.collections.Map)(name: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, args: 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.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.FunctionCall#args()` The map of arguments extracted and passed to the function. |
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/mlkit/genai/agent/AgentEvent.FunctionCall#name()` The name of the function to be called. |

## Public constructors

### FunctionCall

```
FunctionCall(name: String, args: Map<String, Any?>)
```

## Public properties

### args

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

The map of arguments extracted and passed to the function.

### name

```
val name: String
```

The name of the function to be called.