> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delegates

> Comprehensive reference for Unity AI Runtime delegates, including their roles and usage scenarios.

## ProcessBaseDataIODelegate

Delegate for processing base data I/O operations from the native C++ DLL.
This callback is invoked by the native library to handle data processing events.

### Parameters

| Parameter  | Type     | Description                                                      |
| ---------- | -------- | ---------------------------------------------------------------- |
| contextPtr | `IntPtr` | Pointer to the native context object containing processing data. |

## ProcessBaseDataIODelegateExecutionID

Delegate for processing base data I/O operations that include an execution identifier.
Used when native callbacks need to distinguish between different execution contexts.

### Parameters

| Parameter   | Type     | Description                                                        |
| ----------- | -------- | ------------------------------------------------------------------ |
| contextPtr  | `IntPtr` | Pointer to the native context object containing processing data.   |
| executionId | int      | The execution identifier associated with this callback invocation. |

## InworldExternalLogListener

Delegate for receiving log messages from the native C++ DLL.
Allows the managed code to capture and process logging output from the native library.

### Parameters

| Parameter | Type   | Description                                                                       |
| --------- | ------ | --------------------------------------------------------------------------------- |
| severity  | int    | The log level severity (0=verbose, 1=debug, 2=info, 3=warning, 4=error, 5=fatal). |
| message   | string | The log message content as a string.                                              |
| length    | int    | The length of the message string in characters.                                   |
