[Bug]: CodeActAgent: o1 replies may contain <execute_ipython> in finish action #4017
Closed
2 tasks done
Labels
agent quality
Related to specific agent quality
bug
Something isn't working
severity:medium
Affecting multiple users
Stale
Inactive for 30 days
Is there an existing issue for the same bug?
Describe the bug
Due to how o1-mini works, and probably o1-preview as well, it may return an
AgentFinishAction
with embedded code.Apparently this is currently not supported in the agent as there is no
CodeActActionParserIPythonRunCell
triggered.Example with content manually shortened and line breaks added for readability:
In that step's LLM response log we can see at the bottom:
In the main logfile we see the
AgentFinishAction
(I manually added line breaks here for readability):Current OpenHands version
Installation and Configuration
Model and Agent
Operating System
WSL
Reproduction Steps
See trajectory:
https://www.all-hands.dev/share?share_id=58c3e506b401943c64cc9a2091c7173fe7500c176639ac3fbbdd6659becd1d64
Logs, Errors, Screenshots, and Additional Context
No response
The text was updated successfully, but these errors were encountered: