OpenAI compatibility#21
Merged
Merged
Conversation
Keeps a singular tool, but with a more structured tool schema. The "flat schema of all possible fields" is an artifact of trying to fit anthropic's internal schema into langgraph's infrastructure. OpenAI we're defining the tooling, so we can do better.
Paper over differences in "standardized" (lol) usage metrics, and normalize `list[dict | str]` and `list[dict]` (openai doesn't let you intermix string and dicts within a list of content, booo)
naftali-g
reviewed
Jun 2, 2026
shellygr
reviewed
Jun 30, 2026
shellygr
left a comment
Contributor
There was a problem hiding this comment.
looks like there are some comments by Naftali that you acknowledged but didn't fix yet.
otherwise lgtm
Contributor
Author
you're right, I hallucinated that I did |
shellygr
approved these changes
Jun 30, 2026
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.
invokeandainvokewrappers to paper over the difference in input list schemas (anthropic allows bare strings in lists, openai doesn't)