> ## 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.

# aexecute • AI Agent SDK

> aexecute: Execute a task asynchronously - backward compatibility method

# aexecute

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

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

Execute a task asynchronously - backward compatibility method

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def aexecute(task: Any, context: Any) -> Any
```

## Parameters

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

<ParamField query="context" type="Any" required={false}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `achat`

## Source

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