Execute Sync Callback • AI Agent SDK
execute_sync_callback: Execute synchronous callback for a given display type without displaying anything.
execute_sync_callback
Function
</div>
This function is defined in the main module.
Execute synchronous callback for a given display type without displaying anything.
This function is used to trigger callbacks even when verbose=False. Callback errors are logged and suppressed so observers cannot abort the run.
Signature
def execute_sync_callback(display_type: str) -> AnyParameters
ParamField
strType of display event **kwargs: Arguments to pass to the callback function
Returns
ResponseField
AnyThe result of the operation.
Uses
callbacklogging.exception
Used By
Source
View on GitHubpraisonaiagents/main.py at line 165