suna/backend/templates/__init__.py

58 lines
1.7 KiB
Python
Raw Normal View History

2025-07-29 13:55:18 +08:00
from .template_service import (
TemplateService,
2025-07-14 18:36:27 +08:00
AgentTemplate,
MCPRequirementValue,
2025-07-29 13:55:18 +08:00
TemplateCreationRequest,
TemplateNotFoundError,
TemplateAccessDeniedError,
SunaDefaultAgentTemplateError,
get_template_service
2025-07-14 18:36:27 +08:00
)
2025-07-29 13:55:18 +08:00
from .installation_service import (
InstallationService,
AgentInstance,
TemplateInstallationRequest,
TemplateInstallationResult,
TemplateInstallationError,
InvalidCredentialError,
get_installation_service
)
2025-07-14 18:36:27 +08:00
2025-07-29 13:55:18 +08:00
from .utils import (
validate_installation_requirements,
build_unified_config,
build_mcp_config,
create_mcp_requirement_from_dict,
extract_custom_type_from_name,
is_suna_default_agent,
format_template_for_response,
format_mcp_requirements_for_response,
filter_templates_by_tags,
search_templates_by_name
2025-07-14 18:36:27 +08:00
)
from . import api
__all__ = [
2025-07-29 13:55:18 +08:00
"TemplateService", "get_template_service",
"InstallationService", "get_installation_service",
"AgentTemplate", "AgentInstance", "MCPRequirementValue",
"TemplateCreationRequest", "TemplateInstallationRequest",
"TemplateInstallationResult",
"TemplateNotFoundError", "TemplateAccessDeniedError",
"SunaDefaultAgentTemplateError", "TemplateInstallationError",
"InvalidCredentialError",
"validate_template_ownership", "validate_template_access",
"validate_installation_requirements", "build_unified_config",
"build_mcp_config", "create_mcp_requirement_from_dict",
"extract_custom_type_from_name", "is_suna_default_agent",
"format_template_for_response", "format_mcp_requirements_for_response",
"filter_templates_by_tags", "search_templates_by_name",
"api"
2025-07-14 18:36:27 +08:00
]