You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And adding the use_e2b_executor=True flag in a different snipped leads to a loop that seems to successfully write code, but every code run throws not enough values to unpack (expected 3, got 2), which seems unrelated to the code produced by the agent:
model_id="meta-llama/Llama-3.3-70B-Instruct"model=HfApiModel(model_id=model_id, token=os.getenv("HF_TOKEN"))
agent=CodeAgent(tools=[], model=model, additional_authorized_imports=['requests', 'bs4'], use_e2b_executor=True)
agent.run("Could you get me the title of the page at url 'https://huggingface.co/blog'?")
Output:
Installationof ['requests', 'bs4', 'pickle5'] succeeded! 0Logs(stdout: [], stderr: [])
╭────────────────────────────────────────────────────────────────────────────────────────────── Newrun ───────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Couldyougetmethetitleofthepageaturl'https://huggingface.co/blog'? │
│ │
╰─ HfApiModel-meta-llama/Llama-3.3-70B-Instruct ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step0 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
─ Executingthiscode: ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
importrequestsurl='https://huggingface.co/blog'response=requests.get(url)
print(response.text)
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
notenoughvaluestounpack (expected3, got2)
[Step0: Duration1.32seconds|Inputtokens: 1,974|Outputtokens: 217]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
─ Executingthiscode: ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
# Given the constraints and the error, let's try a more basic approach # However, without specific tools for web interaction or HTML parsing, # directly achieving the goal is challenging. print("Directly fetching the title of the webpage is not feasible with the given tools.")
final_answer("Cannot be determined with the given tools.")
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
notenoughvaluestounpack (expected3, got2)
The two tested snippets do not throw these errors when setting use_e2b_executor=False
Environment:
smolagents==1.3.0
run in an ipynb with cursor in a poetry env with smolagents==1.3.0 installed
I'm trying to run the e2b example from the docs:
This throws the following error:
And adding the use_e2b_executor=True flag in a different snipped leads to a loop that seems to successfully write code, but every code run throws
not enough values to unpack (expected 3, got 2)
, which seems unrelated to the code produced by the agent:Output:
The two tested snippets do not throw these errors when setting
use_e2b_executor=False
Environment:
smolagents==1.3.0
run in an ipynb with cursor in a poetry env with smolagents==1.3.0 installed
% pip freeze
aiofiles==23.2.1
aiohappyeyeballs==2.4.4
aiohttp==3.11.11
aiosignal==1.3.2
annotated-types==0.7.0
anyio==4.8.0
appnope==0.1.4
asttokens==3.0.0
attrs==24.3.0
beautifulsoup4==4.12.3
certifi==2024.12.14
charset-normalizer==3.4.1
click==8.1.8
comm==0.2.2
debugpy==1.8.12
decorator==5.1.1
distro==1.9.0
duckduckgo_search==7.2.1
e2b==1.0.5
e2b-code-interpreter==1.0.3
executing==2.1.0
fastapi==0.115.6
ffmpy==0.5.0
filelock==3.16.1
frozenlist==1.5.0
fsspec==2024.12.0
gradio==5.12.0
gradio_client==1.5.4
h11==0.14.0
httpcore==1.0.7
httpx==0.27.2
huggingface-hub==0.27.1
idna==3.10
importlib_metadata==8.5.0
ipykernel==6.29.5
ipython==8.31.0
jedi==0.19.2
Jinja2==3.1.5
jiter==0.8.2
jsonschema==4.23.0
jsonschema-specifications==2024.10.1
jupyter_client==8.6.3
jupyter_core==5.7.2
litellm==1.58.2
lxml==5.3.0
markdown-it-py==3.0.0
markdownify==0.14.1
MarkupSafe==2.1.5
matplotlib-inline==0.1.7
mdurl==0.1.2
multidict==6.1.0
nest-asyncio==1.6.0
numpy==2.2.1
openai==1.59.7
orjson==3.10.14
packaging==24.2
pandas==2.2.3
parso==0.8.4
pexpect==4.9.0
pillow==11.1.0
platformdirs==4.3.6
primp==0.10.1
prompt_toolkit==3.0.48
propcache==0.2.1
protobuf==5.29.3
psutil==6.1.1
ptyprocess==0.7.0
pure_eval==0.2.3
pydantic==2.10.5
pydantic_core==2.27.2
pydub==0.25.1
Pygments==2.19.1
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-multipart==0.0.20
pytz==2024.2
PyYAML==6.0.2
pyzmq==26.2.0
referencing==0.36.1
regex==2024.11.6
requests==2.32.3
rich==13.9.4
rpds-py==0.22.3
ruff==0.9.2
safehttpx==0.1.6
safetensors==0.5.2
semantic-version==2.10.0
shellingham==1.5.4
six==1.17.0
smolagents==1.3.0
sniffio==1.3.1
soupsieve==2.6
stack-data==0.6.3
starlette==0.41.3
tiktoken==0.8.0
tokenizers==0.21.0
tomlkit==0.13.2
tornado==6.4.2
tqdm==4.67.1
traitlets==5.14.3
transformers==4.48.0
typer==0.15.1
typing_extensions==4.12.2
tzdata==2024.2
urllib3==2.3.0
uvicorn==0.34.0
wcwidth==0.2.13
websockets==14.1
yarl==1.18.3
zipp==3.21.0
The text was updated successfully, but these errors were encountered: