class RunsReturns the URL to view a specific run in the LangSmith UI. The caller must supply the run's project_id and trace_id as query parameters; start_time is optional.
Self-hosted deployments require LangSmith v0.16 or later.
GET with body payload — no resources created. Returns the runs matching the query passed as the request payload.
Returns a paginated list of runs for the given projects within min/max
start_time. Supports filters, cursor pagination, and selects to select fields
to return.
Use filter to match each returned run, trace_filter to match its trace root,
and tree_filter to require a matching run anywhere in its trace. The supplied
filters are combined with AND. On deployments that support v2 filter syntax,
pass search expressions such as run_type:llm AND latency:>5 in filter. For
fields that support literal equality, field:value matches exactly (for
example, name:agent). Input and output values use token matching:
input.text:hello can match hello world. Use >, >=, <, or <= after
the colon for comparisons, and AND, OR, NOT, and parentheses to combine
conditions. Quote values containing spaces or colons, as in name:"My agent".
Use dotted paths for metadata, as in metadata.env:prod. On deployments that
route queries to the legacy backend, v2 filter expressions return HTTP 501. Use
legacy function-style filters
instead.
ai_search cannot be combined with sem_filter. With full AI search enabled,
ai_search translates natural language into query filters and time bounds and
cannot be combined with explicit filter expressions. Otherwise, ai_search
retains legacy semantic-only behavior. Use sem_filter for semantic-only
matching combined with structured filters. AI search requires organization
consent. When semantic matching is needed, Accept: text/event-stream is
required; requests without it return 406. AI search is unavailable on
deployments that route queries to the v1 backend and returns 501 there.
Self-hosted deployments require LangSmith v0.16 or later.
Returns one run by ID for the given session. Use the selects query parameter
(repeatable) to select fields to return.
Self-hosted deployments require LangSmith v0.16 or later.