forked from langchain-ai/langchainjs
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Add code execution middleware #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
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
…y deep and possibly infinite" error (langchain-ai#8630)
…langchain-ai#8618) Co-authored-by: Hunter Lovell <[email protected]>
Co-authored-by: Hunter Lovell <[email protected]>
Co-authored-by: Hunter Lovell <[email protected]>
pokey
commented
Oct 8, 2025
pokey
commented
Oct 8, 2025
pokey
commented
Oct 8, 2025
libs/providers/langchain-anthropic/src/middleware/codeExecution.ts
Outdated
Show resolved
Hide resolved
| name: "codeExecutionMiddleware", | ||
| stateSchema, | ||
| tools: containerProvider.tools, | ||
| beforeModel: async (state) => { |
Owner
Author
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prob want a way for middleware to shut itself off if the model is unsupported, eg Anthropic middleware with OpenAI model
Co-authored-by: Hunter Lovell <[email protected]> Co-authored-by: Hunter Lovell <[email protected]>
06102b5 to
1e2612f
Compare
0dd69d5 to
33feab1
Compare
a70bb99 to
bdbfa73
Compare
Co-authored-by: Christian Bromann <[email protected]> Co-authored-by: Eugene Yurtsev <[email protected]> Co-authored-by: Jorge Lanzarotti <[email protected]> Co-authored-by: itaismith <[email protected]> Co-authored-by: Dylan Dignan <[email protected]> Co-authored-by: Xuma <[email protected]> Co-authored-by: Jack Ye <[email protected]> Co-authored-by: Uriel Chemouni <[email protected]> Co-authored-by: Rafael Reis <[email protected]> Co-authored-by: Mikias Tilahun Abebe <[email protected]> Co-authored-by: jacoblee93 <[email protected]> Co-authored-by: Sriram Nyshadham <[email protected]> Co-authored-by: Lucian Mocanu <[email protected]> Co-authored-by: Elliot Scribner <[email protected]> Co-authored-by: anadi45 <[email protected]> Co-authored-by: ghdcksgml1 <[email protected]> Co-authored-by: Caspar Broekhuizen <[email protected]> Co-authored-by: Rito <[email protected]> Co-authored-by: David Duong <[email protected]> Co-authored-by: Yohan Lasorsa <[email protected]> Co-authored-by: Duda Nogueira <[email protected]> Co-authored-by: Piotr <[email protected]> Co-authored-by: Matt Blum <[email protected]> Co-authored-by: Ranjeet Baraik <[email protected]> Co-authored-by: Zac Lovoy <[email protected]> Co-authored-by: J3tCh3n <[email protected]> Co-authored-by: Yury Kozyrev <[email protected]> Co-authored-by: Yury Kozyrev <[email protected]> Co-authored-by: Pokey Rule <[email protected]> Co-authored-by: Durran Jordan <[email protected]> Co-authored-by: rliu6915 <[email protected]> Co-authored-by: Dag7 <[email protected]>
bdbfa73 to
8fcaa72
Compare
8fcaa72 to
8eff2cb
Compare
Owner
Author
|
Closing in favour of langchain-ai#9209 |
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.
modelSettingsto middleware langchain-ai/langchainjs#9110 is mergedcodeExecutionAnthropicinstead ofcodeExecution. Internally can just wrap existing impl. Something like:/tmp/prefix. See https://smith.langchain.com/public/79d05f34-2924-4707-b0ae-73b8da3d9a9d/r