Skip to content

fix: correct runs/query example in api command help#135

Merged
Quentin Brosse (QuentinBrosse) merged 1 commit into
mainfrom
open-swe/fix-api-runs-query-example
May 18, 2026
Merged

fix: correct runs/query example in api command help#135
Quentin Brosse (QuentinBrosse) merged 1 commit into
mainfrom
open-swe/fix-api-runs-query-example

Conversation

@open-swe
Copy link
Copy Markdown

@open-swe open-swe Bot commented May 18, 2026

Description

The runs/query endpoint requires session as a list, so the previous example -F session_id=abc returned HTTP 400 ("At least one of 'session', 'id', 'parent_run', 'trace' or 'reference_example' must be specified"). Use the array shorthand session[]=abc that the field parser already supports.

Release Note

none

Test Plan

  • langsmith api --help shows the corrected example

Opened collaboratively by Quentin Brosse and open-swe.

The runs/query endpoint expects 'session' as a list, so '-F session_id=abc'
returns HTTP 400. Update the help example to use the array shorthand
'session[]=abc' that the field parser supports.

Co-authored-by: Quentin Brosse <10938538+QuentinBrosse@users.noreply.github.com>
@QuentinBrosse Quentin Brosse (QuentinBrosse) marked this pull request as ready for review May 18, 2026 17:39
@QuentinBrosse Quentin Brosse (QuentinBrosse) merged commit 43ece1a into main May 18, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants