# build_goal_state_notice

> **Function** in `deepagents_code`

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

Build one canonical append-only goal/rubric state notice.

## Signature

```python
build_goal_state_notice(
    state: Mapping[str, object],
    *,
    event_id: str | None = None,
    prior_blocker: str | None = None,
) -> HumanMessage
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `state` | `Mapping[str, object]` | Yes | Authoritative goal and rubric channels. |
| `event_id` | `str \| None` | No | Optional stable identifier for deterministic tests. (default: `None`) |
| `prior_blocker` | `str \| None` | No | Optional blocker context retained when a goal resumes. (default: `None`) |

## Returns

`HumanMessage`

Internal model-context `HumanMessage` carrying goal/rubric state and

---

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