> ## 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 Turn • AI Agent SDK

> execute_turn: API reference for InProcessTurnExecutor.execute_turn

# execute\_turn

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

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

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def execute_turn(placement: TurnPlacement, turn: 'Callable[[], Awaitable[Any]]') -> Any
```

## Parameters

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

<ParamField query="turn" type="'Callable" required={true}>
  No description available.
</ParamField>

### Returns

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

## Uses

* `turn`

## Source

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