# is_goal_state_message

> **Function** in `deepagents_code`

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

Return whether a message claims to be a goal-state notice.

## Signature

```python
is_goal_state_message(
    message: object,
) -> bool
```

---

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