Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Change comment

Tomas Valenta1838ef78202d
diff --git a/api-service/codegen/agent/base.py b/api-service/codegen/agent/base.py
index dc8a1a3ba..20b5d4a0f 100644
--- a/api-service/codegen/agent/base.py
+++ b/api-service/codegen/agent/base.py
@@ -36,7 +36,7 @@ def actions_from_xml_string(xml_string: str):
# Parse the escaped string as an XML tree.
root = ET.fromstring(
- # Wrapping the XML in a fully formed root tag while some inner tags can be incomplete seems to be causing some small parsing errors ("</" added as a tag content)
+ # Wrapping the XML in a fully formed root tag while some inner tags can be incomplete doesn't make sense.
f"<root>{xml_string}",
# Use Parser with C binding for libxml2+libxslt, with recovery mode that allows to parse incomplete XML.
etree.XMLParser(recover=True),