Skip to main content

register_display_callback

Function
This function is defined in the main module.
Register a synchronous or asynchronous callback function for a specific display type.

Signature

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

Parameters

display_type
str
required
Type of display event (‘interaction’, ‘self_reflection’, etc.)
callback_fn
Any
required
The callback function to register
is_async
bool
default:"False"
Whether the callback is asynchronous

Returns

Returns
Any
The result of the operation.