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.

Signature

async def execute_callback(display_type: str) -> Any

Parameters

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

Returns

Returns
Any
The result of the operation.

Uses

  • inspect.signature
  • asyncio.get_event_loop
  • loop.run_in_executor
  • callback

Used By

Source

View on GitHub

praisonaiagents/main.py at line 158