Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add test
Vasek Mlejnsky4e83b4bd85aa
diff --git a/api-service/test/test_action_parsing.py b/api-service/test/test_action_parsing.pyindex 2329dc9ee..a63713a04 100644--- a/api-service/test/test_action_parsing.py+++ b/api-service/test/test_action_parsing.py@@ -15,6 +15,17 @@ class Action(NamedTuple):llm_outputs: List[Dict[str, Any]] = [+ {+ "llm_output": """Action:+```+<action tool="AskHuman">+What should the post request handler do?+</action>+```""",+ "expected_actions": [+ Action("AskHuman", "What should the post request handler do?")+ ],+ },{"llm_output": """Thought: Lorem ipsum@@ -136,3 +147,5 @@ def test_parsing_llm_action_output():):assert parsed_action.attrib["tool"] == expected_action.toolassert parsed_action.text.strip() == expected_action.input.strip()++ break