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

# current

> Return the proposal that a SWAIG request's semantic_state holds.

[proposal]: /docs/server-sdks/reference/python/agents/patterns/proposal

Return the proposal that a SWAIG request's `global_data.semantic_state` holds, as
recorded by [`Proposal.propose()`][proposal].

```python
from signalwire.patterns import current
```

## Parameters

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

The SWAIG request, as a tool handler receives it.

---

## Returns

`dict[str, Any] | None` -- The `semantic_state` dictionary when it has a `proposal`
key, otherwise `None`.

## Example

```python {5}
from signalwire import FunctionResult
from signalwire.patterns import current

def place_order(args, raw_data):
    proposal = current(raw_data)
    if proposal is None:
        return FunctionResult("place_order was not run: there is no order to place.")
    return FunctionResult(f"Placed the order for {proposal['item']}.")
```