# AgentEvent.FunctionCall


```
public final class AgentEvent.FunctionCall implements AgentEvent
```

<br />

*** ** * ** ***

Emitted immediately before a function is invoked by the runner.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/com/google/mlkit/genai/agent/AgentEvent.FunctionCall#FunctionCall(kotlin.String,kotlin.collections.Map)( @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> args )` |

| ### Public methods |
|---|---|
| `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/agent/AgentEvent.FunctionCall#getArgs()()` The map of arguments extracted and passed to the function. |
| `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/agent/AgentEvent.FunctionCall#getName()()` The name of the function to be called. |

## Public constructors

### FunctionCall

```
public FunctionCall(
    @NonNull String name,
    @NonNull Map<@NonNull String, Object> args
)
```

## Public methods

### getArgs

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

The map of arguments extracted and passed to the function.

### getName

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

The name of the function to be called.