# path_template

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/_openapi_client/_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-sdk/blob/687fc8d527a28504432f52bd08c75f2894c209fe/python/langsmith/_openapi_client/_utils/_path.py#L78)