# relayed_user_tracing_secrets

> **Function** in `deepagents_code`

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

Extract caller API keys from the validated LangSmith settings carrier.

## Signature

```python
relayed_user_tracing_secrets(
    environ: Mapping[str, str],
) -> tuple[str, ...]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `environ` | `Mapping[str, str]` | Yes | Environment containing the client-to-server carrier. |

## Returns

`tuple[str, ...]`

Launch and user-command API keys for Auto mode output redaction.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/config.py#L1444)