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

# Polling Config • AI Agent SDK

> PollingConfig: Configuration for HTTP long-polling fallback.

# PollingConfig

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

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

Configuration for HTTP long-polling fallback.

Attributes:
enabled: Toggle polling fallback
long\_poll\_timeout: Long-poll hang duration (seconds)
max\_batch\_size: Max messages per poll response
max\_queue\_size: Per-client in-memory queue bound. When >0 the queue
overflows once full, routing further events to the durable store
(at-least-once). 0 keeps the queue unbounded (no overflow).

## Properties

<ResponseField name="enabled" type="bool">
  No description available.
</ResponseField>

<ResponseField name="long_poll_timeout" type="int">
  No description available.
</ResponseField>

<ResponseField name="max_batch_size" type="int">
  No description available.
</ResponseField>

<ResponseField name="max_queue_size" type="int">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/docs/configuration/agent-config" />
</CardGroup>
