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

# Async Middleware Chain • AI Agent SDK

> AsyncMiddlewareChain: Asynchronous middleware chain executor.

# AsyncMiddlewareChain

> Defined in the [**middleware**](../modules/middleware) module.

<Badge color="blue">AI Agent</Badge>

Asynchronous middleware chain executor.

Same as MiddlewareChain but for async middleware and handlers.

## Constructor

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

## Methods

<CardGroup cols={2}>
  <Card title="execute()" icon="function" href="../functions/AsyncMiddlewareChain-execute">
    Execute the async middleware chain.
  </Card>
</CardGroup>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Async Feature" icon="clock" href="/docs/features/async" />

  <Card title="Background Tasks" icon="spinner" href="/docs/features/background-tasks" />

  <Card title="Async Jobs" icon="list-check" href="/docs/features/async-jobs" />

  <Card title="Middleware Feature" icon="layer-group" href="/docs/features/middleware" />
</CardGroup>
