> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute Callback Sync • AI Agent SDK

> execute_callback_sync: Synchronous wrapper that properly awaits execute_callback instead of

# execute\_callback\_sync

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**Task**](../classes/Task) class in the [**task**](../modules/task) module.

Synchronous wrapper that properly awaits execute\_callback instead of
using fire-and-forget create\_task() to prevent lost exceptions.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def execute_callback_sync(task_output: TaskOutput) -> None
```

## Parameters

<ParamField query="task_output" type="TaskOutput" required={true}>
  No description available.
</ParamField>

## Uses

* `run_coroutine_from_any_context`
* `execute_callback`

## Used By

* [`AgentTeam.run_task`](../functions/AgentTeam-run_task)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/task/task.py#L859">
  `praisonaiagents/task/task.py` at line 859
</Card>
