# has_goal_or_rubric_state

> **Function** in `deepagents_code`

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

Return whether state contains a goal or an active rubric.

## Signature

```python
has_goal_or_rubric_state(
    state: Mapping[str, object],
) -> bool
```

---

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