|
2 | 2 |
|
3 | 3 | from dataclasses import dataclass |
4 | 4 | from enum import Enum |
5 | | -from typing import Any, Dict, List, Optional, Union |
| 5 | +from typing import Any, Dict, Optional, Union |
6 | 6 |
|
7 | 7 | from typing_extensions import TypedDict |
8 | 8 |
|
@@ -95,14 +95,6 @@ class ProjectModelFilters: |
95 | 95 | model_id: Optional[str] = None |
96 | 96 |
|
97 | 97 |
|
98 | | -class ChatItemRole(str, Enum): |
99 | | - """Enumeration of the supported chat item role.""" |
100 | | - |
101 | | - ASSISTANT = "ASSISTANT" |
102 | | - USER = "USER" |
103 | | - SYSTEM = "SYSTEM" |
104 | | - |
105 | | - |
106 | 98 | class OpenAISDKCredentialsDict(TypedDict): |
107 | 99 | """Dict that represents model.Credentials for OpenAI SDK.""" |
108 | 100 |
|
@@ -133,33 +125,3 @@ class ProjectModelDict(TypedDict): |
133 | 125 | id: str |
134 | 126 | configuration: Dict[str, Any] |
135 | 127 | model: ModelDict |
136 | | - |
137 | | - |
138 | | -class ChatItem(TypedDict): |
139 | | - """Dict that represents a ChatItem.""" |
140 | | - |
141 | | - id: str |
142 | | - content: str |
143 | | - createdAt: Optional[str] |
144 | | - externalId: str |
145 | | - modelId: Optional[str] |
146 | | - modelName: Optional[str] |
147 | | - role: ChatItemRole |
148 | | - |
149 | | - |
150 | | -class ConversationLabel(TypedDict): |
151 | | - """Dict that represents a ConversationLabel.""" |
152 | | - |
153 | | - completion: Optional[Dict] |
154 | | - conversation: Optional[Dict] |
155 | | - round: Optional[Dict] |
156 | | - |
157 | | - |
158 | | -class Conversation(TypedDict): |
159 | | - """Dict that represents a Conversation.""" |
160 | | - |
161 | | - chatItems: List[ChatItem] |
162 | | - externalId: Optional[str] |
163 | | - label: Optional[ConversationLabel] |
164 | | - labeler: Optional[str] |
165 | | - metadata: Optional[dict] |
0 commit comments