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

# result

> Return the FunctionResult the model gets for a ToolRefusal.

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

Return the [`FunctionResult`][functionresult] the model gets when this refusal is
raised: its `tool_result` and `tool_prompt` as the response.

## Returns

[`FunctionResult`][functionresult] -- The refusal's result.

## Example

```python {6}
from signalwire import ToolRefusal

refusal = ToolRefusal("place_order was not run: tea is out of stock.",
                      "Tell the caller, and offer coffee.")

print(refusal.result().to_dict())
# {'response': {'tool_result': 'place_order was not run: tea is out of stock.',
#               'tool_prompt': 'Tell the caller, and offer coffee.'}}
```