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

# done

> Remove the oldest request once the agent has taken it up.

[functionresult]: /docs/server-sdks/reference/python/agents/function-result

Remove the oldest request once it has been taken up. The result updates the list and
its text in `global_data`.

## Parameters

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

The SWAIG request, as a tool handler receives it.

---

**`result`** `FunctionResult | None` — default: None

A result to add to, in place of a new one.

---

## Returns

[`FunctionResult`][functionresult] -- The result, with the shortened list.

## Example

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

later = RequestList("later")

def tell_balance(args, raw_data):
    return later.done(raw_data, FunctionResult("The balance is $42.10."))
```