codemie-sdk-python 0.1.696__py3-none-any.whl → 0.1.698__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.
- codemie_sdk/__init__.py +6 -1
- codemie_sdk/models/conversation.py +3 -3
- codemie_sdk/services/conversation.py +2 -2
- codemie_sdk/services/customer_config_service.py +1 -1
- {codemie_sdk_python-0.1.696.dist-info → codemie_sdk_python-0.1.698.dist-info}/METADATA +16 -10
- {codemie_sdk_python-0.1.696.dist-info → codemie_sdk_python-0.1.698.dist-info}/RECORD +7 -7
- {codemie_sdk_python-0.1.696.dist-info → codemie_sdk_python-0.1.698.dist-info}/WHEEL +1 -1
codemie_sdk/__init__.py
CHANGED
|
@@ -17,6 +17,8 @@ Basic usage:
|
|
|
17
17
|
>>> assistants = client.assistants.list()
|
|
18
18
|
"""
|
|
19
19
|
|
|
20
|
+
from importlib.metadata import PackageNotFoundError, version as _pkg_version
|
|
21
|
+
|
|
20
22
|
from .client.client import CodeMieClient
|
|
21
23
|
from .models.vendor_assistant import (
|
|
22
24
|
VendorType,
|
|
@@ -174,7 +176,10 @@ from .models.a2a import (
|
|
|
174
176
|
)
|
|
175
177
|
from .services.a2a import A2AService
|
|
176
178
|
|
|
177
|
-
|
|
179
|
+
try:
|
|
180
|
+
__version__ = _pkg_version("codemie-sdk-python")
|
|
181
|
+
except PackageNotFoundError: # running from a source tree that is not installed
|
|
182
|
+
__version__ = "0+unknown"
|
|
178
183
|
__all__ = [
|
|
179
184
|
"CodeMieClient",
|
|
180
185
|
"VendorType",
|
|
@@ -92,7 +92,7 @@ class HistoryItem(BaseModel):
|
|
|
92
92
|
thoughts: list[Thought] | None = Field(default_factory=list)
|
|
93
93
|
workflowExecutionRef: str | bool | None = None
|
|
94
94
|
executionId: str | None = None
|
|
95
|
-
# WorkflowExecutionStatusEnum value, e.g. "In Progress"
|
|
95
|
+
# WorkflowExecutionStatusEnum value, e.g. "In Progress"
|
|
96
96
|
executionStatus: str | None = None
|
|
97
97
|
|
|
98
98
|
|
|
@@ -322,7 +322,7 @@ class AdminConversationListResponse(BaseModel):
|
|
|
322
322
|
pagination: ConversationPagination
|
|
323
323
|
|
|
324
324
|
|
|
325
|
-
# Feedback on assistant messages
|
|
325
|
+
# Feedback on assistant messages
|
|
326
326
|
|
|
327
327
|
|
|
328
328
|
class FeedbackMark(str, Enum):
|
|
@@ -345,7 +345,7 @@ class FeedbackCreateRequest(BaseModel):
|
|
|
345
345
|
|
|
346
346
|
``response`` is required by the backend even though the client already has
|
|
347
347
|
the text elsewhere: omitting it returns a 422 ``response: Field required``
|
|
348
|
-
error. This was the root cause of
|
|
348
|
+
error. This was the root cause of an earlier bug, where the frontend built
|
|
349
349
|
the payload without it and negative feedback could never be submitted.
|
|
350
350
|
Callers must always populate ``response`` -- an empty string is a valid
|
|
351
351
|
value for incomplete, failed, or technical-error assistant responses.
|
|
@@ -352,7 +352,7 @@ class ConversationService:
|
|
|
352
352
|
SharedConversationResponse,
|
|
353
353
|
)
|
|
354
354
|
|
|
355
|
-
# Feedback management methods
|
|
355
|
+
# Feedback management methods
|
|
356
356
|
|
|
357
357
|
def create_feedback(self, request: FeedbackCreateRequest) -> FeedbackCreateResponse:
|
|
358
358
|
"""Submit like/dislike feedback on an assistant message.
|
|
@@ -385,7 +385,7 @@ class ConversationService:
|
|
|
385
385
|
json_data=request.model_dump(by_alias=True, exclude_none=True),
|
|
386
386
|
)
|
|
387
387
|
|
|
388
|
-
# Conversation finishing
|
|
388
|
+
# Conversation finishing
|
|
389
389
|
|
|
390
390
|
def finish(self, conversation_id: str) -> ConversationFinishResponse:
|
|
391
391
|
"""Mark a conversation as finished (owner-only).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"""Customer config service implementation.
|
|
2
2
|
|
|
3
|
-
Wraps four endpoints
|
|
3
|
+
Wraps four customer-config endpoints:
|
|
4
4
|
GET /v1/config/declarations — list dynamic-config declarations (admin/maintainer)
|
|
5
5
|
PUT /v1/config/declarations/{id} — save override settings for a component
|
|
6
6
|
DELETE /v1/config/declarations/{id} — reset component to YAML default (idempotent)
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: codemie-sdk-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.698
|
|
4
4
|
Summary: CodeMie SDK for Python
|
|
5
|
-
|
|
6
|
-
Author
|
|
5
|
+
License: Apache-2.0
|
|
6
|
+
Author: CodeMie
|
|
7
7
|
Requires-Python: >=3.12,<4.0
|
|
8
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
8
9
|
Classifier: Programming Language :: Python :: 3
|
|
9
10
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
10
14
|
Requires-Dist: pydantic (>=2.12.2,<3.0.0)
|
|
11
15
|
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
12
16
|
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
17
|
+
Project-URL: Homepage, https://github.com/codemie-ai/codemie-sdk
|
|
18
|
+
Project-URL: Issues, https://github.com/codemie-ai/codemie-sdk/issues
|
|
19
|
+
Project-URL: Repository, https://github.com/codemie-ai/codemie-sdk
|
|
13
20
|
Description-Content-Type: text/markdown
|
|
14
21
|
|
|
15
22
|
# CodeMie Python SDK
|
|
@@ -87,11 +94,11 @@ from codemie_sdk import CodeMieClient
|
|
|
87
94
|
|
|
88
95
|
# Initialize client with authentication parameters
|
|
89
96
|
client = CodeMieClient(
|
|
90
|
-
auth_server_url="https://keycloak
|
|
97
|
+
auth_server_url="https://your-keycloak-host.example.com/auth",
|
|
91
98
|
auth_client_id="your-client-id",
|
|
92
99
|
auth_client_secret="your-client-secret",
|
|
93
100
|
auth_realm_name="your-realm",
|
|
94
|
-
codemie_api_domain="https://codemie.
|
|
101
|
+
codemie_api_domain="https://your-codemie-host.example.com/code-assistant-api"
|
|
95
102
|
)
|
|
96
103
|
```
|
|
97
104
|
|
|
@@ -1662,7 +1669,7 @@ client = CodeMieClient(
|
|
|
1662
1669
|
|
|
1663
1670
|
## Support
|
|
1664
1671
|
|
|
1665
|
-
For
|
|
1672
|
+
For questions and bug reports, open an issue via GitHub Issues. To report a security vulnerability, follow the policy in [SECURITY.md](../../SECURITY.md).
|
|
1666
1673
|
|
|
1667
1674
|
## Development
|
|
1668
1675
|
|
|
@@ -1693,7 +1700,6 @@ poetry run ruff format
|
|
|
1693
1700
|
# Build package
|
|
1694
1701
|
poetry build
|
|
1695
1702
|
# Or make build
|
|
1696
|
-
|
|
1697
|
-
# Publish to PyPI
|
|
1698
|
-
make publish
|
|
1699
1703
|
```
|
|
1704
|
+
|
|
1705
|
+
Maintainers publish releases through the release workflow. See [RELEASING.md](../../docs/RELEASING.md).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
codemie_sdk/__init__.py,sha256=
|
|
1
|
+
codemie_sdk/__init__.py,sha256=JW5k_uftXXpJOnR5r5gCGBZqyYXqXfjRQD6nqRcUfDk,9024
|
|
2
2
|
codemie_sdk/auth/__init__.py,sha256=IksEj223xEZtJ-cQ0AT9L0Bs9psIJ8QNzDXrPTUQ3xQ,126
|
|
3
3
|
codemie_sdk/auth/credentials.py,sha256=hO0X3EQWZSlIm0ABhiJo4fIIndm2blB0JZWMaWvsuTE,7774
|
|
4
4
|
codemie_sdk/builders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -17,7 +17,7 @@ codemie_sdk/models/analytics.py,sha256=B9lLAddL_LylXsoOukiPqbz4HVd2itmuB6iaEbhpK
|
|
|
17
17
|
codemie_sdk/models/assistant.py,sha256=BkMMIBKA3fibL98PsyEtlIcvZql63oVdI9Pgy9YnemI,22230
|
|
18
18
|
codemie_sdk/models/categories.py,sha256=eq7_sw-sevNLeWpjaW3N055Xcgbbevs0Bl_rj--maUk,2303
|
|
19
19
|
codemie_sdk/models/common.py,sha256=ipNNdQlv4Ct1UyIAknjJbrdjjvv0lZJYK6dnPm8wai4,1170
|
|
20
|
-
codemie_sdk/models/conversation.py,sha256=
|
|
20
|
+
codemie_sdk/models/conversation.py,sha256=r5gV5BD-Euj4OfeLYn6NBiO-S6uFQtwACVobvFgLUcA,10204
|
|
21
21
|
codemie_sdk/models/cost_center.py,sha256=X2hyQ2iewtbG5y9X5qUh1roZ0MJs_i7Vh0Ojh9aut8I,1597
|
|
22
22
|
codemie_sdk/models/datasource.py,sha256=zLA6fwiTKl5H7IDMAlt5LqB2cOI9Cr13D1xU_2EafKs,17012
|
|
23
23
|
codemie_sdk/models/errors.py,sha256=tQXoPUhM2U95NoyTxsSSJws8PQ-Fr3iOQQ8IjJCsx78,11658
|
|
@@ -49,9 +49,9 @@ codemie_sdk/services/analytics.py,sha256=wcbbzm9L4YLXy7I054jM8LYlIQnz3gB2K56--Ok
|
|
|
49
49
|
codemie_sdk/services/assistant.py,sha256=3fHK2cJERgNJJfkvdih0h7bRHdHjlIJHBcS7EcnJ90E,22135
|
|
50
50
|
codemie_sdk/services/categories.py,sha256=1qd98JCcMNdpbos0O1WpMApT6TurE7OuI7zoYewnwk8,5030
|
|
51
51
|
codemie_sdk/services/codemie_guardrails.py,sha256=O3yCeIQYG8W7z-sVRR4Cw9UVncqP9lPVNxUSaUZrh7I,2833
|
|
52
|
-
codemie_sdk/services/conversation.py,sha256=
|
|
52
|
+
codemie_sdk/services/conversation.py,sha256=HWedtlrVXvq4xyAgVNzJ9IZSeHMx4Se5fyp8PPIloEQ,14809
|
|
53
53
|
codemie_sdk/services/cost_center.py,sha256=eybq5DrkHQANegKVbpuLSkiF0J518wDnAGzsweXSQVY,3282
|
|
54
|
-
codemie_sdk/services/customer_config_service.py,sha256=
|
|
54
|
+
codemie_sdk/services/customer_config_service.py,sha256=XxPjiR9cf5M8qjHuRfovwiEAEk7OERJHLTuCAfBr7BU,4871
|
|
55
55
|
codemie_sdk/services/datasource.py,sha256=6kIaHuMzYcrSCaB6_CXemRm2gMPsNxXTQCDxOtRxhDQ,13991
|
|
56
56
|
codemie_sdk/services/dynamic_config.py,sha256=amgSOZ-835r6O_U72sjiFe60rrxJZqJ2L7oKCK-avE4,4214
|
|
57
57
|
codemie_sdk/services/files.py,sha256=ERb6irexO2hIKepUiTw498J0dt0427YNdKrXdcOu9tM,2762
|
|
@@ -76,6 +76,6 @@ codemie_sdk/services/workflow_execution_state.py,sha256=u1xmGvaHjqvQS5ujhyvJ_Ac7
|
|
|
76
76
|
codemie_sdk/services/workspace.py,sha256=eLwZ0fhi1BfOesrXaQlTdOll8q7ENP9b_jb5eybKSVw,5038
|
|
77
77
|
codemie_sdk/utils/__init__.py,sha256=EzK_UrS5KHmAnE73Hci9LaObB5omjVUhIq4svh0gfwo,137
|
|
78
78
|
codemie_sdk/utils/http.py,sha256=PWejBKa5pwzQ5eLVhdN8lYKEu1B1QtwGTRmZfnGFL6c,14158
|
|
79
|
-
codemie_sdk_python-0.1.
|
|
80
|
-
codemie_sdk_python-0.1.
|
|
81
|
-
codemie_sdk_python-0.1.
|
|
79
|
+
codemie_sdk_python-0.1.698.dist-info/METADATA,sha256=cIPx5mqzjEbwYqiaAlhUc9OYCjLPYuT5-vHL4rEUrfs,47938
|
|
80
|
+
codemie_sdk_python-0.1.698.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
81
|
+
codemie_sdk_python-0.1.698.dist-info/RECORD,,
|