Sun Tao
commited on
Commit
·
2ffc766
1
Parent(s):
427a34e
Update run_deepseek_zh.py
Browse files- owl/run_deepseek_zh.py +4 -0
owl/run_deepseek_zh.py
CHANGED
@@ -23,8 +23,10 @@ from dotenv import load_dotenv
|
|
23 |
|
24 |
from camel.models import ModelFactory
|
25 |
from camel.toolkits import (
|
|
|
26 |
SearchToolkit,
|
27 |
FileWriteToolkit,
|
|
|
28 |
)
|
29 |
from camel.types import ModelPlatformType, ModelType
|
30 |
|
@@ -64,8 +66,10 @@ def construct_society(question: str) -> OwlRolePlaying:
|
|
64 |
|
65 |
# Configure toolkits
|
66 |
tools = [
|
|
|
67 |
SearchToolkit().search_duckduckgo,
|
68 |
SearchToolkit().search_wiki,
|
|
|
69 |
*FileWriteToolkit(output_dir="./").get_tools(),
|
70 |
]
|
71 |
|
|
|
23 |
|
24 |
from camel.models import ModelFactory
|
25 |
from camel.toolkits import (
|
26 |
+
ExcelToolkit,
|
27 |
SearchToolkit,
|
28 |
FileWriteToolkit,
|
29 |
+
CodeExecutionToolkit,
|
30 |
)
|
31 |
from camel.types import ModelPlatformType, ModelType
|
32 |
|
|
|
66 |
|
67 |
# Configure toolkits
|
68 |
tools = [
|
69 |
+
*CodeExecutionToolkit(sandbox="subprocess", verbose=True).get_tools(),
|
70 |
SearchToolkit().search_duckduckgo,
|
71 |
SearchToolkit().search_wiki,
|
72 |
+
*ExcelToolkit().get_tools(),
|
73 |
*FileWriteToolkit(output_dir="./").get_tools(),
|
74 |
]
|
75 |
|