# managed_decided

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/configuration/service/managed_decided)

Return whether managed policy decided a value with this source label.

A structured option merges both layers and reports a combined label, so
`source == MANAGED_SOURCE` is the wrong test and silently answers `False`
for a leaf managed policy does control.

## Signature

```python
managed_decided(
    source: str,
) -> bool
```

## Returns

`bool`

Whether managed policy contributed the value.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/configuration/service.py#L104)