projectdavid-common 0.20.0__py3-none-any.whl → 0.21.0__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.
- projectdavid_common/constants/ai_model_map.py +0 -40
- projectdavid_common/schemas/actions_schema.py +15 -18
- {projectdavid_common-0.20.0.dist-info → projectdavid_common-0.21.0.dist-info}/METADATA +1 -1
- {projectdavid_common-0.20.0.dist-info → projectdavid_common-0.21.0.dist-info}/RECORD +7 -7
- {projectdavid_common-0.20.0.dist-info → projectdavid_common-0.21.0.dist-info}/WHEEL +0 -0
- {projectdavid_common-0.20.0.dist-info → projectdavid_common-0.21.0.dist-info}/entry_points.txt +0 -0
- {projectdavid_common-0.20.0.dist-info → projectdavid_common-0.21.0.dist-info}/top_level.txt +0 -0
|
@@ -62,45 +62,6 @@ HYPERBOLIC_MODELS = {
|
|
|
62
62
|
"hyperbolic/openai/gpt-oss-20b": "openai/gpt-oss-20b",
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
GOOGLE_GEMINI_MODELS = {
|
|
66
|
-
"google/gemini-1.0-pro-vision-latest": "gemini-1.0-pro-vision-latest",
|
|
67
|
-
"google/gemini-pro-vision": "gemini-pro-vision",
|
|
68
|
-
"google/gemini-1.5-pro-latest": "gemini-1.5-pro-latest",
|
|
69
|
-
"google/gemini-1.5-pro-001": "gemini-1.5-pro-001",
|
|
70
|
-
"google/gemini-1.5-pro-002": "gemini-1.5-pro-002",
|
|
71
|
-
"google/gemini-1.5-pro": "gemini-1.5-pro",
|
|
72
|
-
"google/gemini-1.5-flash-latest": "gemini-1.5-flash-latest",
|
|
73
|
-
"google/gemini-1.5-flash-001": "gemini-1.5-flash-001",
|
|
74
|
-
"google/gemini-1.5-flash-001-tuning": "gemini-1.5-flash-001-tuning",
|
|
75
|
-
"google/gemini-1.5-flash": "gemini-1.5-flash",
|
|
76
|
-
"google/gemini-1.5-flash-002": "gemini-1.5-flash-002",
|
|
77
|
-
"google/gemini-1.5-flash-8b": "gemini-1.5-flash-8b",
|
|
78
|
-
"google/gemini-1.5-flash-8b-001": "gemini-1.5-flash-8b-001",
|
|
79
|
-
"google/gemini-1.5-flash-8b-latest": "gemini-1.5-flash-8b-latest",
|
|
80
|
-
"google/gemini-1.5-flash-8b-exp-0827": "gemini-1.5-flash-8b-exp-0827",
|
|
81
|
-
"google/gemini-1.5-flash-8b-exp-0924": "gemini-1.5-flash-8b-exp-0924",
|
|
82
|
-
"google/gemini-2.5-pro-exp-03-25": "gemini-2.5-pro-exp-03-25",
|
|
83
|
-
"google/gemini-2.5-pro-preview-03-25": "gemini-2.5-pro-preview-03-25",
|
|
84
|
-
"google/gemini-2.0-flash-exp": "gemini-2.0-flash-exp",
|
|
85
|
-
"google/gemini-2.0-flash": "gemini-2.0-flash",
|
|
86
|
-
"google/gemini-2.0-flash-001": "gemini-2.0-flash-001",
|
|
87
|
-
"google/gemini-2.0-flash-exp-image-generation": "gemini-2.0-flash-exp-image-generation",
|
|
88
|
-
"google/gemini-2.0-flash-lite-001": "gemini-2.0-flash-lite-001",
|
|
89
|
-
"google/gemini-2.0-flash-lite": "gemini-2.0-flash-lite",
|
|
90
|
-
"google/gemini-2.0-flash-lite-preview-02-05": "gemini-2.0-flash-lite-preview-02-05",
|
|
91
|
-
"google/gemini-2.0-flash-lite-preview": "gemini-2.0-flash-lite-preview",
|
|
92
|
-
"google/gemini-2.0-pro-exp": "gemini-2.0-pro-exp",
|
|
93
|
-
"google/gemini-2.0-pro-exp-02-05": "gemini-2.0-pro-exp-02-05",
|
|
94
|
-
"google/gemini-exp-1206": "gemini-exp-1206",
|
|
95
|
-
"google/gemini-2.0-flash-thinking-exp-01-21": "gemini-2.0-flash-thinking-exp-01-21",
|
|
96
|
-
"google/gemini-2.0-flash-thinking-exp": "gemini-2.0-flash-thinking-exp",
|
|
97
|
-
"google/gemini-2.0-flash-thinking-exp-1219": "gemini-2.0-flash-thinking-exp-1219",
|
|
98
|
-
"google/learnlm-1.5-pro-experimental": "learnlm-1.5-pro-experimental",
|
|
99
|
-
"google/gemma-3-1b-it": "gemma-3-1b-it",
|
|
100
|
-
"google/gemma-3-4b-it": "gemma-3-4b-it",
|
|
101
|
-
"google/gemma-3-12b-it": "gemma-3-12b-it",
|
|
102
|
-
"google/gemma-3-27b-it": "gemma-3-27b-it",
|
|
103
|
-
}
|
|
104
65
|
|
|
105
66
|
# --- MASTER COMBINED MAP ---
|
|
106
67
|
# This merges them all into one flat lookup for the Router
|
|
@@ -108,5 +69,4 @@ MODEL_MAP = {
|
|
|
108
69
|
**DEEPSEEK_NATIVE_MODELS,
|
|
109
70
|
**TOGETHER_AI_MODELS,
|
|
110
71
|
**HYPERBOLIC_MODELS,
|
|
111
|
-
**GOOGLE_GEMINI_MODELS,
|
|
112
72
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
# src/projectdavid_common/schemas/actions_schema.py
|
|
2
1
|
from datetime import datetime
|
|
3
2
|
from enum import Enum
|
|
4
3
|
from typing import Any, Dict, List, Optional
|
|
@@ -17,6 +16,10 @@ class ActionBase(BaseModel):
|
|
|
17
16
|
function_args: Optional[Dict[str, Any]] = None
|
|
18
17
|
result: Optional[Dict[str, Any]] = None
|
|
19
18
|
|
|
19
|
+
# New Fields
|
|
20
|
+
tool_call_id: Optional[str] = None
|
|
21
|
+
turn_index: Optional[int] = 0
|
|
22
|
+
|
|
20
23
|
model_config = ConfigDict(from_attributes=True)
|
|
21
24
|
|
|
22
25
|
|
|
@@ -38,6 +41,10 @@ class ActionCreate(BaseModel):
|
|
|
38
41
|
expires_at: Optional[datetime] = None
|
|
39
42
|
status: Optional[str] = "pending"
|
|
40
43
|
|
|
44
|
+
# Optional input during creation (passed from Orchestrator)
|
|
45
|
+
tool_call_id: Optional[str] = None
|
|
46
|
+
turn_index: Optional[int] = 0
|
|
47
|
+
|
|
41
48
|
@field_validator("tool_name", mode="before")
|
|
42
49
|
@classmethod
|
|
43
50
|
def validate_tool_fields(cls, v: Optional[str]) -> Optional[str]:
|
|
@@ -50,8 +57,8 @@ class ActionCreate(BaseModel):
|
|
|
50
57
|
"example": {
|
|
51
58
|
"tool_name": "example_tool_name",
|
|
52
59
|
"run_id": "example_run_id",
|
|
53
|
-
"
|
|
54
|
-
"
|
|
60
|
+
"tool_call_id": "call_abc123",
|
|
61
|
+
"function_args": {"arg1": "value1"},
|
|
55
62
|
"status": "pending",
|
|
56
63
|
}
|
|
57
64
|
}
|
|
@@ -63,6 +70,11 @@ class ActionRead(BaseModel):
|
|
|
63
70
|
run_id: Optional[str] = None
|
|
64
71
|
tool_id: Optional[str] = None
|
|
65
72
|
tool_name: Optional[str] = None
|
|
73
|
+
|
|
74
|
+
# New Fields
|
|
75
|
+
tool_call_id: Optional[str] = None
|
|
76
|
+
turn_index: Optional[int] = None
|
|
77
|
+
|
|
66
78
|
triggered_at: Optional[str] = None
|
|
67
79
|
expires_at: Optional[str] = None
|
|
68
80
|
is_processed: Optional[bool] = None
|
|
@@ -74,21 +86,6 @@ class ActionRead(BaseModel):
|
|
|
74
86
|
model_config = ConfigDict(
|
|
75
87
|
extra="forbid",
|
|
76
88
|
validate_assignment=True,
|
|
77
|
-
json_schema_extra={
|
|
78
|
-
"example": {
|
|
79
|
-
"id": "action_123456",
|
|
80
|
-
"run_id": "run_123456",
|
|
81
|
-
"tool_id": "tool_123456",
|
|
82
|
-
"tool_name": "code_interpreter",
|
|
83
|
-
"triggered_at": "2025-03-24T12:00:00Z",
|
|
84
|
-
"expires_at": "2025-03-24T12:05:00Z",
|
|
85
|
-
"is_processed": False,
|
|
86
|
-
"processed_at": "2025-03-24T12:01:00Z",
|
|
87
|
-
"status": "in_progress",
|
|
88
|
-
"function_args": {"param1": "value1"},
|
|
89
|
-
"result": {"output": "result data"},
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
89
|
)
|
|
93
90
|
|
|
94
91
|
|
|
@@ -2,14 +2,14 @@ projectdavid_common/__init__.py,sha256=qGbd7vBnhtG4f3ppij8IEMbmzSDSHoIYLIEB_u5we
|
|
|
2
2
|
projectdavid_common/utils.py,sha256=Q-GpA6R4QbStLFxNNft_sYEA25bVzYqOcsNy8VRHrxs,657
|
|
3
3
|
projectdavid_common/validation.py,sha256=kKfmdWsMBRjK8gLKgMMW1zs0PDdMJ4c0xNr2GAxReeE,5787
|
|
4
4
|
projectdavid_common/constants/__init__.py,sha256=i2JnKwAKnlH8A49bQErfbZHP-PtSdJMl3TMTnup9x1M,250
|
|
5
|
-
projectdavid_common/constants/ai_model_map.py,sha256=
|
|
5
|
+
projectdavid_common/constants/ai_model_map.py,sha256=fV9iB9LUbvoK-jfPqnRU4ReLs1nIywemE2rOfRMYA7w,4009
|
|
6
6
|
projectdavid_common/constants/assistant_map.py,sha256=sKCC5Rxm5HnsrkzlbLystRJUOVMQQxhq4OVeFZ9p7vo,141
|
|
7
7
|
projectdavid_common/constants/mime_types.py,sha256=vvuCYP_oreoRkP1D80eRgv8mQTNsQ_huoqO3fLUSviA,1729
|
|
8
8
|
projectdavid_common/constants/platform.py,sha256=ATXfVuEigWmhl0WRXLhObFlUegNPKdNHGLp4zBjKs04,2679
|
|
9
9
|
projectdavid_common/constants/timeouts.py,sha256=0kPHYVzSon29NfA8CPWZ-r4gf9nlzxO0TGhvMP60WLM,144
|
|
10
10
|
projectdavid_common/constants/tools.py,sha256=FOsrnmwccklDrxRP1OUr22Xx5Uswg80LFaPHRTVdk7I,417
|
|
11
11
|
projectdavid_common/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
projectdavid_common/schemas/actions_schema.py,sha256=
|
|
12
|
+
projectdavid_common/schemas/actions_schema.py,sha256=qvMQaM5AH6DGmOfRj8nuFpFrnZHDAgdExu3GAEVGTPQ,2630
|
|
13
13
|
projectdavid_common/schemas/api_key_schemas.py,sha256=PM6WOlzE-Y06v5YXLYXH5B2EmttMc8oiWbHd4Su81p4,4031
|
|
14
14
|
projectdavid_common/schemas/assistants_schema.py,sha256=TMH50SM2ZPbTdnaY7_qmvLev2CES8xQtrQAcwnBH5tI,4401
|
|
15
15
|
projectdavid_common/schemas/enums.py,sha256=pQdkz_hmfU_vcZdn4XOvcPOcQihaX_iuQIFk-yKTiaw,692
|
|
@@ -26,8 +26,8 @@ projectdavid_common/schemas/vectors_schema.py,sha256=KG4HSa6yVgBLe01iSdXKoU3UxRS
|
|
|
26
26
|
projectdavid_common/utilities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
27
|
projectdavid_common/utilities/identifier_service.py,sha256=7hL4_i7pGs6bibCSkXQIwpMSUCFASFE0VPm6gqMv4sk,2950
|
|
28
28
|
projectdavid_common/utilities/logging_service.py,sha256=ONKy3PRjIrxIrTJ_X3iv7v9HA0wyejyw4WrQYlJy7Oc,2614
|
|
29
|
-
projectdavid_common-0.
|
|
30
|
-
projectdavid_common-0.
|
|
31
|
-
projectdavid_common-0.
|
|
32
|
-
projectdavid_common-0.
|
|
33
|
-
projectdavid_common-0.
|
|
29
|
+
projectdavid_common-0.21.0.dist-info/METADATA,sha256=-p1SyIKWOir_-ZBcRqmWxyHXCyGaISPfECrnDlKziz4,1642
|
|
30
|
+
projectdavid_common-0.21.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
31
|
+
projectdavid_common-0.21.0.dist-info/entry_points.txt,sha256=Y8HAIUW0ifCKcAzAqR21wu1ATHNFWWWiUB33UYv095o,74
|
|
32
|
+
projectdavid_common-0.21.0.dist-info/top_level.txt,sha256=lJ-jkZ0n0jWktoMJFcw-DzLoMTY2juuw5fgMIqYu1UU,20
|
|
33
|
+
projectdavid_common-0.21.0.dist-info/RECORD,,
|
|
File without changes
|
{projectdavid_common-0.20.0.dist-info → projectdavid_common-0.21.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|