# resolve_scalar

> **Function** in `deepagents_code`

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

Resolve an option against the environment then `config.toml`.

## Signature

```python
resolve_scalar(
    option: ConfigOption,
    *,
    toml_data: dict[str, Any],
) -> tuple[Any, str]
```

## Description

Resolution order is: the prefixed primary `env_var`, then each
`fallback_env_vars` name in declaration order, then `config.toml`, then the
typed `default`.

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `option` | `ConfigOption` | Yes | The option to resolve. |
| `toml_data` | `dict[str, Any]` | Yes | Parsed `config.toml` mapping (see `load_config_toml`). |

## Returns

`Any`

`(value, source)`, where `source` is `env (<name>)`, `config.toml`, or

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/config_manifest.py#L609)