# path_template

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_utils/_path/path_template)

Interpolate {name} placeholders in `template` from keyword arguments.

## Signature

```python
path_template(
    template: str,
    /,
    kwargs: Any = {},
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `template` | `str` | Yes | The template string containing {name} placeholders. |
| `**kwargs` | `Any` | No | Keyword arguments to interpolate into the template. (default: `{}`) |

## Returns

`str`

The template with placeholders interpolated and percent-encoded.

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/_utils/_path.py#L78)