# LastValueAfterFinish

> **Class** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish)

Stores the last value received, but only made available after finish().
Once made available, clears the value.

## Signature

```python
LastValueAfterFinish(
    self,
    typ: Any,
    key: str = '',
)
```

## Extends

- `Generic[Value]`
- `BaseChannel[Value, Value, tuple[Value, bool]]`

## Constructors

```python
__init__(
    self,
    typ: Any,
    key: str = '',
) -> None
```

| Name | Type |
|------|------|
| `typ` | `Any` |
| `key` | `str` |


## Properties

- `value`
- `finished`
- `ValueType`
- `UpdateType`

## Methods

- [`checkpoint()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/checkpoint)
- [`from_checkpoint()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/from_checkpoint)
- [`update()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/update)
- [`consume()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/consume)
- [`finish()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/finish)
- [`get()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/get)
- [`is_available()`](https://reference.langchain.com/python/langgraph/channels/last_value/LastValueAfterFinish/is_available)

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/b674dd46228b0928a6bc0ad9a3d8e38ef28f6895/libs/langgraph/langgraph/channels/last_value.py#L81)