read_example
Retrieve specific examples from LangSmith datasets using example IDs and optional version timestamps for data analysis and model evaluation.
Instructions
Read a specific example from LangSmith.
Args: example_id (str): Example ID to retrieve as_of (Optional[str]): Dataset version tag OR ISO timestamp to retrieve the example as of that version/time ctx: FastMCP context (automatically provided)
Returns: Dict[str, Any]: Dictionary containing the example details, or an error message if the example cannot be retrieved
Example in case you need to create a separate python script to read an example: ```python from langsmith import Client
client = Client()
example = client.read_example(example_id="example-id-here")
# Or with version:
# example = client.read_example(example_id="example-id-here", as_of="v1.0")
```Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| example_id | Yes | ||
| as_of | No |