Execute Callback Sync • AI Agent SDK

execute_callback_sync: Synchronous wrapper that properly awaits execute_callback instead of

execute_callback_sync

Method

</div>

This is a method of the Task class in the task module.

Synchronous wrapper that properly awaits execute_callback instead of using fire-and-forget create_task() to prevent lost exceptions.

Signature

python
def execute_callback_sync(task_output: TaskOutput) -> None

Parameters

ParamField TaskOutput

No description available.

Uses

  • run_coroutine_from_any_context
  • execute_callback

Source

View on GitHub

praisonaiagents/task/task.py at line 868