Judgment Labs Logo

judgment sessions

Search and inspect sessions in a project.

The Judgment CLI is deprecated and no longer under active development. This reference is retained for existing users. See the CLI deprecation notice for supported alternatives.

Search and inspect sessions in a project.

Commands

CommandDescription
sessions getGet session detail.
sessions searchSearch sessions.
sessions trace-behaviorsList behaviors observed across a session’s traces.
sessions trace-idsList trace IDs in a session.

sessions get

Get session detail.

judgment sessions get [OPTIONS] [[[ORG_ID] PROJECT_ID] SESSION_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] SESSION_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
-o, --outputyaml, jsonnoOutput format.

Search sessions.

Filter, sort, time-bound, and paginate sessions in a project.

judgment sessions search [OPTIONS] [[[ORG_ID] PROJECT_ID]...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID]no

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
--filterstextyesFilter expressions, ANDed together. Each item is {"field":<field>,"op":<op>,"value":<value>}. Allowed ops depend on the field's type. Op groups: - STRING_OPS = = | != | contains | does_not_contain - NUMERIC_OPS = = | != | < | <= | > | >= - ARRAY_ANY = any (matches when the row's array overlaps the supplied values) String fields (op in STRING_OPS, value is a string): session_id. Numeric fields (op in NUMERIC_OPS, value is a number): trace_count, latency (nanoseconds), total_cost (USD). Array fields (op = any, value is an array): behaviors (behavior UUIDs).
--time-rangetextno{"start_time":<iso8601-string>|null,"end_time":<iso8601-string>|null}. Either bound may be null to leave that side open. Invalid timestamps return 400.
--paginationtextyes{"limit":<int 1-200>,"cursorSortValue":<string>|null,"cursorItemId":<string>|null}. First page: pass null for both cursor fields. Each response returns nextCursor:{sort_value,session_id} (or null when hasMore=false); copy those into cursorSortValue and cursorItemId for the next page.
--sort-bytextno{"field":<sort_field>,"direction":"asc"|"desc"} where sort_field is one of: created_at, num_traces, latency, llm_cost. Default when omitted: {"field":"created_at","direction":"desc"}.
-o, --outputtable, yaml, jsonnoOutput format.

sessions trace-behaviors

List behaviors observed across a session’s traces.

judgment sessions trace-behaviors [OPTIONS] [[[ORG_ID] PROJECT_ID] SESSION_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] SESSION_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
-o, --outputyaml, jsonnoOutput format.

sessions trace-ids

List trace IDs in a session.

judgment sessions trace-ids [OPTIONS] [[[ORG_ID] PROJECT_ID] SESSION_ID...]

Arguments

NameRequired
[[ORG_ID] PROJECT_ID] SESSION_IDno

Options

FlagTypeRequiredDescription
--organization-id, --org-idtextnoOrganization ID. Defaults to JUDGMENT_ORG_ID or saved context.
--organization, --orgtextnoOrganization name to resolve.
--project-idtextnoProject ID. Defaults to JUDGMENT_PROJECT_ID or saved context.
--projecttextnoProject name to resolve.
-o, --outputyaml, jsonnoOutput format.