Skip to content

Conversation

wbadart
Copy link
Contributor

@wbadart wbadart commented Sep 23, 2025

The Runs API includes the /runs endpoint to allow runs to be created independently of existing threads. This commit exposes this feature to the SDK by allowing the threadId passed to RunClient.create to be null. When threadId === null, the create client falls back from the /threads/:id/runs endpoint to the /runs endpoint.

Thanks for your consideration!

The Runs API includes the `/runs` endpoint to allow runs to be created independently of existing threads. This commit exposes this feature to the SDK by allowing the `threadId` passed to `RunClient.create` to be `null`. When `threadId === null`, the `create` client falls back from the `/threads/:id/runs` endpoint to the `/runs` endpoint.
Copy link

changeset-bot bot commented Sep 23, 2025

🦋 Changeset detected

Latest commit: 5cd81b5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@langchain/langgraph-sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

dqbd
dqbd previously approved these changes Sep 29, 2025
@dqbd dqbd enabled auto-merge (squash) September 30, 2025 11:17
@dqbd dqbd merged commit 02beb41 into langchain-ai:main Sep 30, 2025
16 checks passed
@wbadart wbadart deleted the patch-1 branch September 30, 2025 18:24
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