# ThreadTask

> **Class** in `langgraph_sdk`

📖 [View in docs](https://reference.langchain.com/python/langgraph-sdk/schema/ThreadTask)

Represents a task within a thread.

## Signature

```python
ThreadTask()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    id: str,
    name: str,
    error: str | None,
    interrupts: list[Interrupt],
    checkpoint: Checkpoint | None,
    state: ThreadState | None,
    result: dict[str, Any] | None,
)
```

| Name | Type |
|------|------|
| `id` | `str` |
| `name` | `str` |
| `error` | `str \| None` |
| `interrupts` | `list[Interrupt]` |
| `checkpoint` | `Checkpoint \| None` |
| `state` | `ThreadState \| None` |
| `result` | `dict[str, Any] \| None` |


## Properties

- `id`
- `name`
- `error`
- `interrupts`
- `checkpoint`
- `state`
- `result`

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/1142ebf9213e3eb01b9d1e7223b9f6b30bf8da61/libs/sdk-py/langgraph_sdk/schema.py#L321)