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

# Register Display Callback • AI Agent SDK

> register_display_callback: Register a synchronous or asynchronous callback function for a specific display type.

# register\_display\_callback

<div className="flex items-center gap-2">
  <Badge color="teal">Function</Badge>
</div>

> This function is defined in the [**main**](../modules/main) module.

Register a synchronous or asynchronous callback function for a specific display type.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def register_display_callback(display_type: str, callback_fn: Any, is_async: bool) -> Any
```

## Parameters

<ParamField query="display_type" type="str" required={true}>
  Type of display event ('interaction', 'self\_reflection', etc.)
</ParamField>

<ParamField query="callback_fn" type="Any" required={true}>
  The callback function to register
</ParamField>

<ParamField query="is_async" type="bool" required={false} default="False">
  Whether the callback is asynchronous
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Used By

* [`FlowDisplay.start`](../functions/FlowDisplay-start)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/main.py#L106">
  `praisonaiagents/main.py` at line 106
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Display System" icon="display" href="/docs/features/display-system" />

  <Card title="Display Callbacks" icon="phone" href="/docs/features/display-callbacks" />

  <Card title="Output Styles" icon="palette" href="/docs/features/output-styles" />
</CardGroup>
