list_examples
Fetch examples from LangSmith datasets by ID, name, or example IDs. Apply filters, metadata, splits, and versioning to retrieve targeted data for analysis or evaluation.
Instructions
Fetch examples from a LangSmith dataset with advanced filtering options.
Either dataset_id, dataset_name, or example_ids must be provided.
Args: dataset_id (str, optional): Dataset ID to retrieve examples from dataset_name (str, optional): Dataset name to retrieve examples from example_ids (str, optional): Example IDs as JSON array string or single ID filter (str, optional): Filter string using LangSmith query syntax metadata (str, optional): Metadata filter as JSON object string splits (str, optional): Dataset splits as JSON array string or single split inline_s3_urls (str, optional): "true" or "false" include_attachments (str, optional): "true" or "false" as_of (str, optional): Dataset version tag or ISO timestamp limit (int): Max examples to return (default: 10) offset (str, optional): Number of examples to skip
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | Dataset version tag or ISO timestamp | |
| limit | No | Maximum number of examples to return | |
| filter | No | Filter string using LangSmith query syntax | |
| offset | No | Number of examples to skip | |
| splits | No | Dataset splits as JSON array string or single split | |
| metadata | No | Metadata filter as JSON object string | |
| dataset_id | No | Dataset ID to retrieve examples from | |
| example_ids | No | Example IDs as JSON array string or single ID | |
| dataset_name | No | Dataset name to retrieve examples from | |
| inline_s3_urls | No | "true" or "false" | |
| include_attachments | No | "true" or "false" |