client#
Client for interacting with the LangSmith API.
Use the client to customize API keys / workspace ocnnections, SSl certs, etc. for tracing.
Also used to create, read, update, and delete LangSmith resources such as runs (~trace spans), datasets, examples (~records), feedback (~metrics), projects (tracer sessions/groups), etc.
For detailed API documentation, visit: https://docs.smith.langchain.com/.
Classes
|
Client for interacting with the LangSmith API. |
Functions
Add runs to an annotation queue with the specified queue ID. |
|
|
Evaluate an async target system on a given dataset. |
|
Evaluate a run asynchronously. |
|
Batch ingest/upsert multiple runs in the Langsmith system. |
Manually trigger cleanup of the background thread. |
|
|
Clone a public dataset to your own langsmith tenant. |
Create an annotation queue on the LangSmith API. |
|
|
Add an example (row) to a Chat-type dataset. |
|
Create a commit for an existing prompt. |
Create a comparative experiment on the LangSmith API. |
|
|
Create a dataset in the LangSmith API. |
|
Create a dataset example in the LangSmith API. |
|
Add an example (row) to a dataset from a run. |
|
Create examples in a dataset. |
|
Create a feedback in the LangSmith API. |
Create feedback from a presigned token or URL. |
|
|
Add an example (row) to an LLM-type dataset. |
Create a pre-signed URL to send feedback data to. |
|
Create a pre-signed URL to send feedback data to. |
|
|
Create a project on the LangSmith API. |
|
Create a new prompt. |
|
Persist a run to the LangSmith API. |
|
Delete an annotation queue with the specified queue ID. |
|
Delete a dataset from the LangSmith API. |
|
Delete an example by ID. |
|
Delete a feedback by ID. |
|
Delete a project from LangSmith. |
|
Delete a prompt. |
Delete a run from an annotation queue with the specified queue ID and run ID. |
|
Get the difference between two versions of a dataset. |
|
|
Evaluate a target system on a given dataset. |
|
Evaluate a run. |
|
Get a specific prompt by its identifier. |
Get a run from an annotation queue at the specified index. |
|
|
Get aggregate statistics over queried runs. |
|
Get the URL for a run. |
|
Read the record-level information from an experiment into a Pandas DF. |
|
Check whether a dataset exists in your tenant. |
|
Check if a project exists. |
|
Enable dataset indexing. |
|
Like a prompt. |
|
List the annotation queues on the LangSmith API. |
|
Get the splits for a dataset. |
|
List dataset versions. |
|
List the datasets on the LangSmith API. |
|
Retrieve the example rows of the specified dataset. |
|
List the feedback objects on the LangSmith API. |
List the feedback ingest tokens for a run. |
|
|
List projects from the LangSmith API. |
|
List commits for a given prompt. |
|
List prompts with pagination. |
|
List runs from the LangSmith API. |
|
Get shared examples. |
|
List shared projects. |
|
Get shared runs. |
|
Batch ingest/upsert multiple runs in the Langsmith system. |
|
Pull a prompt and return it as a LangChain PromptTemplate. |
|
Pull a prompt object from the LangSmith API. |
|
Push a prompt to the LangSmith API. |
|
Read an annotation queue with the specified queue ID. |
|
Read a dataset from the LangSmith API. |
Download a dataset in OpenAI Jsonl format and load it as a list of dicts. |
|
Retrieve the shared schema of a dataset. |
|
|
Get dataset version by as_of or exact tag. |
|
Read an example from the LangSmith API. |
|
Read a feedback from the LangSmith API. |
|
Read a project from the LangSmith API. |
|
Read a run from the LangSmith API. |
Retrieve the shared link for a specific run. |
|
|
Get shared datasets. |
|
Get shared runs. |
|
Send a request with retries. |
|
Get share state for a run. |
|
Get a share link for a dataset. |
|
Get a share link for a run. |
|
Retrieve the dataset examples whose inputs best match the current inputs. |
|
Unlike a prompt. |
|
Delete share link for a dataset. |
|
Delete share link for a run. |
|
Update an annotation queue with the specified queue_id. |
|
Update the splits for a dataset. |
|
Update the tags of a dataset. |
|
Update a specific example. |
|
Update multiple examples. |
|
Update a feedback in the LangSmith API. |
|
Update a LangSmith project. |
|
Update a prompt's metadata. |
|
Update a run in the LangSmith API. |
|
Upload a CSV file to the LangSmith API. |
|
Upload a dataframe as individual examples to the LangSmith API. |
Deprecated functions
|
Asynchronously run the Chain or language model on a dataset. |
|
Run the Chain or language model on a dataset. |