| 123456789101112131415161718192021222324252627282930 |
- """
- find_agent 工具包
- 在此注册本 Agent 专属的工具。
- """
- from __future__ import annotations
- from collections.abc import Callable
- from typing import Any
- from agents.find_agent.tools.douyin_search import douyin_search
- from agents.find_agent.tools.qwen_video_analyze import qwen_video_analyze
- from supply_agent.tools.registry import ToolRegistry
- ALL_TOOLS: list[Callable[..., Any]] = [
- douyin_search,
- qwen_video_analyze,
- ]
- __all__ = [
- "ALL_TOOLS",
- "douyin_search",
- "qwen_video_analyze",
- "register_all_tools",
- ]
- def register_all_tools(registry: ToolRegistry) -> ToolRegistry:
- """将 find_agent 包内的所有工具注册到 ToolRegistry。"""
- return registry.from_decorated(*ALL_TOOLS)
|