Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

chore: fix cicd (#2090)

Wendong-Fan971bd046b7f9
diff --git a/.github/workflows/build_package.yml b/.github/workflows/build_package.yml
index 2f16302a4..0f41a32e6 100644
--- a/.github/workflows/build_package.yml
+++ b/.github/workflows/build_package.yml
@@ -100,6 +100,7 @@ jobs:
VOLCANO_API_KEY: "${{ secrets.VOLCANO_API_KEY }}"
OPENROUTER_API_KEY: "${{ secrets.OPENROUTER_API_KEY }}"
MODELSCOPE_SDK_TOKEN: "${{ secrets.MODELSCOPE_SDK_TOKEN }}"
+ NOTION_TOKEN: "${{ secrets.NOTION_TOKEN }}"
run: |
source test_venv/bin/activate
pytest --fast-test-mode ./test
diff --git a/.github/workflows/pytest_package.yml b/.github/workflows/pytest_package.yml
index c394c8e7f..79bc6509c 100644
--- a/.github/workflows/pytest_package.yml
+++ b/.github/workflows/pytest_package.yml
@@ -65,6 +65,7 @@ jobs:
VOLCANO_API_KEY: "${{ secrets.VOLCANO_API_KEY }}"
OPENROUTER_API_KEY: "${{ secrets.OPENROUTER_API_KEY }}"
MODELSCOPE_SDK_TOKEN: "${{ secrets.MODELSCOPE_SDK_TOKEN }}"
+ NOTION_TOKEN: "${{ secrets.NOTION_TOKEN }}"
run: |
source .venv/bin/activate
uv pip install -e ".[all, dev, docs]"
@@ -122,6 +123,7 @@ jobs:
VOLCANO_API_KEY: "${{ secrets.VOLCANO_API_KEY }}"
OPENROUTER_API_KEY: "${{ secrets.OPENROUTER_API_KEY }}"
MODELSCOPE_SDK_TOKEN: "${{ secrets.MODELSCOPE_SDK_TOKEN }}"
+ NOTION_TOKEN: "${{ secrets.NOTION_TOKEN }}"
run: |
source .venv/bin/activate
uv pip install -e ".[all, dev, docs]"
@@ -177,6 +179,7 @@ jobs:
VOLCANO_API_KEY: "${{ secrets.VOLCANO_API_KEY }}"
OPENROUTER_API_KEY: "${{ secrets.OPENROUTER_API_KEY }}"
MODELSCOPE_SDK_TOKEN: "${{ secrets.MODELSCOPE_SDK_TOKEN }}"
+ NOTION_TOKEN: "${{ secrets.NOTION_TOKEN }}"
run: |
source .venv/bin/activate
uv pip install -e ".[all, dev, docs]"
diff --git a/camel/toolkits/meshy_toolkit.py b/camel/toolkits/meshy_toolkit.py
index 532524124..441d45441 100644
--- a/camel/toolkits/meshy_toolkit.py
+++ b/camel/toolkits/meshy_toolkit.py
@@ -13,10 +13,11 @@
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
import os
-from typing import Any, Dict, Optional
+from typing import Any, Dict, List, Optional
import requests
+from camel.toolkits import FunctionTool
from camel.toolkits.base import BaseToolkit
from camel.utils import MCPServer, api_keys_required
@@ -189,3 +190,19 @@ class MeshyToolkit(BaseToolkit):
# Wait for refinement completion and return final result
return self.wait_for_task_completion(refine_task_id)
+
+ def get_tools(self) -> List[FunctionTool]:
+ r"""Returns a list of FunctionTool objects representing the
+ functions in the toolkit.
+
+ Returns:
+ List[FunctionTool]: A list of FunctionTool objects
+ representing the functions in the toolkit.
+ """
+ return [
+ FunctionTool(self.generate_3d_preview),
+ FunctionTool(self.refine_3d_model),
+ FunctionTool(self.get_task_status),
+ FunctionTool(self.wait_for_task_completion),
+ FunctionTool(self.generate_3d_model_complete),
+ ]