Register Display Callback • AI Agent SDK

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

register_display_callback

Function

</div>

This function is defined in the main module.

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

Signature

python
def register_display_callback(display_type: str, callback_fn: Any, is_async: bool) -> Any

Parameters

ParamField str

Type of display event (‘interaction’, ‘self_reflection’, etc.)

ParamField Any

The callback function to register

ParamField bool

Whether the callback is asynchronous

Returns

ResponseField Any

The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/main.py at line 129


Related Documentation