-
Notifications
You must be signed in to change notification settings - Fork 325
transfer langsmith-py sdk #805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mdrxy
wants to merge
3
commits into
main
Choose a base branch
from
mdrxy/ref-langsmith-sdk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Anonymizer | ||
|
|
||
| ::: langsmith.anonymizer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Async Client | ||
|
|
||
| ::: langsmith.async_client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Client | ||
|
|
||
| ::: langsmith.client |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Evaluation | ||
|
|
||
| ::: langsmith.evaluation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Expect API | ||
|
|
||
| ::: langsmith._expect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| title: LangSmith | ||
| --- | ||
|
|
||
| # Reference | ||
|
|
||
| Welcome to the LangSmith Python SDK reference docs! These pages detail the core interfaces you will use when building with LangSmith. | ||
|
|
||
| ## Quick Reference | ||
|
|
||
| | Class/function | Description | | ||
| | :- | :- | | ||
| | [Client](client.md) | Synchronous client for interacting with the LangSmith API. | | ||
| | [AsyncClient](async_client.md) | Asynchronous client for interacting with the LangSmith API. | | ||
| | [traceable](run_helpers.md) | Wrapper/decorator for tracing any function. | | ||
| | [evaluate](evaluation.md) | Evaluate a function or model on a dataset. | | ||
| | [RunTree](run_trees.md) | Tree structure representing a run and its nested runs. | | ||
| | [wrap_openai](wrappers.md) | Wrapper for OpenAI client, adds LangSmith tracing. | | ||
| | [wrap_anthropic](wrappers.md) | Wrapper for Anthropic client, adds LangSmith tracing. | | ||
|
|
||
| ## Core APIs | ||
|
|
||
| The primary interfaces for the LangSmith SDK. | ||
|
|
||
| - [Client](client.md): Synchronous client for the LangSmith API. | ||
| - [AsyncClient](async_client.md): Asynchronous client for the LangSmith API. | ||
| - [Run Helpers](run_helpers.md): Functions like `traceable`, `trace`, and tracing context management. | ||
| - [Run Trees](run_trees.md): Tree structure for representing runs and nested runs. | ||
| - [Evaluation](evaluation.md): Tools for evaluating functions and models on datasets. | ||
|
|
||
| ## Additional APIs | ||
|
|
||
| - [Schemas](schemas.md): Data schemas and type definitions. | ||
| - [Utilities](utils.md): Utility classes including error types and thread pool executors. | ||
| - [Wrappers](wrappers.md): Tracing wrappers for popular LLM providers. | ||
| - [Anonymizer](anonymizer.md): Tools for anonymizing sensitive data. | ||
| - [Testing](testing.md): Testing utilities and pytest integration. | ||
| - [Expect API](expect.md): Assertions and expectations for testing. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| title: Middleware | ||
| --- | ||
|
|
||
| # Middleware | ||
|
|
||
| ::: langsmith.middleware |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| title: Pytest Plugin | ||
| --- | ||
|
|
||
| # Pytest Plugin | ||
|
|
||
| ::: langsmith.pytest_plugin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Run Helpers | ||
|
|
||
| ::: langsmith.run_helpers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Run Trees | ||
|
|
||
| ::: langsmith.run_trees |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Schemas | ||
|
|
||
| ::: langsmith.schemas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Testing | ||
|
|
||
| ::: langsmith.testing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Utilities | ||
|
|
||
| ::: langsmith.utils |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Wrappers | ||
|
|
||
| ::: langsmith.wrappers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,11 @@ | ||
| # LangGraph Platform SDK Reference | ||
|
|
||
| ::: langgraph_sdk.client | ||
| handler: python | ||
|
|
||
| ::: langgraph_sdk.schema | ||
| handler: python | ||
|
|
||
| ::: langgraph_sdk.auth | ||
| handler: python | ||
|
|
||
| ::: langgraph_sdk.auth.types | ||
| handler: python | ||
|
|
||
| ::: langgraph_sdk.auth.exceptions | ||
| handler: python |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The navigation entry lists 'Expect API' but references a private module
langsmith._expect(with underscore prefix) in expect.md. Consider documenting whether this is intended to be a public API or if the module reference should point to a public interface.