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

@@ -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
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: codemie-sdk-python
3
- Version: 0.1.183
3
+ Version: 0.1.185
4
4
  Summary: CodeMie SDK for Python
5
5
  Author: Vadym Vlasenko
6
6
  Author-email: vadym_vlasenko@epam.com
@@ -14,7 +14,8 @@ codemie_sdk/models/llm.py,sha256=ppb9-1dx1UFhRuJpSR3ij7H6Pfhe9nO4C4BEOIbToy4,119
14
14
  codemie_sdk/models/task.py,sha256=J4ZFRY3s8qBGrqB5NLQF0rMbInLh4s7OEZ0ZfmnW0Ho,1476
15
15
  codemie_sdk/models/user.py,sha256=Q0rjimZh-IbeaPfq6b6fk6ZaCtwLqWHEIlU863suCS4,1777
16
16
  codemie_sdk/models/workflow.py,sha256=qfk0rBJnFUMpcEDq_E5GB3hzYKbe_bb2NYJlLZJwUEE,2453
17
- codemie_sdk/models/workflow_state.py,sha256=CMYFQZ7sy4QxmnWmc83TFfqP7TG_3rW5MdH5fxsS9kY,1251
17
+ codemie_sdk/models/workflow_state.py,sha256=okEMKzkiBU3GHs9VNBoiEMOnOeZRMXGYtpL0NYSg-FY,1374
18
+ codemie_sdk/models/workflow_thoughts.py,sha256=CjHaIPgca9kQAjpoq8IpX4MuDeql1SvaoKS5RmyU2SE,616
18
19
  codemie_sdk/services/assistant.py,sha256=BsTR_uoPoZtta6icfw2M0Ea6w2VIhYndDUVqsHJuZJo,7888
19
20
  codemie_sdk/services/conversation.py,sha256=Ss0mkGaBi4u8-YKzhRYUJOfoFqJueDp9JurI5DRCGT8,2566
20
21
  codemie_sdk/services/datasource.py,sha256=d8LImpireGOnXKvj4h8iafq_ZQMn177_GGLLiE5g7wU,7405
@@ -23,10 +24,10 @@ codemie_sdk/services/llm.py,sha256=0-e4_7RvLHs2giCyoQ5U4KDTh6p5VXgPKNxnDP9ZDFU,1
23
24
  codemie_sdk/services/task.py,sha256=3e9t8_LMkR4xfeMBwMCo7ZF87PxPS-ZbzDg85ilda2M,1031
24
25
  codemie_sdk/services/user.py,sha256=7B-Qw451qKPD5Io6qLda-kbFDaPRQ3TamJamiGwCQu4,1013
25
26
  codemie_sdk/services/workflow.py,sha256=0d5grAsBIH2NZY66UbVhlDqEFYxEYSBByj3GNgcz_DQ,4965
26
- codemie_sdk/services/workflow_execution.py,sha256=aGoT3rdTmh5-doAsrmBBjLEuOfvL5aqeo3g9th1_aAw,3647
27
+ codemie_sdk/services/workflow_execution.py,sha256=fvDjn0GEm8ObL8N2LUO0kk6zwTl0-DYBr2jZBx9OeLE,4377
27
28
  codemie_sdk/services/workflow_execution_state.py,sha256=tXoaa8yT09xgYEUNiHhVULe76TwGwVgZupMIUyyLxdo,2070
28
29
  codemie_sdk/utils/__init__.py,sha256=BXAJJfAzO89-kMYvWWo9wSNhSbGgF3vB1In9sePFhMM,109
29
30
  codemie_sdk/utils/http.py,sha256=ZtXb-hlwqXmjSTKRncgO-9MYoXnmHt2Dljno0kPy7mA,9506
30
- codemie_sdk_python-0.1.183.dist-info/METADATA,sha256=eQL8TNW2bWYh5XWMY5SGyw-dRuquv_oZyWBkftKhd7E,24494
31
- codemie_sdk_python-0.1.183.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- codemie_sdk_python-0.1.183.dist-info/RECORD,,
31
+ codemie_sdk_python-0.1.185.dist-info/METADATA,sha256=I98ehWvhd2mh19qK2asNNS6TNkXFTvOtjO1qBHpFluQ,24494
32
+ codemie_sdk_python-0.1.185.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
33
+ codemie_sdk_python-0.1.185.dist-info/RECORD,,