# format_warning_detail

> **Function** in `deepagents_code`

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

Join safety warnings into a display string with overflow indicator.

## Signature

```python
format_warning_detail(
    warnings: tuple[str, ...],
    *,
    max_shown: int = 2,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `warnings` | `tuple[str, ...]` | Yes | Warning strings from a `UrlSafetyResult`. |
| `max_shown` | `int` | No | Maximum warnings to include before truncating. (default: `2`) |

## Returns

`str`

Semicolon-separated detail string, e.g. `'warn1; warn2; +1 more'`.

---

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