__init__.py 683 B

123456789101112131415161718192021222324252627
  1. """
  2. demand_video_expand_agent 工具包
  3. """
  4. from __future__ import annotations
  5. from collections.abc import Callable
  6. from typing import Any
  7. from agents.demand_video_expand_agent.tools.batch_save_demand_expansions import (
  8. batch_save_demand_expansions,
  9. )
  10. from supply_agent.tools.registry import ToolRegistry
  11. ALL_TOOLS: list[Callable[..., Any]] = [
  12. batch_save_demand_expansions,
  13. ]
  14. __all__ = [
  15. "ALL_TOOLS",
  16. "batch_save_demand_expansions",
  17. "register_all_tools",
  18. ]
  19. def register_all_tools(registry: ToolRegistry) -> ToolRegistry:
  20. """将 demand_video_expand_agent 包内的所有工具注册到 ToolRegistry。"""
  21. return registry.from_decorated(*ALL_TOOLS)