# notice_text_sections

> **Function** in `deepagents_code`

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

Select the user-controlled text a notice built from `projected` embeds.

The objective and status note are withheld unless the goal is actionable,
while criteria are embedded whenever a rubric is active — a one-shot rubric
stays applicable over a paused goal.

Every caller that validates notice size must project identically to the
renderer, or a size check passes against text the notice does not contain (or
vice versa). One caller deliberately does not: `app._resume_goal` validates
the state as it will be *after* the resume, because projecting a still-paused
goal would suppress the objective and note it is about to embed.

## Signature

```python
notice_text_sections(
    projected: GoalStateProjection,
) -> NoticeTextSections
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `projected` | `GoalStateProjection` | Yes | Canonical goal/rubric projection from `project_goal_state`. |

## Returns

`NoticeTextSections`

The sections to embed, with `None` for each one this state omits.

---

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