mirror of
https://github.com/langchain-ai/langgraph-codeact.git
synced 2026-07-25 05:05:31 -04:00
Support for requests using langchain-sandbox as eval function #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @valenvivaldi on GitHub (May 12, 2025).
Hi, everyone!
First of all, I want to thank you for your amazing work on LangChain and LangGraph.
I am not very sure if the issue need to be reported here or
langchain-sandboxrepo, but I will try to explain the issue I am facing.I’m building a CodeAct agent using PyodideSandbox example added recently in
langchain-sandboxand this repo, and encountered consistent issues when trying to make network requests from within the sandboxed environment. I tried three approaches, but none work reliably.I will share the code below, which each approach I tried, and the errors I encountered.
Is there a way to allow network requests in the sandboxed environment? Or its there a workaround to achieve this?
Or its simply not supported yet?
Thanks for your help!
@vbarda commented on GitHub (May 15, 2025):
I believe only
httpxrequests are supported at the moment cc @eyurtsev@eyurtsev commented on GitHub (May 15, 2025):
Please use async httpx for making network requests.
functionality of
requestsis limited by pyodide@valenvivaldi commented on GitHub (Jun 4, 2025):
Okay, I think I tried that but it didn't work. I'll try again, by chance you don't have any sample code to give as a “template” so that I know how to generate the code correctly?