# DeferredToolResultHook

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/textual_adapter/DeferredToolResultHook)

A `tool.result` payload held back until the authoritative result arrives.

Used for an answered `ask_user`: the middleware owns the final status, and the
hook body must be the sanitized summary rather than the transcript of the
user's answers.

## Signature

```python
DeferredToolResultHook()
```

## Extends

- `NamedTuple`

## Properties

- `tool_args`
- `tool_output`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/tui/textual_adapter.py#L294)