projectdavid-common 0.21.6__tar.gz → 0.21.8__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.
Files changed (39) hide show
  1. {projectdavid_common-0.21.6/src/projectdavid_common.egg-info → projectdavid_common-0.21.8}/PKG-INFO +1 -1
  2. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/pyproject.toml +1 -1
  3. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/ai_model_map.py +75 -41
  4. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/actions_schema.py +16 -0
  5. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8/src/projectdavid_common.egg-info}/PKG-INFO +1 -1
  6. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/MANIFEST.in +0 -0
  7. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/README.md +0 -0
  8. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/setup.cfg +0 -0
  9. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/__init__.py +0 -0
  10. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/__init__.py +0 -0
  11. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/assistant_map.py +0 -0
  12. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/mime_types.py +0 -0
  13. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/platform.py +0 -0
  14. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/timeouts.py +0 -0
  15. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/constants/tools.py +0 -0
  16. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/__init__.py +0 -0
  17. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/api_key_schemas.py +0 -0
  18. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/assistants_schema.py +0 -0
  19. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/enums.py +0 -0
  20. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/files_schema.py +0 -0
  21. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/inference_schema.py +0 -0
  22. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/messages_schema.py +0 -0
  23. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/runs_schema.py +0 -0
  24. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/stream_schema.py +0 -0
  25. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/threads_schema.py +0 -0
  26. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/users_schema.py +0 -0
  27. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/vector_search_envelope.py +0 -0
  28. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/schemas/vectors_schema.py +0 -0
  29. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/utilities/__init__.py +0 -0
  30. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/utilities/identifier_service.py +0 -0
  31. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/utilities/logging_service.py +0 -0
  32. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/utils.py +0 -0
  33. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common/validation.py +0 -0
  34. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common.egg-info/SOURCES.txt +0 -0
  35. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common.egg-info/dependency_links.txt +0 -0
  36. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common.egg-info/entry_points.txt +0 -0
  37. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common.egg-info/requires.txt +0 -0
  38. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/src/projectdavid_common.egg-info/top_level.txt +0 -0
  39. {projectdavid_common-0.21.6 → projectdavid_common-0.21.8}/tests/test_vector_store_models.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: projectdavid_common
3
- Version: 0.21.6
3
+ Version: 0.21.8
4
4
  Summary: Common shared custom packages
5
5
  Author-email: "Francis N." <francis.neequaye@projectdavid.co.uk>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "projectdavid_common"
7
- version = "0.21.6"
7
+ version = "0.21.8"
8
8
  description = "Common shared custom packages"
9
9
  readme = "README.md"
