Skip to content

Commit

Permalink
treemind组件开发
Browse files Browse the repository at this point in the history
  • Loading branch information
yepeiwen01 committed Nov 7, 2024
1 parent 27920ac commit 718773c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions appbuilder/tests/test_treemind.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ def setUp(self):
Returns:
None.
"""
# 从环境变量中提取CarExpert组件的TOKEN
os.environ["APPBUILDER_TOKEN"] = "Bearer bce-v3/ALTAK-6AGZK6hjSpZmEclEuAWje/6d2d2ffc438f9f2ba66e23b21de69d96e7e5713a"
os.environ["GATEWAY_URL"] = "http://10.138.138.29"
self.tm = TreeMind()
self.query = "生成一份年度总结的思维导图"

Expand All @@ -39,7 +36,7 @@ def test_treemind_component_tool_eval(self):
result = self.tm.tool_eval(query=self.query)
self.assertIsNotNone(result)
for r in result:
# print(r)
print(r)
self.assertIsNotNone(r)
self.assertIn(r["type"],["text", "urls"])

Expand All @@ -48,7 +45,7 @@ def test_treemind_component_run(self):
"""
msg = Message(content=self.query)
result = self.tm.run(msg)
# print(result)
print(result)
self.assertIsNotNone(result)
self.assertIsInstance(result, Message)

Expand Down

0 comments on commit 718773c

Please sign in to comment.