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
Currently, when the LLM's observation contains multiple code blobs, only the first code blob ends up getting executed. I would expect that all code blobs written by the LLM should get executed?
Example:
Thought: Let's begin xxx...
Code:
print(1)
<end_code>
Now, let's focus on zzz
Code:
print(2)
<end_code>
Output:
1
Expected output:
1
2
The text was updated successfully, but these errors were encountered:
joshcx
changed the title
parse_code_blob only parses first code blob in CodeAgent's Thought
parse_code_blob only parses first code blob in CodeAgent's Observation
Jan 8, 2025
smolagents/src/smolagents/utils.py
Line 108 in 681758a
Currently, when the LLM's observation contains multiple code blobs, only the first code blob ends up getting executed. I would expect that all code blobs written by the LLM should get executed?
Example:
Thought: Let's begin xxx...
Code:
<end_code>
Now, let's focus on zzz
Code:
<end_code>
Output:
1
Expected output:
1
2
The text was updated successfully, but these errors were encountered: