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")
```Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"example_id": "<example_id>"
},
"name": "read_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| example_id | Yes | ||
| as_of | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||