# is_warning_suppressed

> **Function** in `deepagents_cli`

📖 [View in docs](https://reference.langchain.com/python/deepagents-cli/model_config/is_warning_suppressed)

Check if a warning key is suppressed in the config file.

Reads the `[warnings].suppress` list from `config.toml` and checks
whether `key` is present.

## Signature

```python
is_warning_suppressed(
    key: str,
    config_path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `key` | `str` | Yes | Warning identifier to check (e.g., `'ripgrep'`). |
| `config_path` | `Path \| None` | No | Path to config file.  Defaults to `~/.deepagents/config.toml`. (default: `None`) |

## Returns

`bool`

`True` if the warning is suppressed, `False` otherwise (including
when the file is missing, unreadable, or has no
`[warnings]` section).

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64ecf141be0479f859f4efe25d139166b45ee18c/libs/cli/deepagents_cli/model_config.py#L1228)