# HookOutcome

> **Class** in `deepagents_code`

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

Result of a lifecycle hook that may halt the caller.

## Signature

```python
HookOutcome(
    self,
    ok: bool = True,
    stop_reason: str | None = None,
)
```

## Constructors

```python
__init__(
    self,
    ok: bool = True,
    stop_reason: str | None = None,
) -> None
```

| Name | Type |
|------|------|
| `ok` | `bool` |
| `stop_reason` | `str \| None` |


## Properties

- `ok`
- `stop_reason`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/hooks/manager.py#L73)