codemie-sdk-python 0.1.183__tar.gz → 0.1.185__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.
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/PKG-INFO +1 -1
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/pyproject.toml +1 -1
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/workflow_state.py +6 -3
- codemie_sdk_python-0.1.185/src/codemie_sdk/models/workflow_thoughts.py +26 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/workflow_execution.py +19 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/README.md +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/__init__.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/auth/__init__.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/auth/credentials.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/client/__init__.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/client/client.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/exceptions.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/__init__.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/assistant.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/common.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/conversation.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/datasource.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/integration.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/llm.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/task.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/user.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/workflow.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/assistant.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/conversation.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/datasource.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/integration.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/llm.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/task.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/user.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/workflow.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/workflow_execution_state.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/utils/__init__.py +0 -0
- {codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/utils/http.py +0 -0
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/workflow_state.py
RENAMED
|
@@ -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
|
-
|
|
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
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/auth/credentials.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/client/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/__init__.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/assistant.py
RENAMED
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/conversation.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/datasource.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/models/workflow.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/assistant.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/conversation.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/datasource.py
RENAMED
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/integration.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codemie_sdk_python-0.1.183 → codemie_sdk_python-0.1.185}/src/codemie_sdk/services/workflow.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|