airbyte-agent-zendesk-support 0.18.29__tar.gz → 0.18.30__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/CHANGELOG.md +5 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/PKG-INFO +3 -3
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/README.md +2 -2
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/__init__.py +0 -3
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/introspection.py +1 -1
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/connector.py +45 -7
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/pyproject.toml +1 -1
- airbyte_agent_zendesk_support-0.18.29/airbyte_agent_zendesk_support/_vendored/connector_sdk/decorators.py +0 -128
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/.gitignore +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/REFERENCE.md +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/auth_strategies.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/auth_template.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/cloud_utils/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/cloud_utils/client.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/connector_model_loader.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/constants.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/exceptions.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/executor/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/executor/hosted_executor.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/executor/local_executor.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/executor/models.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/extensions.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/adapters/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/adapters/httpx_adapter.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/config.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/exceptions.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/protocols.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http/response.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/http_client.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/logging/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/logging/logger.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/logging/types.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/observability/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/observability/models.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/observability/redactor.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/observability/session.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/performance/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/performance/instrumentation.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/performance/metrics.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/base.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/components.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/connector.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/extensions.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/operations.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/schema/security.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/secrets.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/telemetry/__init__.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/telemetry/config.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/telemetry/events.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/telemetry/tracker.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/types.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/utils.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/_vendored/connector_sdk/validation.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/connector_model.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/models.py +0 -0
- {airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/airbyte_agent_zendesk_support/types.py +0 -0
{airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/CHANGELOG.md
RENAMED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Zendesk Support changelog
|
|
2
2
|
|
|
3
|
+
## [0.18.30] - 2026-01-09
|
|
4
|
+
- Updated connector definition (YAML version 0.1.4)
|
|
5
|
+
- Source commit: da9b741b
|
|
6
|
+
- SDK version: 0.1.0
|
|
7
|
+
|
|
3
8
|
## [0.18.29] - 2026-01-07
|
|
4
9
|
- Updated connector definition (YAML version 0.1.4)
|
|
5
10
|
- Source commit: d023e05f
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: airbyte-agent-zendesk-support
|
|
3
|
-
Version: 0.18.
|
|
3
|
+
Version: 0.18.30
|
|
4
4
|
Summary: Airbyte Zendesk-Support Connector for AI platforms
|
|
5
5
|
Project-URL: Homepage, https://github.com/airbytehq/airbyte-embedded
|
|
6
6
|
Project-URL: Documentation, https://github.com/airbytehq/airbyte-embedded/tree/main/integrations
|
|
@@ -141,6 +141,6 @@ For the service's official API docs, see the [Zendesk-Support API reference](htt
|
|
|
141
141
|
|
|
142
142
|
## Version information
|
|
143
143
|
|
|
144
|
-
- **Package version:** 0.18.
|
|
144
|
+
- **Package version:** 0.18.30
|
|
145
145
|
- **Connector version:** 0.1.4
|
|
146
|
-
- **Generated with Connector SDK commit SHA:**
|
|
146
|
+
- **Generated with Connector SDK commit SHA:** da9b741b7b9d8091113af16ba8ec5d5e5d13b749
|
|
@@ -107,6 +107,6 @@ For the service's official API docs, see the [Zendesk-Support API reference](htt
|
|
|
107
107
|
|
|
108
108
|
## Version information
|
|
109
109
|
|
|
110
|
-
- **Package version:** 0.18.
|
|
110
|
+
- **Package version:** 0.18.30
|
|
111
111
|
- **Connector version:** 0.1.4
|
|
112
|
-
- **Generated with Connector SDK commit SHA:**
|
|
112
|
+
- **Generated with Connector SDK commit SHA:** da9b741b7b9d8091113af16ba8ec5d5e5d13b749
|
|
@@ -13,7 +13,6 @@ from __future__ import annotations
|
|
|
13
13
|
from .auth_strategies import AuthStrategy
|
|
14
14
|
from .connector_model_loader import load_connector_model
|
|
15
15
|
from .constants import SDK_VERSION
|
|
16
|
-
from .decorators import airbyte_description
|
|
17
16
|
from .exceptions import (
|
|
18
17
|
AuthenticationError,
|
|
19
18
|
HTTPClientError,
|
|
@@ -80,6 +79,4 @@ __all__ = [
|
|
|
80
79
|
"instrument",
|
|
81
80
|
# Utilities
|
|
82
81
|
"save_download",
|
|
83
|
-
# Decorators for AI integration
|
|
84
|
-
"airbyte_description",
|
|
85
82
|
]
|
|
@@ -203,7 +203,7 @@ def generate_tool_description(model: ConnectorModelProtocol) -> str:
|
|
|
203
203
|
- Response structure documentation with pagination hints
|
|
204
204
|
- Example questions if available in the OpenAPI spec
|
|
205
205
|
|
|
206
|
-
This is used by the
|
|
206
|
+
This is used by the Connector.describe class method decorator to populate
|
|
207
207
|
function docstrings for AI framework integration.
|
|
208
208
|
|
|
209
209
|
Args:
|
|
@@ -5,15 +5,14 @@ zendesk-support connector.
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
7
|
import logging
|
|
8
|
-
from typing import TYPE_CHECKING, Any, AsyncIterator, overload
|
|
8
|
+
from typing import TYPE_CHECKING, Any, Callable, TypeVar, AsyncIterator, overload
|
|
9
9
|
try:
|
|
10
10
|
from typing import Literal
|
|
11
11
|
except ImportError:
|
|
12
12
|
from typing_extensions import Literal
|
|
13
13
|
|
|
14
14
|
from .connector_model import ZendeskSupportConnectorModel
|
|
15
|
-
from ._vendored.connector_sdk.introspection import describe_entities
|
|
16
|
-
|
|
15
|
+
from ._vendored.connector_sdk.introspection import describe_entities, generate_tool_description
|
|
17
16
|
from .types import (
|
|
18
17
|
ArticleAttachmentsDownloadParams,
|
|
19
18
|
ArticleAttachmentsGetParams,
|
|
@@ -55,7 +54,6 @@ from .types import (
|
|
|
55
54
|
ViewsGetParams,
|
|
56
55
|
ViewsListParams,
|
|
57
56
|
)
|
|
58
|
-
|
|
59
57
|
if TYPE_CHECKING:
|
|
60
58
|
from .models import ZendeskSupportAuthConfig
|
|
61
59
|
# Import specific auth config classes for multi-auth isinstance checks
|
|
@@ -104,6 +102,9 @@ from .models import (
|
|
|
104
102
|
ArticleAttachmentsGetResult,
|
|
105
103
|
)
|
|
106
104
|
|
|
105
|
+
# TypeVar for decorator type preservation
|
|
106
|
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
|
107
|
+
|
|
107
108
|
|
|
108
109
|
class ZendeskSupportConnector:
|
|
109
110
|
"""
|
|
@@ -716,9 +717,46 @@ class ZendeskSupportConnector:
|
|
|
716
717
|
|
|
717
718
|
# ===== INTROSPECTION METHODS =====
|
|
718
719
|
|
|
719
|
-
|
|
720
|
+
@classmethod
|
|
721
|
+
def describe(cls, func: _F) -> _F:
|
|
722
|
+
"""
|
|
723
|
+
Decorator that populates a function's docstring with connector capabilities.
|
|
724
|
+
|
|
725
|
+
This class method can be used as a decorator to automatically generate
|
|
726
|
+
comprehensive documentation for AI tool functions.
|
|
727
|
+
|
|
728
|
+
Usage:
|
|
729
|
+
@mcp.tool()
|
|
730
|
+
@ZendeskSupportConnector.describe
|
|
731
|
+
async def execute(entity: str, action: str, params: dict):
|
|
732
|
+
'''Execute operations.'''
|
|
733
|
+
...
|
|
734
|
+
|
|
735
|
+
The decorated function's __doc__ will be updated with:
|
|
736
|
+
- Available entities and their actions
|
|
737
|
+
- Parameter signatures with required (*) and optional (?) markers
|
|
738
|
+
- Response structure documentation
|
|
739
|
+
- Example questions (if available in OpenAPI spec)
|
|
740
|
+
|
|
741
|
+
Args:
|
|
742
|
+
func: The function to decorate
|
|
743
|
+
|
|
744
|
+
Returns:
|
|
745
|
+
The same function with updated __doc__
|
|
746
|
+
"""
|
|
747
|
+
description = generate_tool_description(ZendeskSupportConnectorModel)
|
|
748
|
+
|
|
749
|
+
original_doc = func.__doc__ or ""
|
|
750
|
+
if original_doc.strip():
|
|
751
|
+
func.__doc__ = f"{original_doc.strip()}\n\n{description}"
|
|
752
|
+
else:
|
|
753
|
+
func.__doc__ = description
|
|
754
|
+
|
|
755
|
+
return func
|
|
756
|
+
|
|
757
|
+
def list_entities(self) -> list[dict[str, Any]]:
|
|
720
758
|
"""
|
|
721
|
-
|
|
759
|
+
Get structured data about available entities, actions, and parameters.
|
|
722
760
|
|
|
723
761
|
Returns a list of entity descriptions with:
|
|
724
762
|
- entity_name: Name of the entity (e.g., "contacts", "deals")
|
|
@@ -727,7 +765,7 @@ class ZendeskSupportConnector:
|
|
|
727
765
|
- parameters: Dict mapping action -> list of parameter dicts
|
|
728
766
|
|
|
729
767
|
Example:
|
|
730
|
-
entities = connector.
|
|
768
|
+
entities = connector.list_entities()
|
|
731
769
|
for entity in entities:
|
|
732
770
|
print(f"{entity['entity_name']}: {entity['available_actions']}")
|
|
733
771
|
"""
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Decorators for AI agent tool integration.
|
|
3
|
-
|
|
4
|
-
Provides utilities to auto-generate comprehensive tool descriptions
|
|
5
|
-
from connector metadata, enabling easy integration with AI frameworks.
|
|
6
|
-
"""
|
|
7
|
-
|
|
8
|
-
from __future__ import annotations
|
|
9
|
-
|
|
10
|
-
import importlib
|
|
11
|
-
from typing import Any, Callable, TypeVar
|
|
12
|
-
|
|
13
|
-
from .introspection import (
|
|
14
|
-
MAX_EXAMPLE_QUESTIONS,
|
|
15
|
-
ConnectorModelProtocol,
|
|
16
|
-
EndpointProtocol,
|
|
17
|
-
generate_tool_description,
|
|
18
|
-
)
|
|
19
|
-
|
|
20
|
-
F = TypeVar("F", bound=Callable[..., Any])
|
|
21
|
-
|
|
22
|
-
__all__ = [
|
|
23
|
-
"airbyte_description",
|
|
24
|
-
"EndpointProtocol",
|
|
25
|
-
"ConnectorModelProtocol",
|
|
26
|
-
"MAX_EXAMPLE_QUESTIONS",
|
|
27
|
-
# Private function exposed for testing
|
|
28
|
-
"_load_connector_model",
|
|
29
|
-
]
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
def airbyte_description(connector_name: str) -> Callable[[F], F]:
|
|
33
|
-
"""
|
|
34
|
-
Decorator that generates comprehensive tool descriptions from connector metadata.
|
|
35
|
-
|
|
36
|
-
Automatically populates the function's docstring with:
|
|
37
|
-
- Connector description
|
|
38
|
-
- Available entities and their actions
|
|
39
|
-
- Example questions the connector can answer
|
|
40
|
-
|
|
41
|
-
Args:
|
|
42
|
-
connector_name: Name of the connector (e.g., "hubspot", "stripe")
|
|
43
|
-
Must match the generated package name pattern:
|
|
44
|
-
airbyte_agent_{connector_name}
|
|
45
|
-
|
|
46
|
-
Returns:
|
|
47
|
-
Decorator that updates the function's __doc__ attribute
|
|
48
|
-
|
|
49
|
-
Example:
|
|
50
|
-
from airbyte_agent_hubspot import HubspotConnector
|
|
51
|
-
|
|
52
|
-
connector = HubspotConnector(
|
|
53
|
-
external_user_id=external_user_id,
|
|
54
|
-
airbyte_client_id=airbyte_client_id,
|
|
55
|
-
airbyte_client_secret=airbyte_client_secret
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
# IMPORTANT: @airbyte_description must be the INNER decorator (closest to function)
|
|
59
|
-
# This ensures __doc__ is expanded BEFORE frameworks like FastMCP capture it
|
|
60
|
-
@agent.tool_plain # or @mcp.tool() for FastMCP
|
|
61
|
-
@airbyte_description("hubspot")
|
|
62
|
-
async def hubspot_exec(entity: str, action: str, params: dict | None = None):
|
|
63
|
-
'''Execute HubSpot operations.'''
|
|
64
|
-
return await connector.execute(entity, action, params or {})
|
|
65
|
-
|
|
66
|
-
The decorator will update hubspot_exec.__doc__ with a comprehensive
|
|
67
|
-
description including all available entities, actions, and example questions.
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
def decorator(func: F) -> F:
|
|
71
|
-
# Load connector model from generated package
|
|
72
|
-
model = _load_connector_model(connector_name)
|
|
73
|
-
|
|
74
|
-
# Generate description using shared introspection module
|
|
75
|
-
description = generate_tool_description(model)
|
|
76
|
-
|
|
77
|
-
# Preserve original docstring if present, append to it
|
|
78
|
-
original_doc = func.__doc__ or ""
|
|
79
|
-
if original_doc.strip():
|
|
80
|
-
func.__doc__ = f"{original_doc.strip()}\n\n{description}"
|
|
81
|
-
else:
|
|
82
|
-
func.__doc__ = description
|
|
83
|
-
|
|
84
|
-
return func
|
|
85
|
-
|
|
86
|
-
return decorator
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
def _load_connector_model(connector_name: str) -> Any:
|
|
90
|
-
"""
|
|
91
|
-
Load connector model from generated package.
|
|
92
|
-
|
|
93
|
-
Args:
|
|
94
|
-
connector_name: Connector name (e.g., "hubspot")
|
|
95
|
-
|
|
96
|
-
Returns:
|
|
97
|
-
ConnectorModel instance from the generated package
|
|
98
|
-
|
|
99
|
-
Raises:
|
|
100
|
-
ImportError: If connector package is not installed
|
|
101
|
-
AttributeError: If connector model constant not found
|
|
102
|
-
"""
|
|
103
|
-
# Normalize connector name to package name
|
|
104
|
-
package_name = f"airbyte_agent_{connector_name.replace('-', '_')}"
|
|
105
|
-
|
|
106
|
-
try:
|
|
107
|
-
# Import the connector_model module from the generated package
|
|
108
|
-
module = importlib.import_module(f"{package_name}.connector_model")
|
|
109
|
-
except ImportError as e:
|
|
110
|
-
raise ImportError(f"Could not import connector package '{package_name}'. " f"Ensure the package is installed. Error: {e}") from e
|
|
111
|
-
|
|
112
|
-
# Find the ConnectorModel constant (named like HubspotConnectorModel)
|
|
113
|
-
# Convention: {PascalCase connector name}ConnectorModel
|
|
114
|
-
pascal_name = "".join(word.capitalize() for word in connector_name.replace("-", "_").split("_"))
|
|
115
|
-
model_name = f"{pascal_name}ConnectorModel"
|
|
116
|
-
|
|
117
|
-
model = getattr(module, model_name, None)
|
|
118
|
-
if model is None:
|
|
119
|
-
# Fallback: look for any ConnectorModel attribute
|
|
120
|
-
for attr_name in dir(module):
|
|
121
|
-
if attr_name.endswith("ConnectorModel"):
|
|
122
|
-
model = getattr(module, attr_name)
|
|
123
|
-
break
|
|
124
|
-
|
|
125
|
-
if model is None:
|
|
126
|
-
raise AttributeError(f"Could not find ConnectorModel in {package_name}.connector_model. " f"Expected constant named '{model_name}'")
|
|
127
|
-
|
|
128
|
-
return model
|
|
File without changes
|
{airbyte_agent_zendesk_support-0.18.29 → airbyte_agent_zendesk_support-0.18.30}/REFERENCE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|