codemie-sdk-python 0.1.73__py3-none-any.whl → 0.1.75__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.

File without changes
@@ -263,3 +263,18 @@ class EnvVars(BaseModel):
263
263
 
264
264
  class ExportAssistantPayload(BaseModel):
265
265
  env_vars: Optional[EnvVars] = None
266
+
267
+
268
+ class AssistantEvaluationRequest(BaseModel):
269
+ """Model for assistant evaluation request."""
270
+
271
+ model_config = ConfigDict(extra="ignore")
272
+
273
+ dataset_id: str = Field(description="ID of the dataset to use for evaluation")
274
+ experiment_name: str = Field(description="Name of the evaluation experiment")
275
+ system_prompt: Optional[str] = Field(
276
+ default=None, description="System prompt to use for evaluation"
277
+ )
278
+ llm_model: Optional[str] = Field(
279
+ default=None, description="LLM model to use for evaluation"
280
+ )
@@ -16,6 +16,7 @@ from ..models.assistant import (
16
16
  AssistantBase,
17
17
  Context,
18
18
  ExportAssistantPayload,
19
+ AssistantEvaluationRequest,
19
20
  )
20
21
  from ..models.common import PaginationParams
21
22
  from ..utils import ApiRequestHandler
@@ -37,7 +38,7 @@ class AssistantService:
37
38
  def list(
38
39
  self,
39
40
  minimal_response: bool = True,
40
- scope: Literal["visible_to_user", "created_by_user"] = "visible_to_user",
41
+ scope: Literal["visible_to_user", "marketplace"] = "visible_to_user",
41
42
  page: int = 0,
42
43
  per_page: int = 12,
43
44
  filters: Optional[Dict[str, Any]] = None,
@@ -213,3 +214,19 @@ class AssistantService:
213
214
  stream=True,
214
215
  json_data=request.model_dump(exclude_none=True),
215
216
  )
