> This page is for Server SDKs.

> Fetch clean Markdown by appending `.md` to any page URL under https://signalwire.com/docs or requesting it with the HTTP header `Accept: text/markdown`. The root index at https://signalwire.com/docs/llms.txt lists the available documentation indexes.

# next

> Return the oldest request not yet taken up, with its opener.

[opener]: /docs/server-sdks/reference/python/agents/patterns/request-list/opener

Return the oldest request not yet taken up, with the words the agent opens it with.

## Parameters

**`raw_data`** `Mapping[str, Any] | None` — required

The SWAIG request, as a tool handler receives it.

---

## Returns

`dict[str, str] | None` -- `{"kind": ..., "about": ..., "opener": ...}`, with the opener
from [`opener()`][opener], or `None` when nothing is noted.

## Example

```python {7}
from signalwire import FunctionResult
from signalwire.patterns import RequestList

later = RequestList("later", openers={"balance": "You also asked about your balance."})

def next_request(args, raw_data):
    request = later.next(raw_data)
    if request is None:
        return FunctionResult("Nothing else is waiting. Ask if there's anything else.")
    return FunctionResult(f"Take this up next: {request['opener']}")
```