# HandlerResult

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/runner/HandlerResult)

Validated output and diagnostics from one command handler.

## Signature

```python
HandlerResult(
    self,
    handler_id: str,
    output: HookWireOutput | None = None,
    diagnostics: tuple[HookDiagnostic, ...] = (),
    plain_output: str | None = None,
)
```

## Constructors

```python
__init__(
    self,
    handler_id: str,
    output: HookWireOutput | None = None,
    diagnostics: tuple[HookDiagnostic, ...] = (),
    plain_output: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `handler_id` | `str` |
| `output` | `HookWireOutput \| None` |
| `diagnostics` | `tuple[HookDiagnostic, ...]` |
| `plain_output` | `str \| None` |


## Properties

- `handler_id`
- `output`
- `diagnostics`
- `plain_output`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/hooks/runner.py#L36)