Skip to main content

execute_callback

AsyncFunction
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

Parameters

str
required
Type of display event **kwargs: Arguments to pass to the callback functions

Returns

Any
The result of the operation.

Uses

  • asyncio.get_running_loop
  • loop.run_in_executor
  • sync_callback
  • logging.exception
  • async_callback

Used By

Source

View on GitHub

praisonaiagents/main.py at line 184