217
+
218
+ def evaluate(self, assistant_id: str, request: AssistantEvaluationRequest) -> dict:
219
+ """Evaluate an assistant with a dataset.
220
+
221
+ Args:
222
+ assistant_id: ID of the assistant to evaluate
223
+ request: Evaluation request details
224
+
225
+ Returns:
226
+ Evaluation results
227
+ """
228
+ return self._api.post(
229
+ f"/v1/assistants/{assistant_id}/evaluate",
230
+ dict,
231
+ json_data=request.model_dump(exclude_none=True),
232
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.73
3
+ Version: 0.1.75
4
4
  Summary: CodeMie SDK for Python
5
5
  Author: Vadym Vlasenko
6
6
  Author-email: vadym_vlasenko@epam.com
@@ -746,33 +746,39 @@ For providing credentials please contact AI/Run CodeMie Team: Vadym_Vlasenko@epa
746
746
 
747
747
  ## Running tests
748
748
 
749
- For running tests on custom environment you should create .env file in the /tests directory,
750
- ask QA team: anton_yeromin@epam.com to provide all needed testing credentials
749
+ For running tests on custom environment you should create .env file in the ./tests directory,
750
+ ask QA team: anton_yeromin@epam.com to provide all needed testing credentials. Under this directory there are stubs
751
+ for .env files for running tests on local and preview environments.
752
+
753
+ Configuration example:
751
754
 
752
755
  ``` properties
753
756
 
754
757
  AUTH_SERVER_URL=https://keycloak.eks-core.aws.main.edp.projects.epam.com/auth
755
758
  AUTH_CLIENT_ID=codemie-preview
756
- AUTH_CLIENT_SECRET=<your_secret>
759
+ AUTH_CLIENT_SECRET=<auth_clienbt_secret>
757
760
  AUTH_REALM_NAME=codemie-prod
758
- CODEMIE_API_DOMAIN=https://codemie-preview.lab.epam.com/code-assistant-api
759
- NATS_URL=nats://nats-preview-codemie.epmd-edp-anthos.eu.gcp.cloudapp.epam.com:443
761
+ CODEMIE_API_DOMAIN=http://localhost:8080
760
762
  VERIFY_SSL=False
761
763
 
762
- USERNAME=<username>
763
- PASSWORD=<password>
764
+ NATS_URL=nats://localhost:4222
764
765
 
765
- TEST_USER_FULL_NAME="Test User"
766
+ ENV=local
766
767
  CLEANUP_DATA=True
767
768
 
768
- PROJECT_NAME=automation-tests-project
769
+ AUTH_USERNAME=<username>
770
+ AUTH_PASSWORD=<password>
771
+ TEST_USER_FULL_NAME=<user_full_name>
772
+
773
+ PROJECT_NAME=codemie
774
+ GIT_ENV=gitlab
769
775
 
770
776
  DEFAULT_TIMEOUT=60
771
777
 
772
778
  GITLAB_URL=https://gitbud.epam.com
773
779
  GITLAB_TOKEN=<gitlab_token>
774
780
  GITLAB_PROJECT=https://gitbud.epam.com/epm-cdme/autotests/codemie-test-project
775
- GITLAB_PROJECT_ID=<project_id>
781
+ GITLAB_PROJECT_ID=17889
776
782
 
777
783
  GITHUB_URL=https://github.com
778
784
  GITHUB_TOKEN=<github_token>
@@ -786,9 +792,8 @@ CONFLUENCE_URL=https://kb.epam.com
786
792
  CONFLUENCE_TOKEN=<confluence_token>
787
793
  CQL="space = EPMCDME and type = page and title = 'AQA Backlog Estimation'"
788
794
 
789
- AWS_ACCESS_KEY=<aws_access_key>
795
+ AWS_ACCESS_KEY=<aws_access_token>
790
796
  AWS_SECRET_KEY=<aws_secret_key>
791
- AWS_SESSION_TOKEN=<aws_session_token>
792
797
  ```
793
798
 
794
799
  Run all tests
@@ -797,10 +802,10 @@ Run all tests
797
802
  pytest -n auto --reruns 1
798
803
  ```
799
804
 
800
- Run e2e tests
805
+ Run e2e/regression tests
801
806
 
802
807
  ```shell
803
- pytest -n auto -m e2e --reruns 1
808
+ pytest -n auto -m "e2e or regression" --reruns 1
804
809
  ```
805
810
 
806
811
  Run tests for e2e tests for specific integration/tool.
@@ -4,7 +4,8 @@ codemie_sdk/auth/credentials.py,sha256=u2eLNsD8fELTgreQghVb0g0kk82zchUkux0M5lzq-
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=U0g-DFiybxz7gBvtuEcSeiT0WXz-VZY__9dE12QNMFE,7982
7
+ codemie_sdk/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
+ codemie_sdk/models/assistant.py,sha256=ZEhn5xH0EsmmZMI2U8kaGryPfFgg-YzlIV9XmOFiUMs,8524
8
9
  codemie_sdk/models/common.py,sha256=gmZ-ps8TbaieNKr0kUKoQEjhVrHD2CAYomOpZQRatH8,1195
9
10
  codemie_sdk/models/datasource.py,sha256=u6X1xXZ3ZR9CWH0B0bSw3IjC7KyEwtRKHIc6ZuhJwsg,10813
10
11
  codemie_sdk/models/integration.py,sha256=c2D7QsM9HJ9zpupkjKz1v60rtBMGgTyJLYXUyAzS5no,2240
@@ -13,7 +14,7 @@ codemie_sdk/models/task.py,sha256=J4ZFRY3s8qBGrqB5NLQF0rMbInLh4s7OEZ0ZfmnW0Ho,14
13
14
  codemie_sdk/models/user.py,sha256=Q0rjimZh-IbeaPfq6b6fk6ZaCtwLqWHEIlU863suCS4,1777
14
15
  codemie_sdk/models/workflow.py,sha256=h3ZM-2bBucRd9CzZUYDTU0rGR1ihEN7cxkHgQmJfJVc,2394
15
16
  codemie_sdk/models/workflow_state.py,sha256=CMYFQZ7sy4QxmnWmc83TFfqP7TG_3rW5MdH5fxsS9kY,1251
16
- codemie_sdk/services/assistant.py,sha256=xuzdel93VlOOy_xCmuptlwpChQWOvuPbpBoB2nF-Sx0,6499
17
+ codemie_sdk/services/assistant.py,sha256=0OFx7enE65I2uiLpbIebnCXhap2QdkFl8CFBUPzf9Jc,7022
17
18
  codemie_sdk/services/datasource.py,sha256=gIP9D-sq4733x9f0mWL87bMI1pWYxIsv5eYXkAs0O6Q,7150
18
19
  codemie_sdk/services/integration.py,sha256=CrUfO-4_JwtCt8Qig3RP2uTi1uaTkedyTaPdkFY509g,5410
19
20
  codemie_sdk/services/llm.py,sha256=0-e4_7RvLHs2giCyoQ5U4KDTh6p5VXgPKNxnDP9ZDFU,1100
@@ -24,6 +25,6 @@ codemie_sdk/services/workflow_execution.py,sha256=aGoT3rdTmh5-doAsrmBBjLEuOfvL5a
24
25
  codemie_sdk/services/workflow_execution_state.py,sha256=tXoaa8yT09xgYEUNiHhVULe76TwGwVgZupMIUyyLxdo,2070
25
26
  codemie_sdk/utils/__init__.py,sha256=BXAJJfAzO89-kMYvWWo9wSNhSbGgF3vB1In9sePFhMM,109
26
27
  codemie_sdk/utils/http.py,sha256=YzE53y1r7PBUKcEQt-gGYduRY06I8xzqVRzlj9f_voA,10084
27
- codemie_sdk_python-0.1.73.dist-info/METADATA,sha256=3hLJJCC6C0AIgvYPh6B1xBS3ECfhQ0wnYKh6bVMZMYY,21852
28
- codemie_sdk_python-0.1.73.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
29
- codemie_sdk_python-0.1.73.dist-info/RECORD,,
28
+ codemie_sdk_python-0.1.75.dist-info/METADATA,sha256=EMn_rsOcCBy5bVfYHLQdXRSYT2XvvwbvePmRfvJytFg,21914
29
+ codemie_sdk_python-0.1.75.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
30
+ codemie_sdk_python-0.1.75.dist-info/RECORD,,