# AgentEvent.FunctionResponse

# AgentEvent.FunctionResponse


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

<br />

*** ** * ** ***

Emitted immediately after a function invocation completes.

## Summary

| ### Public constructors |
|---|
| `FunctionResponse(name: String, response: Map<String, Any?>)` |

| ### Public properties |
|---|---|
| `String` | `name` The name of the function that was called. |
| `Map<String, Any?>` | `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.