# task_path_str

> **Function** in `langgraph`

📖 [View in docs](https://reference.langchain.com/python/langgraph/pregel/_algo/task_path_str)

Generate a string representation of the task path.

## Signature

```python
task_path_str(
    tup: str | int | tuple,
) -> str
```

---

[View source on GitHub](https://github.com/langchain-ai/langgraph/blob/b674dd46228b0928a6bc0ad9a3d8e38ef28f6895/libs/langgraph/langgraph/pregel/_algo.py#L1210)