# is_internal_message

> **Function** in `deepagents_code`

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

Return whether a message is hidden from user-facing session history.

## Signature

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

---

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