Skip to content

Conversation

@pokey
Copy link
Contributor

@pokey pokey commented Oct 24, 2025

When passing withLangGraph as the stateSchema either directly to createAgent or to middleware, defaults are not properly detected

Note that I was not able to get the type checking to work properly here, so I'm leaving this as draft. See the tests and the type errors in CI

I would be tempted to have langgraph make types optional if a default is passed or if there is a reducer, which tries to apply a default, but maybe that wasn't done for a reason

When passing `withLangChain` as the `stateSchema` either directly to `createAgent` or to middleware, defaults are not properly detected

Note that I was not able to get the type checking to work properly here, so I'm leaving this as draft. See the tests and the type errors in CI
@changeset-bot
Copy link

changeset-bot bot commented Oct 24, 2025

⚠️ No Changeset found

Latest commit: 0e8f141

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@pokey pokey changed the title feat(agents): Improve handling of withLangChain annotations feat(agents): Improve handling of withLangGraph annotations Oct 24, 2025
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.

1 participant