Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Cleanup
Tomas Valenta35cebc0411d3
diff --git a/api-service/codegen/agent/parsing.py b/api-service/codegen/agent/parsing.pyindex afe639bed..08d73c025 100644--- a/api-service/codegen/agent/parsing.py+++ b/api-service/codegen/agent/parsing.py@@ -39,8 +39,8 @@ def merge_logs(t: TypedDict, o: TypedDict):action_tag_open = "<action(\\s+tool=\".+?\")?\\s*\\/?>?"action_tag_close = "</\\s*action\\s*>?"-action_tag_check_pattern = re.compile(f"{action_tag_open}|{action_tag_close}")action_tag_split_pattern = re.compile(f"({action_tag_open}.*?{action_tag_close})|(.+)")+action_tag_check_pattern = re.compile(f"{action_tag_open}|{action_tag_close}")def parse_text(text: str):escaped = "".join(