# HookFulfillmentLedger

> **Class** in `deepagents_code`

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

Deduplicate hook fulfillment for one client session.

## Signature

```python
HookFulfillmentLedger(
    self,
    _in_flight: dict[_FulfillmentKey, asyncio.Task[HookInvocationResponse]] = dict(),
    _completed: dict[_FulfillmentKey, HookInvocationResponse] = dict(),
    _lock: asyncio.Lock = asyncio.Lock(),
)
```

## Constructors

```python
__init__(
    self,
    _in_flight: dict[_FulfillmentKey, asyncio.Task[HookInvocationResponse]] = dict(),
    _completed: dict[_FulfillmentKey, HookInvocationResponse] = dict(),
    _lock: asyncio.Lock = asyncio.Lock(),
) -> None
```

| Name | Type |
|------|------|
| `_in_flight` | `dict[_FulfillmentKey, asyncio.Task[HookInvocationResponse]]` |
| `_completed` | `dict[_FulfillmentKey, HookInvocationResponse]` |
| `_lock` | `asyncio.Lock` |


## Methods

- [`fulfill()`](https://reference.langchain.com/python/deepagents-code/hooks/client/HookFulfillmentLedger/fulfill)

---

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