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

# as_text

> Render a list of requests as the text that step text shows.

Render a list of requests as step text: the heading, one numbered line per request
with its opener, and a closing line that tells the agent to take them up in order once
the current task is done. This is the text kept under `<global_key>_text`.

## Parameters

**`requests`** `list[dict[str, str]]` — required

The requests, as [`pending()`](/docs/server-sdks/reference/python/agents/patterns/request-list/pending)
returns them.

---

## Returns

`str` -- The text, or `""` when there are no requests.

## Example

```python {6}
from signalwire.patterns import RequestList

later = RequestList("later", openers={"balance": "You also asked about your balance.",
                                      "question": "You had a question: {about}."})
requests = [{"kind": "balance", "about": "the account balance"}, {"kind": "question", "about": "store hours"}]
print(later.as_text(requests))
# Noted for right after this:
# 1. You also asked about your balance.
# 2. You had a question: store hours.
# When the current task is done, take these up in order, then ask if there's anything else.
```