10
10
  authors = [
@@ -18,58 +18,92 @@ DEEPSEEK_NATIVE_MODELS = {
18
18
 
19
19
 
20
20
  TOGETHER_AI_MODELS = {
21
- # --- DeepSeek ---
21
+ # --- Qwen ---
22
+ "together-ai/Qwen/QwQ-32B": "Qwen/QwQ-32B",
23
+ "together-ai/Qwen/Qwen-Image": "Qwen/Qwen-Image",
24
+ "together-ai/Qwen/Qwen2-7B": "Qwen/Qwen2-7B",
25
+ "together-ai/Qwen/Qwen2-VL-72B-Instruct": "Qwen/Qwen2-VL-72B-Instruct",
26
+ "together-ai/Qwen/Qwen2.5-1.5B": "Qwen/Qwen2.5-1.5B",
27
+ "together-ai/Qwen/Qwen2.5-72B-Instruct-Turbo": "Qwen/Qwen2.5-72B-Instruct-Turbo",
28
+ "together-ai/Qwen/Qwen2.5-7B-Instruct-Turbo": "Qwen/Qwen2.5-7B-Instruct-Turbo",
29
+ "together-ai/Qwen/Qwen2.5-Coder-32B-Instruct": "Qwen/Qwen2.5-Coder-32B-Instruct",
30
+ "together-ai/Qwen/Qwen2.5-VL-72B-Instruct": "Qwen/Qwen2.5-VL-72B-Instruct",
31
+ "together-ai/Qwen/Qwen3-14B-Base": "Qwen/Qwen3-14B-Base",
32
+ "together-ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput": "Qwen/Qwen3-235B-A22B-Instruct-2507-tput",
33
+ "together-ai/Qwen/Qwen3-235B-A22B-Thinking-2507": "Qwen/Qwen3-235B-A22B-Thinking-2507",
34
+ "together-ai/Qwen/Qwen3-235B-A22B-fp8-tput": "Qwen/Qwen3-235B-A22B-fp8-tput",
35
+ "together-ai/Qwen/Qwen3-8B": "Qwen/Qwen3-8B",
36
+ "together-ai/Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",
37
+ "together-ai/Qwen/Qwen3-Next-80B-A3B-Instruct": "Qwen/Qwen3-Next-80B-A3B-Instruct",
38
+ "together-ai/Qwen/Qwen3-Next-80B-A3B-Instruct-FP8": "Qwen/Qwen3-Next-80B-A3B-Instruct-FP8",
39
+ "together-ai/Qwen/Qwen3-Next-80B-A3B-Thinking": "Qwen/Qwen3-Next-80B-A3B-Thinking",
40
+ "together-ai/Qwen/Qwen3-VL-235B-A22B-Instruct-FP": "Qwen/Qwen3-VL-235B-A22B-Instruct-FP",
41
+ "together-ai/Qwen/Qwen3-VL-32B-Instruct": "Qwen/Qwen3-VL-32B-Instruct",
42
+ "together-ai/Qwen/Qwen3-VL-8B-Instruct": "Qwen/Qwen3-VL-8B-Instruct",
43
+ # --- Servicenow-ai ---
44
+ "together-ai/ServiceNow-AI/Apriel-1.5-15b-Thinker": "ServiceNow-AI/Apriel-1.5-15b-Thinker",
45
+ "together-ai/ServiceNow-AI/Apriel-1.6-15b-Thinker": "ServiceNow-AI/Apriel-1.6-15b-Thinker",
46
+ # --- Arcee-ai ---
47
+ "together-ai/arcee-ai/trinity-mini": "arcee-ai/trinity-mini",
48
+ # --- Arize-ai ---
49
+ "together-ai/arize-ai/qwen-2-1.5b-instruct": "arize-ai/qwen-2-1.5b-instruct",
50
+ # --- Deepcogito ---
51
+ "together-ai/deepcogito/cogito-v2-1-671b": "deepcogito/cogito-v2-1-671b",
52
+ "together-ai/deepcogito/cogito-v2-preview-llama-109B-MoE": "deepcogito/cogito-v2-preview-llama-109B-MoE",
53
+ "together-ai/deepcogito/cogito-v2-preview-llama-405B": "deepcogito/cogito-v2-preview-llama-405B",
54
+ "together-ai/deepcogito/cogito-v2-preview-llama-70B": "deepcogito/cogito-v2-preview-llama-70B",
55
+ # --- Deepseek-ai ---
22
56
  "together-ai/deepseek-ai/DeepSeek-R1": "deepseek-ai/DeepSeek-R1",
23
- "together-ai/deepseek-ai/DeepSeek-V3": "deepseek-ai/DeepSeek-V3",
57
+ "together-ai/deepseek-ai/DeepSeek-R1-0528-tput": "deepseek-ai/DeepSeek-R1-0528-tput",
58
+ "together-ai/deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free",
24
59
  "together-ai/deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B": "deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B",
60
+ "together-ai/deepseek-ai/DeepSeek-V3": "deepseek-ai/DeepSeek-V3",
61
+ "together-ai/deepseek-ai/DeepSeek-V3.1": "deepseek-ai/DeepSeek-V3.1",
25
62
  "together-ai/deepseek-ai/deepseek-ai/DeepSeek-R1-Distill-Qwen-14B": "deepseek-ai/DeepSeek-R1-Distill-Qwen-14B",
26
- "together-ai/deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free": "deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free",
27
- # --- Meta Llama ---
28
- "together-ai/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
29
- "together-ai/meta-llama/Llama-4-Scout-17B-16E-Instruct": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
30
- "together-ai/meta-llama/Llama-3.3-70B-Instruct-Turbo": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
63
+ # --- Essentialai ---
64
+ "together-ai/essentialai/rnj-1-instruct": "essentialai/rnj-1-instruct",
65
+ # --- Google ---
66
+ "together-ai/google/gemma-2-9b-it": "google/gemma-2-9b-it",
67
+ "together-ai/google/gemma-2b-it-Ishan": "google/gemma-2b-it-Ishan",
68
+ "together-ai/google/gemma-3n-E4B-it": "google/gemma-3n-E4B-it",
69
+ # --- Marin-community ---
70
+ "together-ai/marin-community/marin-8b-instruct": "marin-community/marin-8b-instruct",
71
+ # --- Meta-llama ---
31
72
  "together-ai/meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo": "meta-llama/Llama-3.2-11B-Vision-Instruct-Turbo",
73
+ "together-ai/meta-llama/Llama-3.2-3B-Instruct-Turbo": "meta-llama/Llama-3.2-3B-Instruct-Turbo",
32
74
  "together-ai/meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo": "meta-llama/Llama-3.2-90B-Vision-Instruct-Turbo",
75
+ "together-ai/meta-llama/Llama-3.3-70B-Instruct-Turbo": "meta-llama/Llama-3.3-70B-Instruct-Turbo",
76
+ "together-ai/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
77
+ "together-ai/meta-llama/Llama-4-Scout-17B-16E-Instruct": "meta-llama/Llama-4-Scout-17B-16E-Instruct",
33
78
  "together-ai/meta-llama/Llama-Vision-Free": "meta-llama/Llama-Vision-Free",
34
79
  "together-ai/meta-llama/LlamaGuard-2-8b": "meta-llama/LlamaGuard-2-8b",
35
- # --- Google ---
36
- "together-ai/google/gemma-2-9b-it": "google/gemma-2-9b-it",
37
- # --- Mistral ---
80
+ "together-ai/meta-llama/Meta-Llama-3-8B-Instruct-Lite": "meta-llama/Meta-Llama-3-8B-Instruct-Lite",
81
+ "together-ai/meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo": "meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo",
82
+ "together-ai/meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo": "meta-llama/Meta-Llama-3.1-70B-Instruct-Turbo",
83
+ "together-ai/meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo": "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo",
84
+ # --- Mistralai ---
85
+ "together-ai/mistralai/Ministral-3-14B-Instruct-2512": "mistralai/Ministral-3-14B-Instruct-2512",
38
86
  "together-ai/mistralai/Mistral-7B-Instruct-v0.2": "mistralai/Mistral-7B-Instruct-v0.2",
39
87
  "together-ai/mistralai/Mistral-7B-Instruct-v0.3": "mistralai/Mistral-7B-Instruct-v0.3",
40
- # --- Qwen (Legacy/Existing) ---
41
- "together-ai/Qwen/QwQ-32B": "Qwen/QwQ-32B",
42
- "together-ai/Qwen/Qwen2.5-Coder-32B-Instruct": "Qwen/Qwen2.5-Coder-32B-Instruct",
43
- "together-ai/Qwen/Qwen2-VL-72B-Instruct": "Qwen/Qwen2-VL-72B-Instruct",
44
- # --- Qwen (New Additions) ---
45
- # Qwen 3 Series
46
- "together-ai/Qwen/Qwen3-Next-80B-A3B-Instruct": "Qwen/Qwen3-Next-80B-A3B-Instruct",
47
- "together-ai/Qwen/Qwen3-Next-80B-A3B-Thinking": "Qwen/Qwen3-Next-80B-A3B-Thinking",
48
- "together-ai/Qwen/Qwen3-Next-80B-A3B-Instruct-FP8": "Qwen/Qwen3-Next-80B-A3B-Instruct-FP8",
49
- "together-ai/Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8": "Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",
50
- "together-ai/Qwen/Qwen3-235B-A22B-Instruct-2507-tput": "Qwen/Qwen3-235B-A22B-Instruct-2507-tput",
51
- "together-ai/Qwen/Qwen3-235B-A22B-fp8-tput": "Qwen/Qwen3-235B-A22B-fp8-tput",
52
- "together-ai/Qwen/Qwen3-235B-A22B-Thinking-2507": "Qwen/Qwen3-235B-A22B-Thinking-2507",
53
- "together-ai/Qwen/Qwen3-VL-8B-Instruct": "Qwen/Qwen3-VL-8B-Instruct",
54
- "together-ai/Qwen/Qwen3-VL-32B-Instruct": "Qwen/Qwen3-VL-32B-Instruct",
55
- "together-ai/Qwen/Qwen3-VL-235B-A22B-Instruct-FP": "Qwen/Qwen3-VL-235B-A22B-Instruct-FP",
56
- "together-ai/Qwen/Qwen3-8B": "Qwen/Qwen3-8B",
57
- "together-ai/Qwen/Qwen3-14B-Base": "Qwen/Qwen3-14B-Base",
58
- # OpenAI
59
- "together-ai/openai/gpt-oss-120b": "openai/gpt-oss-120b",
60
- "together-ai/openai/gpt-oss-20b": "openai/gpt-oss-20b",
61
- # Qwen 2.5 Series
62
- "together-ai/Qwen/Qwen2.5-72B-Instruct": "Qwen/Qwen2.5-72B-Instruct",
63
- "together-ai/Qwen/Qwen2.5-72B-Instruct-Turbo": "Qwen/Qwen2.5-72B-Instruct-Turbo",
64
- "together-ai/Qwen/Qwen2.5-VL-72B-Instruct": "Qwen/Qwen2.5-VL-72B-Instruct",
65
- "together-ai/Qwen/Qwen2.5-7B-Instruct-Turbo": "Qwen/Qwen2.5-7B-Instruct-Turbo",
66
- "together-ai/Qwen/Qwen2.5-1.5B": "Qwen/Qwen2.5-1.5B",
67
- # Misc
68
- "together-ai/Qwen/Qwen-Image": "Qwen/Qwen-Image",
69
- "together-ai/Qwen/Qwen2-7B": "Qwen/Qwen2-7B",
70
- # OpenAI
88
+ "together-ai/mistralai/Mistral-Small-24B-Instruct-2501": "mistralai/Mistral-Small-24B-Instruct-2501",
89
+ "together-ai/mistralai/Mixtral-8x7B-Instruct-v0.1": "mistralai/Mixtral-8x7B-Instruct-v0.1",
90
+ # --- Moonshotai ---
91
+ "together-ai/moonshotai/Kimi-K2-Instruct-0905": "moonshotai/Kimi-K2-Instruct-0905",
92
+ "together-ai/moonshotai/Kimi-K2-Thinking": "moonshotai/Kimi-K2-Thinking",
93
+ # --- Nvidia ---
94
+ "together-ai/nvidia/NVIDIA-Nemotron-Nano-9B-v2": "nvidia/NVIDIA-Nemotron-Nano-9B-v2",
95
+ # --- Openai ---
71
96
  "together-ai/openai/gpt-oss-120b": "openai/gpt-oss-120b",
72
97
  "together-ai/openai/gpt-oss-20b": "openai/gpt-oss-20b",
98
+ # --- Togethercomputer ---
99
+ "together-ai/togethercomputer/MoA-1": "togethercomputer/MoA-1",
100
+ "together-ai/togethercomputer/MoA-1-Turbo": "togethercomputer/MoA-1-Turbo",
101
+ "together-ai/togethercomputer/Refuel-Llm-V2": "togethercomputer/Refuel-Llm-V2",
102
+ "together-ai/togethercomputer/Refuel-Llm-V2-Small": "togethercomputer/Refuel-Llm-V2-Small",
103
+ # --- Zai-org ---
104
+ "together-ai/zai-org/GLM-4.5-Air-FP8": "zai-org/GLM-4.5-Air-FP8",
105
+ "together-ai/zai-org/GLM-4.6": "zai-org/GLM-4.6",
106
+ "together-ai/zai-org/GLM-4.7": "zai-org/GLM-4.7",
73
107
  }
74
108
 
75
109
 
@@ -20,6 +20,10 @@ class ActionBase(BaseModel):
20
20
  tool_call_id: Optional[str] = None
21
21
  turn_index: Optional[int] = 0
22
22
 
23
+ # Telemetry
24
+ decision_payload: Optional[Dict[str, Any]] = None
25
+ confidence_score: Optional[float] = None
26
+
23
27
  model_config = ConfigDict(from_attributes=True)
24
28
 
25
29
 
@@ -45,6 +49,9 @@ class ActionCreate(BaseModel):
45
49
  tool_call_id: Optional[str] = None
46
50
  turn_index: Optional[int] = 0
47
51
 
52
+ # [NEW] Telemetry Fields (Passed from Worker/Router)
53
+ decision_payload: Optional[Dict[str, Any]] = None
54
+
48
55
  @field_validator("tool_name", mode="before")
49
56
  @classmethod
50
57
  def validate_tool_fields(cls, v: Optional[str]) -> Optional[str]:
@@ -60,6 +67,11 @@ class ActionCreate(BaseModel):
60
67
  "tool_call_id": "call_abc123",
61
68
  "function_args": {"arg1": "value1"},
62
69
  "status": "pending",
70
+ "decision_payload": {
71
+ "reason": "User requested flight times explicitly.",
72
+ "confidence": 0.95,
73
+ "selected_tool": "get_flight_times",
74
+ },
63
75
  }
64
76
  }
65
77
  )
@@ -75,6 +87,10 @@ class ActionRead(BaseModel):
75
87
  tool_call_id: Optional[str] = None
76
88
  turn_index: Optional[int] = None
77
89
 
90
+ # [NEW] Telemetry Fields (Exposed to Client/Dashboard)
91
+ decision_payload: Optional[Dict[str, Any]] = None
92
+ confidence_score: Optional[float] = None
93
+
78
94
  triggered_at: Optional[str] = None
79
95
  expires_at: Optional[str] = None
80
96
  is_processed: Optional[bool] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: projectdavid_common
3
- Version: 0.21.6
3
+ Version: 0.21.8
4
4
  Summary: Common shared custom packages
5
5
  Author-email: "Francis N." <francis.neequaye@projectdavid.co.uk>
6
6
  License: MIT