# has_visible_reply

> **Function** in `deepagents_code`

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

Return whether a message has reply text or a tool call to act on.

Reasoning alone does not count: the user still gets no answer.

## Signature

```python
has_visible_reply(
    message: AIMessage,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `message` | `AIMessage` | Yes | A complete model message. |

## Returns

`bool`

`True` when the message has non-blank text or a parsed tool call.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/6a8d452d70f9bcb978e6bd44831dda093ecbe928/libs/code/deepagents_code/output_truncation.py#L137)