Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/langsmith/setup-app-requirements-txt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sidebarTitle: With requirements.txt

import FrameworkAgnosticPy from '/snippets/langsmith/framework-agnostic-py.mdx';
import FrameworkAgnosticJS from '/snippets/langsmith/framework-agnostic-js.mdx';
import PrereleaseBehavior from '/snippets/langsmith/pre-release-behavior.mdx';

An application must be configured with a [configuration file](/langsmith/cli#configuration-file) in order to be deployed to LangSmith (or to be self-hosted). This how-to guide discusses the basic steps to set up an application for deployment using `requirements.txt` to specify project dependencies.

Expand Down Expand Up @@ -107,6 +108,10 @@ my-app/
└── .env # environment variables
```

<Tip>
<PrereleaseBehavior/>
</Tip>

## Define Graphs

Implement your graphs. Graphs can be defined in a single file or multiple files. Make note of the variable names of each @[CompiledStateGraph] to be included in the application. The variable names will be used later when creating the [LangGraph configuration file](/langsmith/cli#configuration-file).
Expand Down
5 changes: 5 additions & 0 deletions src/langsmith/setup-pyproject.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sidebarTitle: With pyproject.toml

import FrameworkAgnosticPy from '/snippets/langsmith/framework-agnostic-py.mdx';
import FrameworkAgnosticJS from '/snippets/langsmith/framework-agnostic-js.mdx';
import PrereleaseBehavior from '/snippets/langsmith/pre-release-behavior.mdx';

An application must be configured with a [configuration file](/langsmith/cli#configuration-file) in order to be deployed to LangSmith (or to be self-hosted). This how-to guide discusses the basic steps to set up an application for deployment using `pyproject.toml` to define your package's dependencies.

Expand Down Expand Up @@ -119,6 +120,10 @@ my-app/
└── pyproject.toml
```

<Tip>
<PrereleaseBehavior/>
</Tip>

## Define Graphs

Implement your graphs. Graphs can be defined in a single file or multiple files. Make note of the variable names of each @[CompiledStateGraph] to be included in the application. The variable names will be used later when creating the [configuration file](/langsmith/cli#configuration-file).
Expand Down
4 changes: 4 additions & 0 deletions src/snippets/langsmith/pre-release-behavior.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
By default, LangSmith follows the `uv`/`pip` behavior of **not** installing prerelease versions unless explicitly allowed. If want to use prereleases, you have the following options:

- With `pyproject.toml`: add `allow-prereleases = true` to your `[tool.uv]` section.
- With `requirements.txt` or `setup.py`: you must explicitly specify every prerelease dependency, including transitive ones. For example, if you declare `a==0.0.1a1` and `a` depends on `b==0.0.1a1`, then you must also explicitly include `b==0.0.1a1` in your dependencies.