list_runs
method in the SDK or /runs/query
endpoint in the API.
LangSmith stores traces in a simple format that is specified in the Run (span) data format.
True
for is_root
. You can use this to filter for root runs.
project_name
, run_type
, etc. and directly return the runs matching the given IDs.session_id
, conversation_id
, or thread_id
. The following query matches on any of them.
total_tokens
is greater than 5000start_time
is greater than a specific timestamptotal_tokens
greater than 5000tags
include “experimental” or “beta” and latency
is greater than 2 secondssearch()
function without any specific field to do a full text search across all string fields in a run. This allows you to quickly find traces that match a search term.
eq
operator, optionally with an and
statement to match by value. This is useful if you want to log more structured information about your runs.
and
operator along with other filtering functions. Here’s how you can search for runs named “ChatOpenAI” that also have a specific conversation_id
in their metadata: