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

# complete

> Record what the confirm tool did in semantic_state, in place of the proposal.

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

Record that the change was carried out, in place of the proposal. The result sets
`global_data.semantic_state` to `{"done": summary}`, and its first action turns tool
chaining back on with `back_to_back_functions("forever")`.

Write what was done rather than clearing the state: a state that changes starts the
next proposal dialogue there, and the model and the gates see what's settled.

## Parameters

**`summary`** `str` — required

What was done, such as `"Order 4471 is placed"`. Without `result`, it's also the tool
result the model gets.

---

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

The confirm tool's result, to add to.

---

## Returns

[`FunctionResult`][functionresult] -- The confirm tool's result.

## Example

```python {6-7}
from signalwire import FunctionResult
from signalwire.patterns import Proposal

order = Proposal("place_order", decline_tool="review_order")

def place_order(args, raw_data):
    return order.complete("Order 4471 is placed",
                          FunctionResult("Order 4471 is placed.").swml_change_step("done"))
```

```json
{"response": "Order 4471 is placed.",
 "action": [{"back_to_back_functions": "forever"},
            {"change_step": "done"},
            {"set_global_data": {"semantic_state": {"done": "Order 4471 is placed"}}}]}
```