projectdavid 1.33.21__tar.gz → 1.39.3__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.
- {projectdavid-1.33.21 → projectdavid-1.39.3}/CHANGELOG.md +273 -0
- {projectdavid-1.33.21/src/projectdavid.egg-info → projectdavid-1.39.3}/PKG-INFO +6 -24
- {projectdavid-1.33.21 → projectdavid-1.39.3}/README.md +4 -4
- projectdavid-1.39.3/docs/UPDATE-V133.23.md +153 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/assistants.md +1 -0
- projectdavid-1.39.3/docs/inference.md +116 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/runs.md +4 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/threads.md +1 -1
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/vector_store.md +76 -14
- {projectdavid-1.33.21 → projectdavid-1.39.3}/pyproject.toml +4 -30
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/actions_client.py +18 -9
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/assistants_client.py +7 -13
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/file_processor.py +80 -35
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/messages_client.py +42 -43
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/runs.py +160 -211
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/synchronous_inference_wrapper.py +19 -82
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/threads_client.py +32 -12
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/vector_store_manager.py +23 -18
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/vectors.py +3 -1
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/vision-file_processor.py +167 -144
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/entity.py +17 -4
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/synthesis/reranker.py +4 -2
- {projectdavid-1.33.21 → projectdavid-1.39.3/src/projectdavid.egg-info}/PKG-INFO +6 -24
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid.egg-info/SOURCES.txt +1 -1
- projectdavid-1.39.3/src/projectdavid.egg-info/requires.txt +22 -0
- projectdavid-1.33.21/docs/inference.md +0 -7
- projectdavid-1.33.21/src/projectdavid/utils/peek_gate.py +0 -71
- projectdavid-1.33.21/src/projectdavid.egg-info/requires.txt +0 -41
- {projectdavid-1.33.21 → projectdavid-1.39.3}/LICENSE +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/MANIFEST.in +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/code_interpretation.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/database.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/database_assistant_example.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/docker_comtainers.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/file_search.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/files.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/function_call_definition.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/function_calls.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/handling_function_calls.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/messages.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/streams.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/tools.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/users.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/docs/versioning.md +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/setup.cfg +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/__init__.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/_version.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/api_key_client.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/base_client.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/base_vector_store.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/event_handler.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/file_search.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/files_client.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/inference_client.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/tools_client.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/users_client.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/clients/vision_vectors.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/constants/platform.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/decorators.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/events.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/serializers.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/services/logging_service.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/synthesis/__init__.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/synthesis/llm_synthesizer.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/synthesis/prompt.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/synthesis/retriever.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/utils/__init__.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/utils/function_call_suppressor.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/utils/monitor_launcher.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/utils/run_monitor.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid/utils/vector_search_formatter.py +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid.egg-info/dependency_links.txt +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/src/projectdavid.egg-info/top_level.txt +0 -0
- {projectdavid-1.33.21 → projectdavid-1.39.3}/tests/test_clients.py +0 -0
|
@@ -1,3 +1,276 @@
|
|
|
1
|
+
## [1.39.3](https://github.com/frankie336/projectdavid/compare/v1.39.2...v1.39.3) (2026-01-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Add tool_call_id param to poll_and_execute_action ([b7ac9c4](https://github.com/frankie336/projectdavid/commit/b7ac9c45b38762021380eecb09abf903085fd6e1))
|
|
7
|
+
|
|
8
|
+
## [1.39.2](https://github.com/frankie336/projectdavid/compare/v1.39.1...v1.39.2) (2026-01-20)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* update to projectdavid_common==0.21.1 ([4fad973](https://github.com/frankie336/projectdavid/commit/4fad973a49fa93792bcb76d0eb3ce770f1311560))
|
|
14
|
+
* update to projectdavid_common==0.21.1 ([83faf8e](https://github.com/frankie336/projectdavid/commit/83faf8e9f3391646957bd127500555fb981f7d23))
|
|
15
|
+
|
|
16
|
+
## [1.39.1](https://github.com/frankie336/projectdavid/compare/v1.39.0...v1.39.1) (2026-01-19)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* Add tool_call_id to actions_client.py ([1f7dffd](https://github.com/frankie336/projectdavid/commit/1f7dffd411be5d1a6cbb15d76117ba586796cf10))
|
|
22
|
+
* Add tool_call_id to actions_client.py ([c4d5821](https://github.com/frankie336/projectdavid/commit/c4d58217149bd1fbd53207c746f8f75bb6dbe654))
|
|
23
|
+
|
|
24
|
+
# [1.39.0](https://github.com/frankie336/projectdavid/compare/v1.38.1...v1.39.0) (2026-01-17)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* Implement 0.20.0 projectdavid_common==0.20.0 ([589939b](https://github.com/frankie336/projectdavid/commit/589939b926768faa1617a80c30069a51ddedcdac))
|
|
30
|
+
* removed unused imports ([743e5c2](https://github.com/frankie336/projectdavid/commit/743e5c21f8b25ef8d9d76f90497ed889bae5e3a0))
|
|
31
|
+
|
|
32
|
+
## [1.38.1](https://github.com/frankie336/projectdavid/compare/v1.38.0...v1.38.1) (2026-01-17)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Bug Fixes
|
|
36
|
+
|
|
37
|
+
* implement explicit action lifecycle management and tool error reporting ([d84a59b](https://github.com/frankie336/projectdavid/commit/d84a59bd5c172f95248f529345e2c2ea7651d1b4))
|
|
38
|
+
|
|
39
|
+
# [1.38.0](https://github.com/frankie336/projectdavid/compare/v1.37.1...v1.38.0) (2026-01-15)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* cutting back to full fat version. ([9473363](https://github.com/frankie336/projectdavid/commit/9473363167c476501be59958184f5a9b983e566f))
|
|
45
|
+
|
|
46
|
+
## [1.37.1](https://github.com/frankie336/projectdavid/compare/v1.37.0...v1.37.1) (2026-01-15)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Bug Fixes
|
|
50
|
+
|
|
51
|
+
* Implementing light weight projectdavid ([134459d](https://github.com/frankie336/projectdavid/commit/134459d21bd0969175595d1bf565d988882724a3))
|
|
52
|
+
* Implementing light weight projectdavid ([6f5548b](https://github.com/frankie336/projectdavid/commit/6f5548b965c764f7f48fd4bd436eb3da114d5b20))
|
|
53
|
+
|
|
54
|
+
# [1.37.0](https://github.com/frankie336/projectdavid/compare/v1.36.1...v1.37.0) (2026-01-14)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
* **sdk:** refactor streaming logic into a single-pass state machine ([8088dba](https://github.com/frankie336/projectdavid/commit/8088dba46865330ae66a6098dc9eaa1bb85d2282))
|
|
60
|
+
* **sdk:** refactor streaming logic into a single-pass state machine ([afd24b7](https://github.com/frankie336/projectdavid/commit/afd24b7918bc9487db0fdb9ffa34855a23a3a87e))
|
|
61
|
+
|
|
62
|
+
## [1.36.1](https://github.com/frankie336/projectdavid/compare/v1.36.0...v1.36.1) (2025-10-15)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* Correctly handle optional truncation_strategy in run creation ([ef10d2e](https://github.com/frankie336/projectdavid/commit/ef10d2e67ca13f04feb3b87edf3c956cf0a91e0c))
|
|
68
|
+
|
|
69
|
+
# [1.36.0](https://github.com/frankie336/projectdavid/compare/v1.35.0...v1.36.0) (2025-10-14)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Features
|
|
73
|
+
|
|
74
|
+
* **deps:** bump projectdavid_common; align Runs schema + client ([f70d5fc](https://github.com/frankie336/projectdavid/commit/f70d5fcc0164037b78ac0c14d325a5f30d4daa07))
|
|
75
|
+
|
|
76
|
+
# [1.35.0](https://github.com/frankie336/projectdavid/compare/v1.34.13...v1.35.0) (2025-10-13)
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### Features
|
|
80
|
+
|
|
81
|
+
* **deps:** bump projectdavid_common; align Runs schema + client ([23d525e](https://github.com/frankie336/projectdavid/commit/23d525e10a8dd3a4ee39fb3c0e7c0be42832e1a7))
|
|
82
|
+
|
|
83
|
+
## [1.34.13](https://github.com/frankie336/projectdavid/compare/v1.34.12...v1.34.13) (2025-09-30)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Bug Fixes
|
|
87
|
+
|
|
88
|
+
* correct projectdavid_common==0.17.19 ([1a72e36](https://github.com/frankie336/projectdavid/commit/1a72e368ab0228f26c3dae08be0cc9a0b4edfcbe))
|
|
89
|
+
|
|
90
|
+
## [1.34.12](https://github.com/frankie336/projectdavid/compare/v1.34.11...v1.34.12) (2025-09-30)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Bug Fixes
|
|
94
|
+
|
|
95
|
+
* correct projectdavid_common==0.17.19 ([d636c31](https://github.com/frankie336/projectdavid/commit/d636c31066e33bce0332df2538093040ae36f40f))
|
|
96
|
+
* set truncation strategy to auto ([3d00a38](https://github.com/frankie336/projectdavid/commit/3d00a383eb688a51f9d8bbfc66b0a47e52e86b2a))
|
|
97
|
+
* set truncation strategy to auto ([357ec09](https://github.com/frankie336/projectdavid/commit/357ec09bc34ca36d837cae4e279e740074d9756d))
|
|
98
|
+
|
|
99
|
+
## [1.34.11](https://github.com/frankie336/projectdavid/compare/v1.34.10...v1.34.11) (2025-08-25)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### Bug Fixes
|
|
103
|
+
|
|
104
|
+
* set tool choice default from 'None' --> None ([0288eb3](https://github.com/frankie336/projectdavid/commit/0288eb30ac173b2fc7323158454a726da7883c81))
|
|
105
|
+
* set tool choice default from 'None' --> None ([dd172b5](https://github.com/frankie336/projectdavid/commit/dd172b5a0d1f08a2aa7ccb1714141f80e2954130))
|
|
106
|
+
|
|
107
|
+
## [1.34.10](https://github.com/frankie336/projectdavid/compare/v1.34.9...v1.34.10) (2025-08-22)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Bug Fixes
|
|
111
|
+
|
|
112
|
+
* remove redundant epoch helper ([e53c074](https://github.com/frankie336/projectdavid/commit/e53c074f2c50e39bc44ceec911acb42dc9dcc930))
|
|
113
|
+
|
|
114
|
+
## [1.34.9](https://github.com/frankie336/projectdavid/compare/v1.34.8...v1.34.9) (2025-08-22)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
* remove redundant epoch helper ([4d2171a](https://github.com/frankie336/projectdavid/commit/4d2171a5cff841edd33b36027d5648c1d132ffbf))
|
|
120
|
+
|
|
121
|
+
## [1.34.8](https://github.com/frankie336/projectdavid/compare/v1.34.7...v1.34.8) (2025-08-22)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### Bug Fixes
|
|
125
|
+
|
|
126
|
+
* set incomplete_details type to string ([2af2d16](https://github.com/frankie336/projectdavid/commit/2af2d16843139884b9878edcd0c5b452a0e28e30))
|
|
127
|
+
|
|
128
|
+
## [1.34.7](https://github.com/frankie336/projectdavid/compare/v1.34.6...v1.34.7) (2025-08-21)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
* Normalize time stamps to epoch integer format instead of datetime. ([43af583](https://github.com/frankie336/projectdavid/commit/43af5830f80d9eafde694449d7119a2da8a8d127))
|
|
134
|
+
|
|
135
|
+
## [1.34.6](https://github.com/frankie336/projectdavid/compare/v1.34.5...v1.34.6) (2025-08-20)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
### Bug Fixes
|
|
139
|
+
|
|
140
|
+
* epoch time on .create_run ([be013d4](https://github.com/frankie336/projectdavid/commit/be013d4e98724a2c252a7daa5b31bfda61253d15))
|
|
141
|
+
|
|
142
|
+
## [1.34.5](https://github.com/frankie336/projectdavid/compare/v1.34.4...v1.34.5) (2025-08-17)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Bug Fixes
|
|
146
|
+
|
|
147
|
+
* Adding update_run ([10b1c6f](https://github.com/frankie336/projectdavid/commit/10b1c6f1b7da9f77d3bd7c9478edf8f1dc41fc82))
|
|
148
|
+
|
|
149
|
+
## [1.34.4](https://github.com/frankie336/projectdavid/compare/v1.34.3...v1.34.4) (2025-08-15)
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
### Bug Fixes
|
|
153
|
+
|
|
154
|
+
* Adding update_run ([ce98a68](https://github.com/frankie336/projectdavid/commit/ce98a688150c5073d1041815542012e486cf706e))
|
|
155
|
+
|
|
156
|
+
## [1.34.3](https://github.com/frankie336/projectdavid/compare/v1.34.2...v1.34.3) (2025-08-13)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
### Bug Fixes
|
|
160
|
+
|
|
161
|
+
* rename list_all_runs and list_runs ([7efb822](https://github.com/frankie336/projectdavid/commit/7efb8220c82184df941fc897132ca3caa96d07a0))
|
|
162
|
+
|
|
163
|
+
## [1.34.2](https://github.com/frankie336/projectdavid/compare/v1.34.1...v1.34.2) (2025-08-13)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
### Bug Fixes
|
|
167
|
+
|
|
168
|
+
* standard model ([8c8785b](https://github.com/frankie336/projectdavid/commit/8c8785babe81420ee211499a4d8972e8a42d5d2e))
|
|
169
|
+
|
|
170
|
+
## [1.34.1](https://github.com/frankie336/projectdavid/compare/v1.34.0...v1.34.1) (2025-08-13)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Bug Fixes
|
|
174
|
+
|
|
175
|
+
* correctly import RunListResponse ([7f923cc](https://github.com/frankie336/projectdavid/commit/7f923ccfcaac890f1eaf0b94406f5ee003b2cf4e))
|
|
176
|
+
|
|
177
|
+
# [1.34.0](https://github.com/frankie336/projectdavid/compare/v1.33.33...v1.34.0) (2025-08-12)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Features
|
|
181
|
+
|
|
182
|
+
* Adding runs list methods. ([61975b2](https://github.com/frankie336/projectdavid/commit/61975b2c8fa44de254b979160566bd8e89b6799b))
|
|
183
|
+
|
|
184
|
+
## [1.33.33](https://github.com/frankie336/projectdavid/compare/v1.33.32...v1.33.33) (2025-07-10)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
### Bug Fixes
|
|
188
|
+
|
|
189
|
+
* wrap delete_message in a return envelope ([7ed1815](https://github.com/frankie336/projectdavid/commit/7ed18155b85d39cbecf0354c16b2a8a20131b9e2))
|
|
190
|
+
* wrap delete_message in a return envelope ([3e9e6fb](https://github.com/frankie336/projectdavid/commit/3e9e6fbb93ec0670c0e9a39b7eb446bcb1e7df40))
|
|
191
|
+
|
|
192
|
+
## [1.33.32](https://github.com/frankie336/projectdavid/compare/v1.33.31...v1.33.32) (2025-07-09)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Bug Fixes
|
|
196
|
+
|
|
197
|
+
* use project_david_common 0.17.9 and refactor list_messages to use new envelope ([3fc565c](https://github.com/frankie336/projectdavid/commit/3fc565ce1f69af47fc102d5abd55f90a1fce2288))
|
|
198
|
+
* use project_david_common 0.17.9 and refactor list_messages to use new envelope ([3d802ef](https://github.com/frankie336/projectdavid/commit/3d802efc8cd0ec7425d0d1a1ead944c4d23d0838))
|
|
199
|
+
* use project_david_common 0.17.9 and refactor list_messages to use new envelope ([0549842](https://github.com/frankie336/projectdavid/commit/054984252097c9e843a12fed9a87eacea95aee33))
|
|
200
|
+
|
|
201
|
+
## [1.33.31](https://github.com/frankie336/projectdavid/compare/v1.33.30...v1.33.31) (2025-07-08)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
### Bug Fixes
|
|
205
|
+
|
|
206
|
+
* update_thread ([2041347](https://github.com/frankie336/projectdavid/commit/2041347839922e2745d14e4ad9136f1aa797b254))
|
|
207
|
+
|
|
208
|
+
## [1.33.30](https://github.com/frankie336/projectdavid/compare/v1.33.29...v1.33.30) (2025-07-06)
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### Bug Fixes
|
|
212
|
+
|
|
213
|
+
* Add DeleteThread schema2. ([de9fd17](https://github.com/frankie336/projectdavid/commit/de9fd17d81116c503ebda23d90d7cb031938b952))
|
|
214
|
+
* Add DeleteThread schema2. ([c43cdd6](https://github.com/frankie336/projectdavid/commit/c43cdd6c950847cb1a79e686848ca42d958126b9))
|
|
215
|
+
* Add DeleteThread schema2. ([0c4c548](https://github.com/frankie336/projectdavid/commit/0c4c54878d10d5535c4427481ebd32d7910b15f8))
|
|
216
|
+
* Add DeleteThread schema3. ([540c445](https://github.com/frankie336/projectdavid/commit/540c445829809e785dcab0b0dcd1600b0913ffcf))
|
|
217
|
+
|
|
218
|
+
## [1.33.29](https://github.com/frankie336/projectdavid/compare/v1.33.28...v1.33.29) (2025-07-06)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Bug Fixes
|
|
222
|
+
|
|
223
|
+
* Add DeleteThread schema. ([d4f1270](https://github.com/frankie336/projectdavid/commit/d4f1270863fcefadc949e165125287a7b52e1ef6))
|
|
224
|
+
|
|
225
|
+
## [1.33.28](https://github.com/frankie336/projectdavid/compare/v1.33.27...v1.33.28) (2025-07-01)
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
### Bug Fixes
|
|
229
|
+
|
|
230
|
+
* remove platform_tools from assistant create method signature and payload. ([8caf3b0](https://github.com/frankie336/projectdavid/commit/8caf3b00f5d45422af9bda088ed266b9c39dddee))
|
|
231
|
+
|
|
232
|
+
## [1.33.27](https://github.com/frankie336/projectdavid/compare/v1.33.26...v1.33.27) (2025-06-30)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### Bug Fixes
|
|
236
|
+
|
|
237
|
+
* correct list method! ([bf17205](https://github.com/frankie336/projectdavid/commit/bf1720583f37cf09844a06c5c95f319ba5192d41))
|
|
238
|
+
|
|
239
|
+
## [1.33.26](https://github.com/frankie336/projectdavid/compare/v1.33.25...v1.33.26) (2025-06-30)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
### Bug Fixes
|
|
243
|
+
|
|
244
|
+
* Remove platform_tools from request body ([01f79be](https://github.com/frankie336/projectdavid/commit/01f79be53bbe5b9e29c14c3757044a954c65711d))
|
|
245
|
+
|
|
246
|
+
## [1.33.25](https://github.com/frankie336/projectdavid/compare/v1.33.24...v1.33.25) (2025-06-28)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
### Bug Fixes
|
|
250
|
+
|
|
251
|
+
* attempt to load api-key from client users .env file ([3bf2f26](https://github.com/frankie336/projectdavid/commit/3bf2f26506c8755adb510d7f6ed852e9aca47a46))
|
|
252
|
+
|
|
253
|
+
## [1.33.24](https://github.com/frankie336/projectdavid/compare/v1.33.23...v1.33.24) (2025-06-22)
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Bug Fixes
|
|
257
|
+
|
|
258
|
+
* Remove Kargs from FileProcessor() ([17a19b3](https://github.com/frankie336/projectdavid/commit/17a19b36f2275bc408b60333f4798b1a462fb96c))
|
|
259
|
+
|
|
260
|
+
## [1.33.23](https://github.com/frankie336/projectdavid/compare/v1.33.22...v1.33.23) (2025-06-17)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
### Bug Fixes
|
|
264
|
+
|
|
265
|
+
* Back out from vision support - resource issue. Revisit in grand plan-17 ([db124a0](https://github.com/frankie336/projectdavid/commit/db124a0a5da8da045ef2e6edc01827252a0bad11))
|
|
266
|
+
|
|
267
|
+
## [1.33.22](https://github.com/frankie336/projectdavid/compare/v1.33.21...v1.33.22) (2025-06-16)
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
### Bug Fixes
|
|
271
|
+
|
|
272
|
+
* Back out from vision support - resource issue. Revisit in grand plan-16 ([bc3c298](https://github.com/frankie336/projectdavid/commit/bc3c298034ee40580ec4e92223782a9f2aee279f))
|
|
273
|
+
|
|
1
274
|
## [1.33.21](https://github.com/frankie336/projectdavid/compare/v1.33.20...v1.33.21) (2025-06-16)
|
|
2
275
|
|
|
3
276
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: projectdavid
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.39.3
|
|
4
4
|
Summary: Python SDK for interacting with the Entities Assistant API.
|
|
5
5
|
Author-email: Francis Neequaye Armah <francis.neequaye@projectdavid.co.uk>
|
|
6
6
|
License: PolyForm Noncommercial License 1.0.0
|
|
@@ -20,7 +20,7 @@ Requires-Dist: pydantic<3.0,>=2.0
|
|
|
20
20
|
Requires-Dist: python-dotenv<2.0,>=1.0.1
|
|
21
21
|
Requires-Dist: aiofiles<25.0,>=23.2.1
|
|
22
22
|
Requires-Dist: ollama<0.5.0,>=0.4.4
|
|
23
|
-
Requires-Dist: projectdavid_common==0.
|
|
23
|
+
Requires-Dist: projectdavid_common==0.21.1
|
|
24
24
|
Requires-Dist: qdrant-client<2.0.0,>=1.0.0
|
|
25
25
|
Requires-Dist: pdfplumber<0.12.0,>=0.11.0
|
|
26
26
|
Requires-Dist: validators<0.35.0,>=0.29.0
|
|
@@ -29,13 +29,6 @@ Requires-Dist: sseclient-py
|
|
|
29
29
|
Requires-Dist: requests
|
|
30
30
|
Requires-Dist: python-docx
|
|
31
31
|
Requires-Dist: python-pptx
|
|
32
|
-
Requires-Dist: open_clip_torch>=2.24
|
|
33
|
-
Requires-Dist: pillow>=10.2
|
|
34
|
-
Requires-Dist: transformers>=4.41
|
|
35
|
-
Requires-Dist: accelerate>=0.28
|
|
36
|
-
Requires-Dist: sentencepiece>=0.2
|
|
37
|
-
Requires-Dist: ultralytics>=8.2.21
|
|
38
|
-
Requires-Dist: pytesseract>=0.3
|
|
39
32
|
Provides-Extra: dev
|
|
40
33
|
Requires-Dist: black>=23.3; extra == "dev"
|
|
41
34
|
Requires-Dist: isort>=5.12; extra == "dev"
|
|
@@ -43,17 +36,6 @@ Requires-Dist: pytest>=7.2; extra == "dev"
|
|
|
43
36
|
Requires-Dist: mypy>=1.0; extra == "dev"
|
|
44
37
|
Requires-Dist: build; extra == "dev"
|
|
45
38
|
Requires-Dist: twine; extra == "dev"
|
|
46
|
-
Provides-Extra: vision
|
|
47
|
-
Requires-Dist: torch>=2.2.1; extra == "vision"
|
|
48
|
-
Requires-Dist: torchvision>=0.17.1; extra == "vision"
|
|
49
|
-
Requires-Dist: torchaudio>=2.2.1; extra == "vision"
|
|
50
|
-
Requires-Dist: open_clip_torch>=2.24; extra == "vision"
|
|
51
|
-
Requires-Dist: pillow>=10.2; extra == "vision"
|
|
52
|
-
Requires-Dist: transformers>=4.41; extra == "vision"
|
|
53
|
-
Requires-Dist: accelerate>=0.28; extra == "vision"
|
|
54
|
-
Requires-Dist: sentencepiece>=0.2; extra == "vision"
|
|
55
|
-
Requires-Dist: ultralytics>=8.2.21; extra == "vision"
|
|
56
|
-
Requires-Dist: pytesseract>=0.3; extra == "vision"
|
|
57
39
|
Dynamic: license-file
|
|
58
40
|
|
|
59
41
|
# Entity — by Project David
|
|
@@ -244,7 +226,7 @@ Would you like a deeper dive into any of these trends?
|
|
|
244
226
|
|
|
245
227
|
|
|
246
228
|
|
|
247
|
-
##
|
|
229
|
+
## Documentation
|
|
248
230
|
|
|
249
231
|
| Domain | Link |
|
|
250
232
|
|---------------------|--------------------------------------------------------|
|
|
@@ -269,9 +251,9 @@ Would you like a deeper dive into any of these trends?
|
|
|
269
251
|
|
|
270
252
|
---
|
|
271
253
|
|
|
272
|
-
##
|
|
254
|
+
## Related Repositories
|
|
273
255
|
|
|
274
|
-
-
|
|
256
|
+
- [Entities API](https://github.com/frankie336/entities_api) — containerized API backend
|
|
275
257
|
-
|
|
276
|
-
-
|
|
258
|
+
- [entities_common](https://github.com/frankie336/entities_common) — shared validation, schemas, utilities, and tools.
|
|
277
259
|
This package is auto installed as dependency of entities SDK or entities API.
|
|
@@ -186,7 +186,7 @@ Would you like a deeper dive into any of these trends?
|
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
##
|
|
189
|
+
## Documentation
|
|
190
190
|
|
|
191
191
|
| Domain | Link |
|
|
192
192
|
|---------------------|--------------------------------------------------------|
|
|
@@ -211,9 +211,9 @@ Would you like a deeper dive into any of these trends?
|
|
|
211
211
|
|
|
212
212
|
---
|
|
213
213
|
|
|
214
|
-
##
|
|
214
|
+
## Related Repositories
|
|
215
215
|
|
|
216
|
-
-
|
|
216
|
+
- [Entities API](https://github.com/frankie336/entities_api) — containerized API backend
|
|
217
217
|
-
|
|
218
|
-
-
|
|
218
|
+
- [entities_common](https://github.com/frankie336/entities_common) — shared validation, schemas, utilities, and tools.
|
|
219
219
|
This package is auto installed as dependency of entities SDK or entities API.
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
> **PLEASE NOTE:**
|
|
2
|
+
>
|
|
3
|
+
> As of V1.33.23 Thread creation no longer requires participant_ids to be passed in:
|
|
4
|
+
>
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
thread = client.threads.create_thread(participant_ids=user.id)
|
|
8
|
+
|
|
9
|
+
# Can be shortened to:
|
|
10
|
+
|
|
11
|
+
thread = client.threads.create_thread()
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Function call error surfacing
|
|
17
|
+
|
|
18
|
+
Function call error trace stack messages are now surfaced to the message dialogue. If the assistant
|
|
19
|
+
does not proactively say so, you can force this with a followup prompt like:
|
|
20
|
+
```python
|
|
21
|
+
"What happened?"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Sometimes it receives the error but does not proactively reveal. Please be aware that your consumers
|
|
25
|
+
will have access to stack trace messages. OpenAI do this, the risk is minimal.
|
|
26
|
+
|
|
27
|
+
# Data Ingestion and Search Methods
|
|
28
|
+
|
|
29
|
+
## Vector Store Standard Data Ingestion Pipeline
|
|
30
|
+
|
|
31
|
+
As of **projectdavid v1.33.23** Json output from function calls are now suppressed by default.
|
|
32
|
+
You can reveal Json output them with:
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
|
|
36
|
+
sync_stream.stream_chunks(
|
|
37
|
+
provider=PROVIDER,
|
|
38
|
+
model=MODEL,
|
|
39
|
+
timeout_per_chunk=60.0,
|
|
40
|
+
suppress_fc=True,
|
|
41
|
+
):
|
|
42
|
+
...
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Please see [here](https://github.com/frankie336/projectdavid/blob/master/docs/inference.md)
|
|
46
|
+
for detailed use example.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
## Vector Store Standard Data Ingestion Pipeline
|
|
50
|
+
|
|
51
|
+
Our standard public ingestion method, `VectorStoreClient.add_file_to_vector_store`, will:
|
|
52
|
+
|
|
53
|
+
- Pre-process files.
|
|
54
|
+
- Chunk files.
|
|
55
|
+
- Generate embeddings.
|
|
56
|
+
- Upload processed chunks to the specified vector store.
|
|
57
|
+
- Prepare file contents for semantic search.
|
|
58
|
+
|
|
59
|
+
This method is designed primarily for individual files containing mostly unstructured text. It’s powerful and will cover most Retrieval-Augmented Generation (RAG) use cases.
|
|
60
|
+
|
|
61
|
+
For detailed instructions, please refer to our [usage documentation](https://github.com/frankie336/projectdavid/blob/master/docs/vector_store.md).
|
|
62
|
+
|
|
63
|
+
You can also find a real-world usage example in our cookbook here:
|
|
64
|
+
[Basic Vector Embeddings Search Example](https://github.com/frankie336/entities_cook_book/blob/master/recipes/vector_store/basic_vector_embeddings_search.py).
|
|
65
|
+
|
|
66
|
+
## Your Vector Store Custom Data Ingestion Pipeline
|
|
67
|
+
|
|
68
|
+
We directly leverage our embedding model to craft a customized ingestion pipeline using `FileProcessor.embedding_model`. This pipeline:
|
|
69
|
+
|
|
70
|
+
- Pre-processes structured datasets (e.g., MovieLens).
|
|
71
|
+
- Converts each movie record into its own chunk.
|
|
72
|
+
- Manually constructs rich text embeddings from multiple metadata fields (title, genres, release year, etc.).
|
|
73
|
+
|
|
74
|
+
In summary, this custom pipeline is optimized for granular semantic results from structured datasets such as MovieLens. This approach can easily be adapted to other similar datasets, especially useful in recommendation algorithms.
|
|
75
|
+
|
|
76
|
+
The custom pipeline example is available [here](#).
|
|
77
|
+
|
|
78
|
+
## Search Methods
|
|
79
|
+
|
|
80
|
+
As of **projectdavid v1.33.23** ([PyPI Link](https://pypi.org/project/projectdavid/)), the following search methods are available:
|
|
81
|
+
|
|
82
|
+
### `VectorStoreClient.vector_file_search_raw`
|
|
83
|
+
|
|
84
|
+
> **PLEASE NOTE:**
|
|
85
|
+
>
|
|
86
|
+
> This method was previously named `VectorStoreClient.vector_file_search`. Please update your code accordingly when migrating to v1.33.23.
|
|
87
|
+
|
|
88
|
+
- Returns raw dictionaries with results ranked by corresponding `K` values in descending order.
|
|
89
|
+
- Currently used in our semantic search examples on vectorized instances of the MovieLens dataset.
|
|
90
|
+
|
|
91
|
+
#### Batch Search Example:
|
|
92
|
+
|
|
93
|
+
[Batch Search on MovieLens](https://github.com/frankie336/entities_cook_book/blob/master/recipes/reccomender/batch_search_movielens.py)
|
|
94
|
+
|
|
95
|
+
#### Fuzzy Search App Example:
|
|
96
|
+
|
|
97
|
+
[Fuzzy Search App](https://github.com/frankie336/entities_cook_book/blob/master/recipes/reccomender/search_movielens-v2.py)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### `VectorStoreClient.simple_vector_file_search`
|
|
102
|
+
|
|
103
|
+
Returns a data structure optimized for interpretation and synthesis by LLM models, suitable for function call returns with potential citations.
|
|
104
|
+
|
|
105
|
+
**Example Response:**
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"object": "vector_store.file_search_result",
|
|
110
|
+
"data": [
|
|
111
|
+
{
|
|
112
|
+
"object": "vector_store.file_hit",
|
|
113
|
+
"index": 0,
|
|
114
|
+
"text": "Title: Toy Story. Genres: Animation, Children's, Comedy. Released in 1995.",
|
|
115
|
+
"score": 0.92,
|
|
116
|
+
"meta_data": {
|
|
117
|
+
"item_id": 1,
|
|
118
|
+
"title": "Toy Story",
|
|
119
|
+
"genres": ["Animation", "Children's", "Comedy"],
|
|
120
|
+
"release_year": 1995,
|
|
121
|
+
"IMDb_URL": "http://www.imdb.com/title/tt0114709/"
|
|
122
|
+
},
|
|
123
|
+
"vector_id": "vec_abc123",
|
|
124
|
+
"store_id": "vect_mqfWyNlZbacer73PQu4Upy"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"object": "vector_store.file_hit",
|
|
128
|
+
"index": 1,
|
|
129
|
+
"text": "Title: The Lion King. Genres: Animation, Children's, Musical. Released in 1994.",
|
|
130
|
+
"score": 0.89,
|
|
131
|
+
"meta_data": {
|
|
132
|
+
"item_id": 2,
|
|
133
|
+
"title": "The Lion King",
|
|
134
|
+
"genres": ["Animation", "Children's", "Musical"],
|
|
135
|
+
"release_year": 1994,
|
|
136
|
+
"IMDb_URL": "http://www.imdb.com/title/tt0110357/"
|
|
137
|
+
},
|
|
138
|
+
"vector_id": "vec_def456",
|
|
139
|
+
"store_id": "vect_mqfWyNlZbacer73PQu4Upy"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"answer": "Here are 2 fun kids' movies from the 1990s: **Toy Story** (1995, Animation/Comedy) and **The Lion King** (1994, Animation/Musical). Both are highly rated family films.",
|
|
143
|
+
"query": "fun kids movies from the 1990s"
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### `VectorStoreClient.attended_file_search`
|
|
148
|
+
|
|
149
|
+
Utilizes an integrated AI agent to synthesize analysis and employs a specialized post-processing ranking model to ensure highly precise results. Outputs use a similar envelope as `simple_vector_file_search`. Ideal for quick demonstrations or standalone push-button integrations.
|
|
150
|
+
|
|
151
|
+
### `VectorStoreClient.unattended_file_search`
|
|
152
|
+
|
|
153
|
+
Employs the same advanced post-processing ranking model as `attended_file_search`, but without integrated synthesis. Suitable for standard function call implementations.
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
from sympy import python
|
|
2
|
+
|
|
3
|
+
# Inference
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
Inference is the final stage of the Entities API workflow, where the assistant processes a prompt and generates a response. This stage highlights the assistant's intelligence and capabilities. Inference can be executed on edge devices or in the cloud, according to your specific needs. Our API supports both options, allowing flexibility tailored to your use case.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Basic Inference Streaming Example
|
|
12
|
+
|
|
13
|
+
The following example demonstrates how to:
|
|
14
|
+
|
|
15
|
+
1. Create an assistant and a thread.
|
|
16
|
+
2. Send a user message.
|
|
17
|
+
3. Initiate a run.
|
|
18
|
+
4. Stream the assistant's response via the Hyperbolic provider.
|
|
19
|
+
|
|
20
|
+
### Requirements
|
|
21
|
+
|
|
22
|
+
Ensure the following environment variables are set:
|
|
23
|
+
|
|
24
|
+
- `ENTITIES_API_KEY`: API key for Entities API access.
|
|
25
|
+
- `BASE_URL`: Base URL of the Entities API instance (default: `http://localhost:9000`).
|
|
26
|
+
- `HYPERBOLIC_API_KEY`: API key for the Hyperbolic provider.
|
|
27
|
+
- `ENTITIES_USER_ID`: User ID associated with the Entities API.
|
|
28
|
+
|
|
29
|
+
### Example Implementation
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import os
|
|
33
|
+
from dotenv import load_dotenv
|
|
34
|
+
from projectdavid import Entity
|
|
35
|
+
|
|
36
|
+
# Load environment variables from .env file
|
|
37
|
+
load_dotenv()
|
|
38
|
+
|
|
39
|
+
# Initialize Entities API client
|
|
40
|
+
client = Entity(
|
|
41
|
+
base_url=os.getenv("BASE_URL", "http://localhost:9000"),
|
|
42
|
+
api_key=os.getenv("ENTITIES_API_KEY")
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
# Constants for Hyperbolic provider
|
|
46
|
+
API_KEY = "your-hyperbolic-key-here"
|
|
47
|
+
|
|
48
|
+
MODEL = "hyperbolic/deepseek-ai/DeepSeek-V3-0324"
|
|
49
|
+
PROVIDER = "Hyperbolic"
|
|
50
|
+
|
|
51
|
+
def main():
|
|
52
|
+
|
|
53
|
+
# Create assistant (can be reused across runs)
|
|
54
|
+
assistant = client.assistants.create_assistant(
|
|
55
|
+
name="test_assistant",
|
|
56
|
+
instructions="You are a helpful AI assistant",)
|
|
57
|
+
|
|
58
|
+
# Create thread (can also be reused)
|
|
59
|
+
thread = client.threads.create_thread()
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# Create user message
|
|
63
|
+
message = client.messages.create_message(
|
|
64
|
+
thread_id=thread.id,
|
|
65
|
+
role="user",
|
|
66
|
+
content="Explain a black hole to me in pure mathematical terms",
|
|
67
|
+
assistant_id=assistant.id
|
|
68
|
+
)
|
|
69
|
+
|
|
70
|
+
# Create a run
|
|
71
|
+
run = client.runs.create_run(
|
|
72
|
+
assistant_id=assistant.id,
|
|
73
|
+
thread_id=thread.id
|
|
74
|
+
)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Stream the Assistant's Response
|
|
78
|
+
|
|
79
|
+
```python
|
|
80
|
+
|
|
81
|
+
# --------------------------------------
|
|
82
|
+
#
|
|
83
|
+
# Setup synchronous streaming
|
|
84
|
+
#
|
|
85
|
+
#-----------------------------------------
|
|
86
|
+
sync_stream = client.synchronous_inference_stream
|
|
87
|
+
sync_stream.setup(
|
|
88
|
+
user_id=user_id,
|
|
89
|
+
thread_id=thread.id,
|
|
90
|
+
assistant_id=assistant.id,
|
|
91
|
+
message_id=message.id,
|
|
92
|
+
run_id=run.id,
|
|
93
|
+
api_key=API_KEY
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
# Stream the assistant's response
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
try:
|
|
100
|
+
for chunk in sync_stream.stream_chunks(
|
|
101
|
+
provider=PROVIDER,
|
|
102
|
+
model=MODEL,
|
|
103
|
+
timeout_per_chunk=60.0,
|
|
104
|
+
suppress_fc=True,
|
|
105
|
+
):
|
|
106
|
+
content = chunk.get("content", "")
|
|
107
|
+
if content:
|
|
108
|
+
print(content, end="", flush=True)
|
|
109
|
+
print("\n--- End of Stream ---")
|
|
110
|
+
except Exception as e:
|
|
111
|
+
print(f"Stream Error: {e}")
|
|
112
|
+
|
|
113
|
+
if __name__ == "__main__":
|
|
114
|
+
main()
|
|
115
|
+
|
|
116
|
+
```
|
|
@@ -36,14 +36,18 @@ run = client.run_service.create_run(thread_id='some_thread_id',
|
|
|
36
36
|
assistant_id='some_assistant_id')
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
|
|
40
|
+
|
|
39
41
|
```
|
|
40
42
|
---
|
|
41
43
|
|
|
42
44
|
**Retrieve a Run**
|
|
43
45
|
```python
|
|
44
46
|
print(get_run.dict())
|
|
47
|
+
|
|
45
48
|
id='run_t16pOsi0Y2a3PXuPjcrjko' assistant_id='user_2uMMGBpU4H7dcZieeOahNv' cancelled_at=None completed_at=None created_at=1726617356 expires_at=1726620956 failed_at=None incomplete_details=None instructions='' last_error=None max_completion_tokens=1000 max_prompt_tokens=500 meta_data={} model='gpt-4' object='run' parallel_tool_calls=False required_action=None response_format='text' started_at=None status='queued' thread_id='thread_Ww3UGvvKkrxFfHD1hNFQVX' tool_choice='none' tools=[] truncation_strategy={} usage=None temperature=1.0 top_p=1.0 tool_resources={} actions=[]
|
|
46
49
|
{'id': 'run_xsDpDica9weXH4eSfsRcPd', 'assistant_id': 'user_0D1D7j6UkZUsa9Gm7GdkU1', 'cancelled_at': None, 'completed_at': None, 'created_at': 1726620075, 'expires_at': 1726623675, 'failed_at': None, 'incomplete_details': None, 'instructions': '', 'last_error': None, 'max_completion_tokens': 1000, 'max_prompt_tokens': 500, 'meta_data': {}, 'model': 'gpt-4', 'object': 'run', 'parallel_tool_calls': False, 'required_action': None, 'response_format': 'text', 'started_at': None, 'status': 'queued', 'thread_id': 'thread_VaTTuMUa8EHtkr60hZGkju', 'tool_choice': 'none', 'tools': [], 'truncation_strategy': {}, 'usage': None, 'temperature': 1.0, 'top_p': 1.0, 'tool_resources': {}, 'actions': []}
|
|
50
|
+
|
|
47
51
|
```
|
|
48
52
|
---
|
|
49
53
|
|