refactor: rename tool modules and clean imports

This commit is contained in:
cmgzn
2025-10-31 10:56:43 +08:00
parent d5b752c33b
commit 4000f53b4a
10 changed files with 81 additions and 67 deletions

View File

@@ -5,7 +5,6 @@ Tools package for data-agent.
This module provides a unified entry point for all agent tools,
organized by agent type for easy access and management.
"""
import asyncio
from typing import List
from agentscope.agent import AgentBase
from agentscope.tool import (
@@ -14,11 +13,11 @@ from agentscope.tool import (
)
from agentscope.tool import Toolkit
from .dj_tools import execute_safe_command
from .router_tools import agent_to_tool
from .dj_tools import query_dj_operators
from .dj_dev_tools import get_basic_files, get_operator_example, configure_data_juicer_path
from .mcp_tools import get_mcp_toolkit
from .dj_helpers import execute_safe_command
from .router_helpers import agent_to_tool
from .dj_helpers import query_dj_operators
from .dj_dev_helpers import get_basic_files, get_operator_example, configure_data_juicer_path
from .mcp_helpers import get_mcp_toolkit
def create_toolkit(tools: List[str]):
# Create toolkit and register tools

View File

@@ -7,7 +7,6 @@ and example code for different operator types.
"""
import os
from pathlib import Path
from agentscope.message import TextBlock
from agentscope.tool import ToolResponse