# resolve_workspace

> **Function** in `deepagents_code`

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

Resolve a client-supplied cwd into a canonical workspace binding.

`cwd` is untrusted and is validated here. `workspace_config` is not: every
caller passes server-resolved policy. A client claim is verified against
server policy in `offload_api.workspace` and never reaches this function.

## Signature

```python
resolve_workspace(
    cwd: object,
    workspace_config: object | None = None,
    *,
    config_fingerprint: str | None = None,
) -> WorkspaceBinding
```

## Returns

`WorkspaceBinding`

A canonical, fingerprinted binding including the resource policy.

---

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