feat: expose platform application catalog

This commit is contained in:
ViditOstwal
2026-09-10 21:44:12 +05:30
parent 5704ea08eb
commit ee8a85e729
3 changed files with 27 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ This module provides tools for integrating with various platform applications
through the CrewAI platform API.
"""
from crewai.agents.agent_builder.base_agent import PLATFORM_APPS
from crewai_tools.tools.crewai_platform_tools.crewai_platform_action_tool import (
CrewAIPlatformActionTool,
)
@@ -13,6 +15,7 @@ from crewai_tools.tools.crewai_platform_tools.crewai_platform_tools import (
__all__ = [
"PLATFORM_APPS",
"CrewAIPlatformActionTool",
"CrewaiPlatformTools",
]

View File

@@ -0,0 +1,22 @@
from crewai.agents.agent_builder.base_agent import PLATFORM_APPS
def test_platform_apps_contains_supported_application_catalog() -> None:
assert PLATFORM_APPS == (
"asana",
"box",
"clickup",
"github",
"gmail",
"google_calendar",
"google_sheets",
"hubspot",
"jira",
"linear",
"notion",
"salesforce",
"shopify",
"slack",
"stripe",
"zendesk",
)

View File

@@ -6,7 +6,7 @@ from copy import copy as shallow_copy
from hashlib import md5
from pathlib import Path
import re
from typing import TYPE_CHECKING, Annotated, Any, Final, Literal
from typing import TYPE_CHECKING, Annotated, Any, Final, Literal, get_args
import uuid
from pydantic import (
@@ -199,6 +199,7 @@ PlatformApp = Literal[
"zendesk",
]
PLATFORM_APPS: Final[tuple[str, ...]] = get_args(PlatformApp)
PlatformAppOrAction = PlatformApp | str