Skip to content

Add gh-style API fields#109

Merged
Ramon Nogueira (ramon-langchain) merged 1 commit into
mainfrom
ramonn/gh-api-interface
May 6, 2026
Merged

Add gh-style API fields#109
Ramon Nogueira (ramon-langchain) merged 1 commit into
mainfrom
ramonn/gh-api-interface

Conversation

@ramon-langchain
Copy link
Copy Markdown
Member

@ramon-langchain Ramon Nogueira (ramon-langchain) commented May 6, 2026

Summary

  • Add gh-style request flags to langsmith api: -X/--method, -f/--raw-field, -F/--field, and --input.
  • Default requests to GET, auto-switch to POST when body/field/input flags are used, and keep -X GET fields in the query string.
  • Add JSON field parsing for typed values, nested objects, arrays, and @file / @- values.

Test Plan

  • go test ./...

@ramon-langchain Ramon Nogueira (ramon-langchain) marked this pull request as ready for review May 6, 2026 13:43
@ramon-langchain Ramon Nogueira (ramon-langchain) merged commit 4600913 into main May 6, 2026
10 checks passed
Mukil Loganathan (langchain-infra) pushed a commit to langchain-ai/docs that referenced this pull request May 8, 2026
## Description
Adds a `Call the LangSmith API directly` section to
`src/langsmith/langsmith-cli.mdx` documenting the `langsmith api`
subcommand. Covers only the new gh-style interface introduced in
<langchain-ai/langsmith-cli#109> (`-X METHOD`,
`-F`/`-f`, `--input`, default `GET`, auto-POST when fields/body are
supplied), plus the existing `api ls` / `api info` discovery
subcommands.

## Release Note
none

## Test Plan
- [ ] Render preview renders the new section between Manage sandboxes
and Filter flags

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
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