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
def register_display_callback(display_type: str, callback_fn: Any, is_async: bool) -> AnyParameters
ParamField
strType of display event (‘interaction’, ‘self_reflection’, etc.)
ParamField
AnyThe callback function to register
ParamField
boolWhether the callback is asynchronous
Returns
ResponseField
AnyThe result of the operation.
Used By
Source
View on GitHubpraisonaiagents/main.py at line 129