# validate_goal_status_note

> **Function** in `deepagents_code`

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

Reject a goal status note that cannot fit its persistent context budget.

## Signature

```python
validate_goal_status_note(
    note: str,
    *,
    label: GoalStatusNoteLabel = 'Goal status note',
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `note` | `str` | Yes | Completion evidence or blocker explanation. |
| `label` | `GoalStatusNoteLabel` | No | Name of the value in the raised message. Override it when the note is not the live status note, because the message reaches the model verbatim and would otherwise name a field the notice does not carry. Restricted to the two note budgets, so it cannot name an unrelated one. (default: `'Goal status note'`) |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/goal_state_limits.py#L277)