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)
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.
tree_filter applies the same query syntax to runs anywhere in the trace tree. For predicates over arbitrary nested child-run fields, such as returned inputs, outputs, or extra payload paths, first narrow candidates with server-side filters, then hydrate root traces with child runs and traverse them locally. See Query trace trees with child-run predicates.Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

