| Name | Type | Description |
|---|---|---|
name* | str | Sandbox name. |
path* | str | File path inside the sandbox. |
expires_in_seconds | Optional[int] | Default: NoneLink TTL in seconds. Omit for a link that never expires. |
content_type | Optional[str] | Default: None |
content_disposition | Optional[DownloadContentDisposition] | Default: None |
headers | RequestHeaders | Default: None |
Create a link that downloads one file from a sandbox.
The link carries its own token, so anyone holding the URL can fetch that one file without a LangSmith credential. It is pinned to the sandbox and the exact path and cannot be repointed at another file. Fetching wakes a stopped sandbox.
Do not modify the file after minting a link for it. The link is pinned to a path, not to a snapshot of the contents, so a later write to that path may or may not be reflected in what the link serves. Write a new file and mint a new link when the contents change.
Content-Type to serve the file as.
Content-Disposition to serve the file with,
either "attachment" or "inline".
Optional per-request header overrides.