Repository navigation
fix: preserve nullable tool parameter schemas - #573
Merged
Merged
Conversation
This was referenced Sep 5, 2026
blove
temporarily deployed
to
vercel-preview
September 10, 2026 06:14 — with
GitHub Actions
Inactive
blove
enabled auto-merge (squash)
September 10, 2026 06:32
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tool parameters declared as nullable lost
nullduring schema generation, causing valid nullable inputs to fail runtime validation. This change emits explicit null alternatives and validates them in the LangChain adapter while preserving required versus optional fields and existing non-null conversion behavior.Includes regression coverage for nullable primitives, string literals, arrays, objects, nested fields, standalone null, and rejection of unrelated values. Updated to current B4.run contracts with a patch changeset for
@b4run/coreand@b4run/langchain.Validation: workspace build passed (25 tasks); focused schema and converter tests passed (56 tests); independent diff review found no blocking regressions. Full checks are running on the refreshed branch and must pass before merge.
Existing limitation: numeric and boolean literal constraints are widened by the existing compiler/converter. This PR preserves that behavior; exact literal validation is tracked as follow-up under #605.
Part of #605.