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

python
def execute_sync_callback(display_type: str) -> Any

Parameters

ParamField str

Type of display event **kwargs: Arguments to pass to the callback function

Returns

ResponseField Any

The result of the operation.

Uses

  • callback
  • logging.exception

Used By

Source

View on GitHub

praisonaiagents/main.py at line 165