Guilherme34's picture
Upload folder using huggingface_hub
aa15bce verified
"""Aggregate execution agent tool schemas and registries."""
from __future__ import annotations
from typing import Any, Callable, Dict, List
from . import gmail, triggers
from ..tasks import get_task_registry, get_task_schemas
# Return OpenAI/OpenRouter-compatible tool schemas
def get_tool_schemas() -> List[Dict[str, Any]]:
"""Return OpenAI/OpenRouter-compatible tool schemas."""
return [
*gmail.get_schemas(),
*get_task_schemas(),
*triggers.get_schemas(),
]
# Return Python callables for executing tools by name
def get_tool_registry(agent_name: str) -> Dict[str, Callable[..., Any]]:
"""Return Python callables for executing tools by name."""
registry: Dict[str, Callable[..., Any]] = {}
registry.update(gmail.build_registry(agent_name))
registry.update(get_task_registry(agent_name))
registry.update(triggers.build_registry(agent_name))
return registry
__all__ = [
"get_tool_registry",
"get_tool_schemas",
]