# coerce_goal_proposal_kind

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/resume_state/coerce_goal_proposal_kind)

Narrow a persisted proposal kind to a known value.

## Signature

```python
coerce_goal_proposal_kind(
    value: object,
) -> GoalProposalKind | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `value` | `object` | Yes | Raw value read from checkpoint state. |

## Returns

`GoalProposalKind | None`

The recognized proposal kind, otherwise `None`.

---

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