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

# Pagination

> Iterating over collections

List methods return a `Page[T]` object that supports standard Python iteration.

## Iterate with for

```python theme={null}
page = await client.agents.list()

for agent in page:
    print(agent.name)
```

## Convert to list

```python theme={null}
page = await client.agents.list()
agents = list(page)
```

## Access by index

```python theme={null}
page = await client.agents.list()
first = page[0]
count = len(page)
```

## Access raw data

```python theme={null}
page = await client.agents.list()
print(page.data)  # list[Agent]
```
