Skip to main content
Using the method in the SDK or endpoint in the API, you can filter runs to analyze and export.

Filter arguments

Performance tip: Passing the select parameter and excluding inputs and outputs from the list can significantly improve query performance and reduce response sizes, especially for large runs.

Filter query language

LangSmith supports powerful filtering capabilities with a filter query language to permit complex filtering operations when fetching runs. The filtering grammar is based on common comparators on fields in the run object. Supported comparators include:
  • gte (greater than or equal to)
  • gt (greater than)
  • lte (less than or equal to)
  • lt (less than)
  • eq (equal to)
  • neq (not equal to)
  • has (check if run contains a tag or metadata json blob)
  • search (search for a substring in a string field)
Additionally, you can combine multiple comparisons through the and operator. These can be applied on fields of the run object, such as its id, name, run_type, start_time / end_time, latency, total_tokens, error, execution_order, tags, and any associated feedback through feedback_key and feedback_score.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.