codemie-sdk-python 0.1.184__tar.gz → 0.1.186__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.

Potentially problematic release.


This version of codemie-sdk-python might be problematic. Click here for more details.

Files changed (33) hide show
  1. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/PKG-INFO +1 -1
  2. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/pyproject.toml +1 -1
  3. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/workflow_state.py +6 -3
  4. codemie_sdk_python-0.1.186/src/codemie_sdk/models/workflow_thoughts.py +26 -0
  5. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/workflow_execution.py +19 -0
  6. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/README.md +0 -0
  7. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/__init__.py +0 -0
  8. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/auth/__init__.py +0 -0
  9. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/auth/credentials.py +0 -0
  10. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/client/__init__.py +0 -0
  11. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/client/client.py +0 -0
  12. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/exceptions.py +0 -0
  13. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/__init__.py +0 -0
  14. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/assistant.py +0 -0
  15. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/common.py +0 -0
  16. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/conversation.py +0 -0
  17. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/datasource.py +0 -0
  18. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/integration.py +0 -0
  19. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/llm.py +0 -0
  20. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/task.py +0 -0
  21. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/user.py +0 -0
  22. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/models/workflow.py +0 -0
  23. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/assistant.py +0 -0
  24. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/conversation.py +0 -0
  25. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/datasource.py +0 -0
  26. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/integration.py +0 -0
  27. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/llm.py +0 -0
  28. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/task.py +0 -0
  29. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/user.py +0 -0
  30. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/workflow.py +0 -0
  31. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/services/workflow_execution_state.py +0 -0
  32. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/utils/__init__.py +0 -0
  33. {codemie_sdk_python-0.1.184 → codemie_sdk_python-0.1.186}/src/codemie_sdk/utils/http.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.184
3
+ Version: 0.1.186
4
4
  Summary: CodeMie SDK for Python
5
5
  Author: Vadym Vlasenko
6
6
  Author-email: vadym_vlasenko@epam.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "codemie-sdk-python"
3
- version = "0.1.184"
3
+ version = "0.1.186"
4
4
  description = "CodeMie SDK for Python"
5
5
  authors = [
6
6
  "Vadym Vlasenko <vadym_vlasenko@epam.com>",
@@ -2,7 +2,7 @@
2
2
 
3
3
  from datetime import datetime
4
4
  from enum import Enum
5
- from typing import Optional
5
+ from typing import List, Optional
6
6
 
7
7
  from pydantic import BaseModel, ConfigDict
8
8
 
@@ -24,9 +24,11 @@ class WorkflowExecutionStateThought(BaseModel):
24
24
  model_config = ConfigDict(populate_by_name=True)
25
25
 
26
26
  id: str
27
- text: str
28
- created_at: datetime
27
+ execution_state_id: str
29
28
  parent_id: Optional[str] = None
29
+ author_name: str
30
+ author_type: str
31
+ date: datetime
30
32
 
31
33
 
32
34
  class WorkflowExecutionState(BaseModel):
@@ -41,6 +43,7 @@ class WorkflowExecutionState(BaseModel):
41
43
  status: WorkflowExecutionStatusEnum = WorkflowExecutionStatusEnum.NOT_STARTED
42
44
  started_at: Optional[datetime] = None
43
45
  completed_at: Optional[datetime] = None
46
+ thoughts: Optional[List[WorkflowExecutionStateThought]] = None
44
47
 
45
48
 
46
49
  class WorkflowExecutionStateOutput(BaseModel):
@@ -0,0 +1,26 @@
1
+ """Workflow execution thoughts models."""
2
+
3
+ from datetime import datetime
4
+ from typing import List, Optional
5
+
6
+ from pydantic import BaseModel, ConfigDict
7
+
8
+
9
+ class WorkflowExecutionThought(BaseModel):
10
+ """Model for workflow execution thought."""
11
+
12
+ model_config = ConfigDict(populate_by_name=True)
13
+
14
+ id: str
15
+ execution_state_id: str
16
+ parent_id: Optional[str] = None
17
+ author_name: str
18
+ author_type: str
19
+ input_text: str
20
+ content: str
21
+ date: datetime
22
+ children: List["WorkflowExecutionThought"] = []
23
+
24
+
25
+ # Update forward references for recursive model
26
+ WorkflowExecutionThought.model_rebuild()
@@ -4,6 +4,7 @@ from typing import List, Optional
4
4
 
5
5
  from ..models.common import PaginationParams
6
6
  from ..models.workflow import WorkflowExecution
7
+ from ..models.workflow_thoughts import WorkflowExecutionThought
7
8
  from .workflow_execution_state import WorkflowExecutionStateService
8
9
  from ..utils import ApiRequestHandler
9
10
 
@@ -112,3 +113,21 @@ class WorkflowExecutionService:
112
113
  return self._api.put(
113
114
  f"/v1/workflows/{self._workflow_id}/executions/{execution_id}/resume", dict
114
115
  )
116
+
117
+ def get_thoughts(
118
+ self, execution_id: str, thought_ids: List[str]
119
+ ) -> List[WorkflowExecutionThought]:
120
+ """Get detailed thoughts information for specific thought IDs.
121
+
122
+ Args:
123
+ execution_id: ID of the execution to get thoughts for
124
+ thought_ids: List of thought IDs to retrieve detailed information for
125
+
126
+ Returns:
127
+ List[WorkflowExecutionThought]: List of detailed thought objects
128
+ """
129
+ return self._api.post(
130
+ f"/v1/workflows/{self._workflow_id}/executions/{execution_id}/thoughts",
131
+ List[WorkflowExecutionThought],
132
+ json_data=thought_ids,
133
+ )