# set_run_metadata

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/run_helpers/set_run_metadata)

Update metadata on the current run tree.

## Signature

```python
set_run_metadata(
    **metadata: Any = {},
) -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/c2450d95237768ddd7e77a60f4939f164fca3e8d/python/langsmith/run_helpers.py#L107)