Execute Callback • AI Agent SDK
execute_callback: Execute both sync and async callbacks for a given display type.
execute_callback
Async
Function
</div>
This function is defined in the main module.
Execute both sync and async callbacks for a given display type.
Callback errors are logged and suppressed so observers cannot abort the run.
Signature
async def execute_callback(display_type: str) -> AnyParameters
ParamField
strType of display event **kwargs: Arguments to pass to the callback functions
Returns
ResponseField
AnyThe result of the operation.
Uses
asyncio.get_running_looploop.run_in_executorsync_callbacklogging.exceptionasync_callback
Used By
Source
View on GitHubpraisonaiagents/main.py at line 184