codemie-sdk-python 0.1.69__py3-none-any.whl → 0.1.71__py3-none-any.whl
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.
Potentially problematic release.
This version of codemie-sdk-python might be problematic. Click here for more details.
- codemie_sdk/__init__.py +1 -1
- codemie_sdk/models/assistant.py +1 -1
- codemie_sdk/models/integration.py +19 -1
- codemie_sdk/services/integration.py +21 -1
- {codemie_sdk_python-0.1.69.dist-info → codemie_sdk_python-0.1.71.dist-info}/METADATA +1 -1
- {codemie_sdk_python-0.1.69.dist-info → codemie_sdk_python-0.1.71.dist-info}/RECORD +7 -7
- {codemie_sdk_python-0.1.69.dist-info → codemie_sdk_python-0.1.71.dist-info}/WHEEL +0 -0
codemie_sdk/__init__.py
CHANGED
codemie_sdk/models/assistant.py
CHANGED
|
@@ -217,7 +217,7 @@ class AssistantChatRequest(BaseModel):
|
|
|
217
217
|
description="Conversation history as list of messages or string",
|
|
218
218
|
)
|
|
219
219
|
history_index: int = Field(
|
|
220
|
-
default=
|
|
220
|
+
default=None, description="DataSource in conversation history"
|
|
221
221
|
)
|
|
222
222
|
stream: bool = Field(default=False, description="Enable streaming response")
|
|
223
223
|
top_k: int = Field(default=10, description="Top K results to consider")
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"""Models for assistant-related data structures."""
|
|
2
2
|
|
|
3
|
+
from datetime import datetime
|
|
3
4
|
from enum import Enum
|
|
4
5
|
from typing import List, Optional, Any
|
|
5
|
-
from datetime import datetime
|
|
6
6
|
|
|
7
7
|
from pydantic import BaseModel, Field, ConfigDict, field_serializer
|
|
8
8
|
|
|
@@ -75,3 +75,21 @@ class Integration(BaseModel):
|
|
|
75
75
|
@field_serializer("date", "update_date")
|
|
76
76
|
def serialize_dt(self, dt: datetime, _info):
|
|
77
77
|
return dt.isoformat()
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class TestIntegrationRequest(BaseModel):
|
|
81
|
+
"""Model for test integration request."""
|
|
82
|
+
|
|
83
|
+
credential_type: str
|
|
84
|
+
credential_values: Optional[List[CredentialValues]] = None
|
|
85
|
+
setting_id: Optional[str] = None
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
class TestIntegrationResponse(BaseModel):
|
|
89
|
+
"""Model for test integration response."""
|
|
90
|
+
|
|
91
|
+
def __getitem__(self, key):
|
|
92
|
+
return getattr(self, key)
|
|
93
|
+
|
|
94
|
+
message: str
|
|
95
|
+
success: bool
|
|
@@ -5,7 +5,11 @@ from typing import List, Optional, Dict, Any
|
|
|
5
5
|
|
|
6
6
|
from ..exceptions import NotFoundError
|
|
7
7
|
from ..models.common import PaginationParams
|
|
8
|
-
from ..models.integration import
|
|
8
|
+
from ..models.integration import (
|
|
9
|
+
Integration,
|
|
10
|
+
IntegrationType,
|
|
11
|
+
TestIntegrationRequest,
|
|
12
|
+
)
|
|
9
13
|
from ..utils import ApiRequestHandler
|
|
10
14
|
|
|
11
15
|
|
|
@@ -150,3 +154,19 @@ class IntegrationService:
|
|
|
150
154
|
return self._api.delete(
|
|
151
155
|
f"{self._get_base_path(setting_type)}/{setting_id}", dict
|
|
152
156
|
)
|
|
157
|
+
|
|
158
|
+
def test(self, integration: TestIntegrationRequest, response_type: Any) -> Any:
|
|
159
|
+
"""Test an integration.
|
|
160
|
+
|
|
161
|
+
Args:
|
|
162
|
+
integration: TestIntegrationRequest - integration to test
|
|
163
|
+
response_type: Type of response expected
|
|
164
|
+
|
|
165
|
+
Returns:
|
|
166
|
+
Test integration response
|
|
167
|
+
"""
|
|
168
|
+
return self._api.post(
|
|
169
|
+
"/v1/settings/test/",
|
|
170
|
+
response_model=response_type,
|
|
171
|
+
json_data=integration.model_dump(exclude_none=True),
|
|
172
|
+
)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
codemie_sdk/__init__.py,sha256=
|
|
1
|
+
codemie_sdk/__init__.py,sha256=LTPWIvPjG1B_mISwXDUecNw0eWrPmKPIgckCx0a8vg8,567
|
|
2
2
|
codemie_sdk/auth/__init__.py,sha256=IksEj223xEZtJ-cQ0AT9L0Bs9psIJ8QNzDXrPTUQ3xQ,126
|
|
3
3
|
codemie_sdk/auth/credentials.py,sha256=u2eLNsD8fELTgreQghVb0g0kk82zchUkux0M5lzq-u8,4320
|
|
4
4
|
codemie_sdk/client/__init__.py,sha256=yf6C39MmrJ6gK9ZHMhBeynKwUUYVSUTQbKxU8-4qpKg,101
|
|
5
5
|
codemie_sdk/client/client.py,sha256=dVcWqd-ruWd8GOZ3_33C3LnHgUyyxIoCKxKYPYbBPq8,4373
|
|
6
6
|
codemie_sdk/exceptions.py,sha256=XoVPyognx-JmyVxLHkZPAcX1CMi1OoT1diBFJLU54so,1183
|
|
7
|
-
codemie_sdk/models/assistant.py,sha256=
|
|
7
|
+
codemie_sdk/models/assistant.py,sha256=TDMANSzDW2Z4amlG6XkrE1RtzyrHxa70iiJD9pUShi4,7966
|
|
8
8
|
codemie_sdk/models/common.py,sha256=gmZ-ps8TbaieNKr0kUKoQEjhVrHD2CAYomOpZQRatH8,1195
|
|
9
9
|
codemie_sdk/models/datasource.py,sha256=u6X1xXZ3ZR9CWH0B0bSw3IjC7KyEwtRKHIc6ZuhJwsg,10813
|
|
10
|
-
codemie_sdk/models/integration.py,sha256=
|
|
10
|
+
codemie_sdk/models/integration.py,sha256=c2D7QsM9HJ9zpupkjKz1v60rtBMGgTyJLYXUyAzS5no,2240
|
|
11
11
|
codemie_sdk/models/llm.py,sha256=ppb9-1dx1UFhRuJpSR3ij7H6Pfhe9nO4C4BEOIbToy4,1192
|
|
12
12
|
codemie_sdk/models/task.py,sha256=J4ZFRY3s8qBGrqB5NLQF0rMbInLh4s7OEZ0ZfmnW0Ho,1476
|
|
13
13
|
codemie_sdk/models/user.py,sha256=Q0rjimZh-IbeaPfq6b6fk6ZaCtwLqWHEIlU863suCS4,1777
|
|
@@ -15,7 +15,7 @@ codemie_sdk/models/workflow.py,sha256=h3ZM-2bBucRd9CzZUYDTU0rGR1ihEN7cxkHgQmJfJV
|
|
|
15
15
|
codemie_sdk/models/workflow_state.py,sha256=CMYFQZ7sy4QxmnWmc83TFfqP7TG_3rW5MdH5fxsS9kY,1251
|
|
16
16
|
codemie_sdk/services/assistant.py,sha256=xuzdel93VlOOy_xCmuptlwpChQWOvuPbpBoB2nF-Sx0,6499
|
|
17
17
|
codemie_sdk/services/datasource.py,sha256=gIP9D-sq4733x9f0mWL87bMI1pWYxIsv5eYXkAs0O6Q,7150
|
|
18
|
-
codemie_sdk/services/integration.py,sha256=
|
|
18
|
+
codemie_sdk/services/integration.py,sha256=CrUfO-4_JwtCt8Qig3RP2uTi1uaTkedyTaPdkFY509g,5410
|
|
19
19
|
codemie_sdk/services/llm.py,sha256=0-e4_7RvLHs2giCyoQ5U4KDTh6p5VXgPKNxnDP9ZDFU,1100
|
|
20
20
|
codemie_sdk/services/task.py,sha256=3e9t8_LMkR4xfeMBwMCo7ZF87PxPS-ZbzDg85ilda2M,1031
|
|
21
21
|
codemie_sdk/services/user.py,sha256=7B-Qw451qKPD5Io6qLda-kbFDaPRQ3TamJamiGwCQu4,1013
|
|
@@ -24,6 +24,6 @@ codemie_sdk/services/workflow_execution.py,sha256=aGoT3rdTmh5-doAsrmBBjLEuOfvL5a
|
|
|
24
24
|
codemie_sdk/services/workflow_execution_state.py,sha256=tXoaa8yT09xgYEUNiHhVULe76TwGwVgZupMIUyyLxdo,2070
|
|
25
25
|
codemie_sdk/utils/__init__.py,sha256=BXAJJfAzO89-kMYvWWo9wSNhSbGgF3vB1In9sePFhMM,109
|
|
26
26
|
codemie_sdk/utils/http.py,sha256=YzE53y1r7PBUKcEQt-gGYduRY06I8xzqVRzlj9f_voA,10084
|
|
27
|
-
codemie_sdk_python-0.1.
|
|
28
|
-
codemie_sdk_python-0.1.
|
|
29
|
-
codemie_sdk_python-0.1.
|
|
27
|
+
codemie_sdk_python-0.1.71.dist-info/METADATA,sha256=zd033oEvi-dFUk6LUvf6eT0uOuXWKV7GKD2g6PbLb8s,21852
|
|
28
|
+
codemie_sdk_python-0.1.71.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
29
|
+
codemie_sdk_python-0.1.71.dist-info/RECORD,,
|
|
File without changes
|