orq-ai-sdk 4.2.0rc28__py3-none-any.whl → 4.3.0rc7__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.
Files changed (166) hide show
  1. orq_ai_sdk/_version.py +3 -3
  2. orq_ai_sdk/agents.py +186 -186
  3. orq_ai_sdk/audio.py +30 -0
  4. orq_ai_sdk/basesdk.py +20 -6
  5. orq_ai_sdk/chat.py +22 -0
  6. orq_ai_sdk/completions.py +438 -0
  7. orq_ai_sdk/contacts.py +43 -855
  8. orq_ai_sdk/deployments.py +61 -0
  9. orq_ai_sdk/edits.py +364 -0
  10. orq_ai_sdk/embeddings.py +344 -0
  11. orq_ai_sdk/generations.py +370 -0
  12. orq_ai_sdk/identities.py +1037 -0
  13. orq_ai_sdk/images.py +28 -0
  14. orq_ai_sdk/models/__init__.py +5746 -737
  15. orq_ai_sdk/models/actionreviewedstreamingevent.py +18 -1
  16. orq_ai_sdk/models/actionreviewrequestedstreamingevent.py +44 -1
  17. orq_ai_sdk/models/agenterroredstreamingevent.py +18 -1
  18. orq_ai_sdk/models/agentinactivestreamingevent.py +168 -70
  19. orq_ai_sdk/models/agentmessagecreatedstreamingevent.py +18 -2
  20. orq_ai_sdk/models/agentresponsemessage.py +18 -2
  21. orq_ai_sdk/models/agentstartedstreamingevent.py +127 -2
  22. orq_ai_sdk/models/agentthoughtstreamingevent.py +178 -211
  23. orq_ai_sdk/models/conversationresponse.py +31 -20
  24. orq_ai_sdk/models/conversationwithmessagesresponse.py +31 -20
  25. orq_ai_sdk/models/createagentrequestop.py +1945 -383
  26. orq_ai_sdk/models/createagentresponse.py +147 -91
  27. orq_ai_sdk/models/createagentresponserequestop.py +111 -2
  28. orq_ai_sdk/models/createchatcompletionop.py +1381 -861
  29. orq_ai_sdk/models/createchunkop.py +46 -19
  30. orq_ai_sdk/models/createcompletionop.py +2078 -0
  31. orq_ai_sdk/models/createcontactop.py +45 -56
  32. orq_ai_sdk/models/createconversationop.py +61 -39
  33. orq_ai_sdk/models/createconversationresponseop.py +68 -4
  34. orq_ai_sdk/models/createdatasetitemop.py +424 -80
  35. orq_ai_sdk/models/createdatasetop.py +19 -2
  36. orq_ai_sdk/models/createdatasourceop.py +92 -26
  37. orq_ai_sdk/models/createembeddingop.py +579 -0
  38. orq_ai_sdk/models/createevalop.py +552 -24
  39. orq_ai_sdk/models/createidentityop.py +176 -0
  40. orq_ai_sdk/models/createimageeditop.py +715 -0
  41. orq_ai_sdk/models/createimageop.py +407 -128
  42. orq_ai_sdk/models/createimagevariationop.py +706 -0
  43. orq_ai_sdk/models/createknowledgeop.py +186 -121
  44. orq_ai_sdk/models/creatememorydocumentop.py +50 -1
  45. orq_ai_sdk/models/creatememoryop.py +34 -21
  46. orq_ai_sdk/models/creatememorystoreop.py +34 -1
  47. orq_ai_sdk/models/createmoderationop.py +521 -0
  48. orq_ai_sdk/models/createpromptop.py +2759 -1251
  49. orq_ai_sdk/models/creatererankop.py +608 -0
  50. orq_ai_sdk/models/createresponseop.py +2567 -0
  51. orq_ai_sdk/models/createspeechop.py +466 -0
  52. orq_ai_sdk/models/createtoolop.py +537 -12
  53. orq_ai_sdk/models/createtranscriptionop.py +732 -0
  54. orq_ai_sdk/models/createtranslationop.py +702 -0
  55. orq_ai_sdk/models/datapart.py +18 -1
  56. orq_ai_sdk/models/deletechunksop.py +34 -1
  57. orq_ai_sdk/models/{deletecontactop.py → deleteidentityop.py} +9 -9
  58. orq_ai_sdk/models/deletepromptop.py +26 -0
  59. orq_ai_sdk/models/deploymentcreatemetricop.py +362 -76
  60. orq_ai_sdk/models/deploymentgetconfigop.py +635 -194
  61. orq_ai_sdk/models/deploymentinvokeop.py +168 -173
  62. orq_ai_sdk/models/deploymentsop.py +195 -58
  63. orq_ai_sdk/models/deploymentstreamop.py +652 -304
  64. orq_ai_sdk/models/errorpart.py +18 -1
  65. orq_ai_sdk/models/filecontentpartschema.py +18 -1
  66. orq_ai_sdk/models/filegetop.py +19 -2
  67. orq_ai_sdk/models/filelistop.py +35 -2
  68. orq_ai_sdk/models/filepart.py +50 -1
  69. orq_ai_sdk/models/fileuploadop.py +51 -2
  70. orq_ai_sdk/models/generateconversationnameop.py +31 -20
  71. orq_ai_sdk/models/get_v2_evaluators_id_versionsop.py +34 -1
  72. orq_ai_sdk/models/get_v2_tools_tool_id_versions_version_id_op.py +18 -1
  73. orq_ai_sdk/models/get_v2_tools_tool_id_versionsop.py +34 -1
  74. orq_ai_sdk/models/getallmemoriesop.py +34 -21
  75. orq_ai_sdk/models/getallmemorydocumentsop.py +42 -1
  76. orq_ai_sdk/models/getallmemorystoresop.py +34 -1
  77. orq_ai_sdk/models/getallpromptsop.py +1696 -230
  78. orq_ai_sdk/models/getalltoolsop.py +325 -8
  79. orq_ai_sdk/models/getchunkscountop.py +34 -1
  80. orq_ai_sdk/models/getevalsop.py +395 -43
  81. orq_ai_sdk/models/getonechunkop.py +14 -19
  82. orq_ai_sdk/models/getoneknowledgeop.py +116 -96
  83. orq_ai_sdk/models/getonepromptop.py +1679 -230
  84. orq_ai_sdk/models/getpromptversionop.py +1676 -216
  85. orq_ai_sdk/models/imagecontentpartschema.py +50 -1
  86. orq_ai_sdk/models/internal/globals.py +18 -1
  87. orq_ai_sdk/models/invokeagentop.py +140 -2
  88. orq_ai_sdk/models/invokedeploymentrequest.py +418 -80
  89. orq_ai_sdk/models/invokeevalop.py +160 -131
  90. orq_ai_sdk/models/listagentsop.py +805 -166
  91. orq_ai_sdk/models/listchunksop.py +32 -19
  92. orq_ai_sdk/models/listchunkspaginatedop.py +46 -19
  93. orq_ai_sdk/models/listconversationsop.py +18 -1
  94. orq_ai_sdk/models/listdatasetdatapointsop.py +252 -42
  95. orq_ai_sdk/models/listdatasetsop.py +35 -2
  96. orq_ai_sdk/models/listdatasourcesop.py +35 -26
  97. orq_ai_sdk/models/{listcontactsop.py → listidentitiesop.py} +89 -79
  98. orq_ai_sdk/models/listknowledgebasesop.py +132 -96
  99. orq_ai_sdk/models/listmodelsop.py +1 -0
  100. orq_ai_sdk/models/listpromptversionsop.py +1690 -216
  101. orq_ai_sdk/models/parseop.py +161 -17
  102. orq_ai_sdk/models/partdoneevent.py +19 -2
  103. orq_ai_sdk/models/post_v2_router_ocrop.py +408 -0
  104. orq_ai_sdk/models/publiccontact.py +27 -4
  105. orq_ai_sdk/models/publicidentity.py +62 -0
  106. orq_ai_sdk/models/reasoningpart.py +19 -2
  107. orq_ai_sdk/models/refusalpartschema.py +18 -1
  108. orq_ai_sdk/models/remoteconfigsgetconfigop.py +34 -1
  109. orq_ai_sdk/models/responsedoneevent.py +114 -84
  110. orq_ai_sdk/models/responsestartedevent.py +18 -1
  111. orq_ai_sdk/models/retrieveagentrequestop.py +799 -166
  112. orq_ai_sdk/models/retrievedatapointop.py +236 -42
  113. orq_ai_sdk/models/retrievedatasetop.py +19 -2
  114. orq_ai_sdk/models/retrievedatasourceop.py +17 -26
  115. orq_ai_sdk/models/{retrievecontactop.py → retrieveidentityop.py} +38 -41
  116. orq_ai_sdk/models/retrievememorydocumentop.py +18 -1
  117. orq_ai_sdk/models/retrievememoryop.py +18 -21
  118. orq_ai_sdk/models/retrievememorystoreop.py +18 -1
  119. orq_ai_sdk/models/retrievetoolop.py +309 -8
  120. orq_ai_sdk/models/runagentop.py +1462 -196
  121. orq_ai_sdk/models/searchknowledgeop.py +108 -1
  122. orq_ai_sdk/models/security.py +18 -1
  123. orq_ai_sdk/models/streamagentop.py +93 -2
  124. orq_ai_sdk/models/streamrunagentop.py +1439 -194
  125. orq_ai_sdk/models/textcontentpartschema.py +34 -1
  126. orq_ai_sdk/models/thinkingconfigenabledschema.py +18 -1
  127. orq_ai_sdk/models/toolcallpart.py +18 -1
  128. orq_ai_sdk/models/tooldoneevent.py +18 -1
  129. orq_ai_sdk/models/toolexecutionfailedstreamingevent.py +50 -1
  130. orq_ai_sdk/models/toolexecutionfinishedstreamingevent.py +34 -1
  131. orq_ai_sdk/models/toolexecutionstartedstreamingevent.py +34 -1
  132. orq_ai_sdk/models/toolresultpart.py +18 -1
  133. orq_ai_sdk/models/toolreviewrequestedevent.py +18 -1
  134. orq_ai_sdk/models/toolstartedevent.py +18 -1
  135. orq_ai_sdk/models/updateagentop.py +1968 -397
  136. orq_ai_sdk/models/updatechunkop.py +46 -19
  137. orq_ai_sdk/models/updateconversationop.py +61 -39
  138. orq_ai_sdk/models/updatedatapointop.py +424 -80
  139. orq_ai_sdk/models/updatedatasetop.py +51 -2
  140. orq_ai_sdk/models/updatedatasourceop.py +17 -26
  141. orq_ai_sdk/models/updateevalop.py +577 -16
  142. orq_ai_sdk/models/{updatecontactop.py → updateidentityop.py} +78 -68
  143. orq_ai_sdk/models/updateknowledgeop.py +234 -190
  144. orq_ai_sdk/models/updatememorydocumentop.py +50 -1
  145. orq_ai_sdk/models/updatememoryop.py +50 -21
  146. orq_ai_sdk/models/updatememorystoreop.py +66 -1
  147. orq_ai_sdk/models/updatepromptop.py +2854 -1448
  148. orq_ai_sdk/models/updatetoolop.py +592 -9
  149. orq_ai_sdk/models/usermessagerequest.py +18 -2
  150. orq_ai_sdk/moderations.py +218 -0
  151. orq_ai_sdk/orq_completions.py +666 -0
  152. orq_ai_sdk/orq_responses.py +398 -0
  153. orq_ai_sdk/prompts.py +28 -36
  154. orq_ai_sdk/rerank.py +330 -0
  155. orq_ai_sdk/router.py +89 -641
  156. orq_ai_sdk/sdk.py +3 -0
  157. orq_ai_sdk/speech.py +333 -0
  158. orq_ai_sdk/transcriptions.py +416 -0
  159. orq_ai_sdk/translations.py +384 -0
  160. orq_ai_sdk/utils/__init__.py +13 -1
  161. orq_ai_sdk/variations.py +364 -0
  162. {orq_ai_sdk-4.2.0rc28.dist-info → orq_ai_sdk-4.3.0rc7.dist-info}/METADATA +169 -148
  163. orq_ai_sdk-4.3.0rc7.dist-info/RECORD +263 -0
  164. {orq_ai_sdk-4.2.0rc28.dist-info → orq_ai_sdk-4.3.0rc7.dist-info}/WHEEL +2 -1
  165. orq_ai_sdk-4.3.0rc7.dist-info/top_level.txt +1 -0
  166. orq_ai_sdk-4.2.0rc28.dist-info/RECORD +0 -233
@@ -1,21 +1,15 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orq-ai-sdk
3
- Version: 4.2.0rc28
3
+ Version: 4.3.0rc7
4
4
  Summary: Python Client SDK for the Orq API.
5
5
  Author: Orq
6
+ Project-URL: repository, https://github.com/orq-ai/orq-python.git
6
7
  Requires-Python: >=3.9.2
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Programming Language :: Python :: 3.10
9
- Classifier: Programming Language :: Python :: 3.11
10
- Classifier: Programming Language :: Python :: 3.12
11
- Classifier: Programming Language :: Python :: 3.13
12
- Classifier: Programming Language :: Python :: 3.14
13
- Requires-Dist: httpcore (>=1.0.9)
14
- Requires-Dist: httpx (>=0.28.1)
15
- Requires-Dist: pydantic (>=2.11.2)
16
- Requires-Dist: requests (==2.32.4)
17
- Project-URL: Repository, https://github.com/orq-ai/orq-python.git
18
8
  Description-Content-Type: text/markdown
9
+ Requires-Dist: httpcore>=1.0.9
10
+ Requires-Dist: httpx>=0.28.1
11
+ Requires-Dist: pydantic>=2.11.2
12
+ Requires-Dist: requests==2.32.4
19
13
 
20
14
  # orq-ai-sdk
21
15
 
@@ -150,22 +144,15 @@ with Orq(
150
144
  api_key=os.getenv("ORQ_API_KEY", ""),
151
145
  ) as orq:
152
146
 
153
- res = orq.contacts.create(request={
154
- "external_id": "user_12345",
155
- "display_name": "Jane Smith",
156
- "email": "jane.smith@example.com",
157
- "avatar_url": "https://example.com/avatars/jane-smith.jpg",
158
- "tags": [
159
- "premium",
160
- "beta-user",
161
- "enterprise",
162
- ],
163
- "metadata": {
164
- "department": "Engineering",
165
- "role": "Senior Developer",
166
- "subscription_tier": "premium",
167
- "last_login": "2024-01-15T10:30:00Z",
168
- },
147
+ res = orq.contacts.create(external_id="user_12345", display_name="Jane Smith", email="jane.smith@example.com", avatar_url="https://example.com/avatars/jane-smith.jpg", tags=[
148
+ "premium",
149
+ "beta-user",
150
+ "enterprise",
151
+ ], metadata={
152
+ "department": "Engineering",
153
+ "role": "Senior Developer",
154
+ "subscription_tier": "premium",
155
+ "last_login": "2024-01-15T10:30:00Z",
169
156
  })
170
157
 
171
158
  # Handle response
@@ -188,22 +175,15 @@ async def main():
188
175
  api_key=os.getenv("ORQ_API_KEY", ""),
189
176
  ) as orq:
190
177
 
191
- res = await orq.contacts.create_async(request={
192
- "external_id": "user_12345",
193
- "display_name": "Jane Smith",
194
- "email": "jane.smith@example.com",
195
- "avatar_url": "https://example.com/avatars/jane-smith.jpg",
196
- "tags": [
197
- "premium",
198
- "beta-user",
199
- "enterprise",
200
- ],
201
- "metadata": {
202
- "department": "Engineering",
203
- "role": "Senior Developer",
204
- "subscription_tier": "premium",
205
- "last_login": "2024-01-15T10:30:00Z",
206
- },
178
+ res = await orq.contacts.create_async(external_id="user_12345", display_name="Jane Smith", email="jane.smith@example.com", avatar_url="https://example.com/avatars/jane-smith.jpg", tags=[
179
+ "premium",
180
+ "beta-user",
181
+ "enterprise",
182
+ ], metadata={
183
+ "department": "Engineering",
184
+ "role": "Senior Developer",
185
+ "subscription_tier": "premium",
186
+ "last_login": "2024-01-15T10:30:00Z",
207
187
  })
208
188
 
209
189
  # Handle response
@@ -234,22 +214,15 @@ with Orq(
234
214
  api_key=os.getenv("ORQ_API_KEY", ""),
235
215
  ) as orq:
236
216
 
237
- res = orq.contacts.create(request={
238
- "external_id": "user_12345",
239
- "display_name": "Jane Smith",
240
- "email": "jane.smith@example.com",
241
- "avatar_url": "https://example.com/avatars/jane-smith.jpg",
242
- "tags": [
243
- "premium",
244
- "beta-user",
245
- "enterprise",
246
- ],
247
- "metadata": {
248
- "department": "Engineering",
249
- "role": "Senior Developer",
250
- "subscription_tier": "premium",
251
- "last_login": "2024-01-15T10:30:00Z",
252
- },
217
+ res = orq.contacts.create(external_id="user_12345", display_name="Jane Smith", email="jane.smith@example.com", avatar_url="https://example.com/avatars/jane-smith.jpg", tags=[
218
+ "premium",
219
+ "beta-user",
220
+ "enterprise",
221
+ ], metadata={
222
+ "department": "Engineering",
223
+ "role": "Senior Developer",
224
+ "subscription_tier": "premium",
225
+ "last_login": "2024-01-15T10:30:00Z",
253
226
  })
254
227
 
255
228
  # Handle response
@@ -267,11 +240,11 @@ with Orq(
267
240
  ### [Agents](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md)
268
241
 
269
242
  * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#create) - Create agent
243
+ * [list](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#list) - List agents
270
244
  * [delete](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#delete) - Delete agent
271
245
  * [retrieve](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#retrieve) - Retrieve agent
272
246
  * [update](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#update) - Update agent
273
247
  * [~~invoke~~](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#invoke) - Execute an agent task :warning: **Deprecated**
274
- * [list](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#list) - List agents
275
248
  * [~~run~~](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#run) - Run an agent with configuration :warning: **Deprecated**
276
249
  * [~~stream_run~~](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#stream_run) - Run agent with streaming response :warning: **Deprecated**
277
250
  * [~~stream~~](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/agents/README.md#stream) - Stream agent execution in real-time :warning: **Deprecated**
@@ -286,11 +259,7 @@ with Orq(
286
259
 
287
260
  ### [Contacts](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md)
288
261
 
289
- * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md#create) - Create a contact
290
- * [list](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md#list) - List contacts
291
- * [retrieve](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md#retrieve) - Retrieve a contact
292
- * [update](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md#update) - Update a contact
293
- * [delete](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md#delete) - Delete a contact
262
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/contacts/README.md#create) - Update user information
294
263
 
295
264
  ### [Conversations](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/conversations/README.md)
296
265
 
@@ -350,6 +319,14 @@ with Orq(
350
319
  * [get](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/files/README.md#get) - Retrieve a file
351
320
  * [delete](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/files/README.md#delete) - Delete file
352
321
 
322
+ ### [Identities](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/identities/README.md)
323
+
324
+ * [list](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/identities/README.md#list) - List identities
325
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/identities/README.md#create) - Create an identity
326
+ * [retrieve](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/identities/README.md#retrieve) - Retrieve an identity
327
+ * [update](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/identities/README.md#update) - Update an identity
328
+ * [delete](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/identities/README.md#delete) - Delete an identity
329
+
353
330
  ### [Internal](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/internal/README.md)
354
331
 
355
332
  * [create_conversation_response](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/internal/README.md#create_conversation_response) - Create internal response
@@ -414,8 +391,55 @@ with Orq(
414
391
 
415
392
  ### [Router](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/router/README.md)
416
393
 
417
- * [chat_completions](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/router/README.md#chat_completions) - Create chat completion
418
- * [images_generate](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/router/README.md#images_generate) - Create image
394
+ * [ocr](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/router/README.md#ocr) - Extracts text content while maintaining document structure and hierarchy
395
+
396
+ #### [Router.Audio.Speech](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/speech/README.md)
397
+
398
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/speech/README.md#create) - Create speech
399
+
400
+ #### [Router.Audio.Transcriptions](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/transcriptions/README.md)
401
+
402
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/transcriptions/README.md#create) - Create transcription
403
+
404
+ #### [Router.Audio.Translations](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/translations/README.md)
405
+
406
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/translations/README.md#create) - Create translation
407
+
408
+ #### [Router.Chat.Completions](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/orqcompletions/README.md)
409
+
410
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/orqcompletions/README.md#create) - Create chat completion
411
+
412
+ #### [Router.Completions](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/completions/README.md)
413
+
414
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/completions/README.md#create) - Create completion
415
+
416
+ #### [Router.Embeddings](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/embeddings/README.md)
417
+
418
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/embeddings/README.md#create) - Create embeddings
419
+
420
+ #### [Router.Images.Edits](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/edits/README.md)
421
+
422
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/edits/README.md#create) - Create image edit
423
+
424
+ #### [Router.Images.Generations](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/generations/README.md)
425
+
426
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/generations/README.md#create) - Create image
427
+
428
+ #### [Router.Images.Variations](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/variations/README.md)
429
+
430
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/variations/README.md#create) - Create image variation
431
+
432
+ #### [Router.Moderations](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/moderations/README.md)
433
+
434
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/moderations/README.md#create) - Create moderation
435
+
436
+ #### [Router.Rerank](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/rerank/README.md)
437
+
438
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/rerank/README.md#create) - Create rerank
439
+
440
+ #### [Router.Responses](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/orqresponses/README.md)
441
+
442
+ * [create](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/orqresponses/README.md#create) - Create response
419
443
 
420
444
  ### [Tools](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/docs/sdks/tools/README.md)
421
445
 
@@ -453,7 +477,22 @@ with Orq(
453
477
  api_key=os.getenv("ORQ_API_KEY", ""),
454
478
  ) as orq:
455
479
 
456
- res = orq.deployments.stream(key="<key>", documents=[
480
+ res = orq.deployments.stream(key="<key>", identity={
481
+ "id": "contact_01ARZ3NDEKTSV4RRFFQ69G5FAV",
482
+ "display_name": "Jane Doe",
483
+ "email": "jane.doe@example.com",
484
+ "metadata": [
485
+ {
486
+ "department": "Engineering",
487
+ "role": "Senior Developer",
488
+ },
489
+ ],
490
+ "logo_url": "https://example.com/avatars/jane-doe.jpg",
491
+ "tags": [
492
+ "hr",
493
+ "engineering",
494
+ ],
495
+ }, documents=[
457
496
  {
458
497
  "text": "The refund policy allows customers to return items within 30 days of purchase for a full refund.",
459
498
  "metadata": {
@@ -529,22 +568,15 @@ with Orq(
529
568
  api_key=os.getenv("ORQ_API_KEY", ""),
530
569
  ) as orq:
531
570
 
532
- res = orq.contacts.create(request={
533
- "external_id": "user_12345",
534
- "display_name": "Jane Smith",
535
- "email": "jane.smith@example.com",
536
- "avatar_url": "https://example.com/avatars/jane-smith.jpg",
537
- "tags": [
538
- "premium",
539
- "beta-user",
540
- "enterprise",
541
- ],
542
- "metadata": {
543
- "department": "Engineering",
544
- "role": "Senior Developer",
545
- "subscription_tier": "premium",
546
- "last_login": "2024-01-15T10:30:00Z",
547
- },
571
+ res = orq.contacts.create(external_id="user_12345", display_name="Jane Smith", email="jane.smith@example.com", avatar_url="https://example.com/avatars/jane-smith.jpg", tags=[
572
+ "premium",
573
+ "beta-user",
574
+ "enterprise",
575
+ ], metadata={
576
+ "department": "Engineering",
577
+ "role": "Senior Developer",
578
+ "subscription_tier": "premium",
579
+ "last_login": "2024-01-15T10:30:00Z",
548
580
  },
549
581
  RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
550
582
 
@@ -565,22 +597,15 @@ with Orq(
565
597
  api_key=os.getenv("ORQ_API_KEY", ""),
566
598
  ) as orq:
567
599
 
568
- res = orq.contacts.create(request={
569
- "external_id": "user_12345",
570
- "display_name": "Jane Smith",
571
- "email": "jane.smith@example.com",
572
- "avatar_url": "https://example.com/avatars/jane-smith.jpg",
573
- "tags": [
574
- "premium",
575
- "beta-user",
576
- "enterprise",
577
- ],
578
- "metadata": {
579
- "department": "Engineering",
580
- "role": "Senior Developer",
581
- "subscription_tier": "premium",
582
- "last_login": "2024-01-15T10:30:00Z",
583
- },
600
+ res = orq.contacts.create(external_id="user_12345", display_name="Jane Smith", email="jane.smith@example.com", avatar_url="https://example.com/avatars/jane-smith.jpg", tags=[
601
+ "premium",
602
+ "beta-user",
603
+ "enterprise",
604
+ ], metadata={
605
+ "department": "Engineering",
606
+ "role": "Senior Developer",
607
+ "subscription_tier": "premium",
608
+ "last_login": "2024-01-15T10:30:00Z",
584
609
  })
585
610
 
586
611
  # Handle response
@@ -615,7 +640,7 @@ with Orq(
615
640
  res = None
616
641
  try:
617
642
 
618
- res = orq.contacts.retrieve(id="<id>")
643
+ res = orq.evals.all(limit=10)
619
644
 
620
645
  # Handle response
621
646
  print(res)
@@ -630,15 +655,15 @@ with Orq(
630
655
  print(e.raw_response)
631
656
 
632
657
  # Depending on the method different errors may be thrown
633
- if isinstance(e, models.RetrieveContactContactsResponseBody):
634
- print(e.data.error) # str
658
+ if isinstance(e, models.GetEvalsEvalsResponseBody):
659
+ print(e.data.message) # str
635
660
  ```
636
661
 
637
662
  ### Error Classes
638
663
  **Primary error:**
639
664
  * [`OrqError`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/orqerror.py): The base class for HTTP error responses.
640
665
 
641
- <details><summary>Less common errors (31)</summary>
666
+ <details><summary>Less common errors (35)</summary>
642
667
 
643
668
  <br />
644
669
 
@@ -649,32 +674,36 @@ with Orq(
649
674
 
650
675
 
651
676
  **Inherit from [`OrqError`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/orqerror.py)**:
652
- * [`HonoAPIError`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/honoapierror.py): Applicable to 9 of 103 methods.*
653
- * [`GenerateConversationNameConversationsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/generateconversationnameconversationsresponsebody.py): Conversation already has a display name. This endpoint only generates names for conversations with empty display names. Status code `400`. Applicable to 1 of 103 methods.*
654
- * [`RetrieveContactContactsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/retrievecontactcontactsresponsebody.py): Contact not found. Status code `404`. Applicable to 1 of 103 methods.*
655
- * [`UpdateContactContactsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updatecontactcontactsresponsebody.py): Contact not found. Status code `404`. Applicable to 1 of 103 methods.*
656
- * [`DeleteContactResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deletecontactresponsebody.py): Contact not found. Status code `404`. Applicable to 1 of 103 methods.*
657
- * [`GetEvalsEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getevalsevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 103 methods.*
658
- * [`CreateEvalEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/createevalevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 103 methods.*
659
- * [`UpdateEvalEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateevalevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 103 methods.*
660
- * [`DeleteEvalResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteevalresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 103 methods.*
661
- * [`InvokeEvalEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/invokeevalevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 103 methods.*
662
- * [`GetV2EvaluatorsIDVersionsEvaluatorsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getv2evaluatorsidversionsevaluatorsresponsebody.py): Evaluator not found. Status code `404`. Applicable to 1 of 103 methods.*
663
- * [`DeleteAgentResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteagentresponsebody.py): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 103 methods.*
664
- * [`RetrieveAgentRequestAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/retrieveagentrequestagentsresponsebody.py): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 103 methods.*
665
- * [`UpdateAgentAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateagentagentsresponsebody.py): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 103 methods.*
666
- * [`StreamRunAgentAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/streamrunagentagentsresponsebody.py): Model not found. Status code `404`. Applicable to 1 of 103 methods.*
667
- * [`StreamAgentAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/streamagentagentsresponsebody.py): Agent not found. Status code `404`. Applicable to 1 of 103 methods.*
668
- * [`GenerateConversationNameConversationsResponseResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/generateconversationnameconversationsresponseresponsebody.py): Conversation not found. Status code `404`. Applicable to 1 of 103 methods.*
669
- * [`RetrieveConversationResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/retrieveconversationresponsebody.py): Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 103 methods.*
670
- * [`UpdateConversationConversationsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateconversationconversationsresponsebody.py): Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 103 methods.*
671
- * [`DeleteConversationResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteconversationresponsebody.py): Conversation not found. The specified conversation ID does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 103 methods.*
672
- * [`UpdatePromptResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updatepromptresponsebody.py): Prompt not found. Status code `404`. Applicable to 1 of 103 methods.*
673
- * [`GetPromptVersionPromptsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getpromptversionpromptsresponsebody.py): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 103 methods.*
674
- * [`UpdateToolToolsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updatetooltoolsresponsebody.py): Tool not found. Status code `404`. Applicable to 1 of 103 methods.*
675
- * [`GetV2ToolsToolIDVersionsToolsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getv2toolstoolidversionstoolsresponsebody.py): Tool not found. Status code `404`. Applicable to 1 of 103 methods.*
676
- * [`GetV2ToolsToolIDVersionsVersionIDToolsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getv2toolstoolidversionsversionidtoolsresponsebody.py): Tool or version not found. Status code `404`. Applicable to 1 of 103 methods.*
677
- * [`InvokeEvalEvalsResponseResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/invokeevalevalsresponseresponsebody.py): Error running the evaluator. Status code `500`. Applicable to 1 of 103 methods.*
677
+ * [`HonoAPIError`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/honoapierror.py): Applicable to 9 of 115 methods.*
678
+ * [`GenerateConversationNameConversationsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/generateconversationnameconversationsresponsebody.py): Conversation already has a display name. This endpoint only generates names for conversations with empty display names. Status code `400`. Applicable to 1 of 115 methods.*
679
+ * [`GetEvalsEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getevalsevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
680
+ * [`CreateEvalEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/createevalevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
681
+ * [`UpdateEvalEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateevalevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
682
+ * [`DeleteEvalResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteevalresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
683
+ * [`InvokeEvalEvalsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/invokeevalevalsresponsebody.py): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 115 methods.*
684
+ * [`GetV2EvaluatorsIDVersionsEvaluatorsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getv2evaluatorsidversionsevaluatorsresponsebody.py): Evaluator not found. Status code `404`. Applicable to 1 of 115 methods.*
685
+ * [`RetrieveIdentityIdentitiesResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/retrieveidentityidentitiesresponsebody.py): Identity not found. Status code `404`. Applicable to 1 of 115 methods.*
686
+ * [`UpdateIdentityIdentitiesResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateidentityidentitiesresponsebody.py): Identity not found. Status code `404`. Applicable to 1 of 115 methods.*
687
+ * [`DeleteIdentityResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteidentityresponsebody.py): Identity not found. Status code `404`. Applicable to 1 of 115 methods.*
688
+ * [`DeleteAgentResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteagentresponsebody.py): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 115 methods.*
689
+ * [`RetrieveAgentRequestAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/retrieveagentrequestagentsresponsebody.py): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 115 methods.*
690
+ * [`UpdateAgentAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateagentagentsresponsebody.py): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 115 methods.*
691
+ * [`StreamRunAgentAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/streamrunagentagentsresponsebody.py): Model not found. Status code `404`. Applicable to 1 of 115 methods.*
692
+ * [`StreamAgentAgentsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/streamagentagentsresponsebody.py): Agent not found. Status code `404`. Applicable to 1 of 115 methods.*
693
+ * [`GenerateConversationNameConversationsResponseResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/generateconversationnameconversationsresponseresponsebody.py): Conversation not found. Status code `404`. Applicable to 1 of 115 methods.*
694
+ * [`RetrieveConversationResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/retrieveconversationresponsebody.py): Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 115 methods.*
695
+ * [`UpdateConversationConversationsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updateconversationconversationsresponsebody.py): Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 115 methods.*
696
+ * [`DeleteConversationResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deleteconversationresponsebody.py): Conversation not found. The specified conversation ID does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 115 methods.*
697
+ * [`UpdatePromptResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updatepromptresponsebody.py): Prompt not found. Status code `404`. Applicable to 1 of 115 methods.*
698
+ * [`DeletePromptResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/deletepromptresponsebody.py): Prompt not found. Status code `404`. Applicable to 1 of 115 methods.*
699
+ * [`GetPromptVersionPromptsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getpromptversionpromptsresponsebody.py): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 115 methods.*
700
+ * [`UpdateToolToolsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/updatetooltoolsresponsebody.py): Tool not found. Status code `404`. Applicable to 1 of 115 methods.*
701
+ * [`GetV2ToolsToolIDVersionsToolsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getv2toolstoolidversionstoolsresponsebody.py): Tool not found. Status code `404`. Applicable to 1 of 115 methods.*
702
+ * [`GetV2ToolsToolIDVersionsVersionIDToolsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/getv2toolstoolidversionsversionidtoolsresponsebody.py): Tool or version not found. Status code `404`. Applicable to 1 of 115 methods.*
703
+ * [`CreateModerationRouterModerationsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/createmoderationroutermoderationsresponsebody.py): Returns validation error. Status code `422`. Applicable to 1 of 115 methods.*
704
+ * [`CreateTranscriptionRouterAudioTranscriptionsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/createtranscriptionrouteraudiotranscriptionsresponsebody.py): Returns validation error. Status code `422`. Applicable to 1 of 115 methods.*
705
+ * [`CreateTranslationRouterAudioTranslationsResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/createtranslationrouteraudiotranslationsresponsebody.py): Returns validation error. Status code `422`. Applicable to 1 of 115 methods.*
706
+ * [`InvokeEvalEvalsResponseResponseBody`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/invokeevalevalsresponseresponsebody.py): Error running the evaluator. Status code `500`. Applicable to 1 of 115 methods.*
678
707
  * [`ResponseValidationError`](https://github.com/orq-ai/orq-python/blob/master/packages/orq-rc/./src/orq_ai_sdk/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
679
708
 
680
709
  </details>
@@ -698,22 +727,15 @@ with Orq(
698
727
  api_key=os.getenv("ORQ_API_KEY", ""),
699
728
  ) as orq:
700
729
 
701
- res = orq.contacts.create(request={
702
- "external_id": "user_12345",
703
- "display_name": "Jane Smith",
704
- "email": "jane.smith@example.com",
705
- "avatar_url": "https://example.com/avatars/jane-smith.jpg",
706
- "tags": [
707
- "premium",
708
- "beta-user",
709
- "enterprise",
710
- ],
711
- "metadata": {
712
- "department": "Engineering",
713
- "role": "Senior Developer",
714
- "subscription_tier": "premium",
715
- "last_login": "2024-01-15T10:30:00Z",
716
- },
730
+ res = orq.contacts.create(external_id="user_12345", display_name="Jane Smith", email="jane.smith@example.com", avatar_url="https://example.com/avatars/jane-smith.jpg", tags=[
731
+ "premium",
732
+ "beta-user",
733
+ "enterprise",
734
+ ], metadata={
735
+ "department": "Engineering",
736
+ "role": "Senior Developer",
737
+ "subscription_tier": "premium",
738
+ "last_login": "2024-01-15T10:30:00Z",
717
739
  })
718
740
 
719
741
  # Handle response
@@ -864,4 +886,3 @@ While we value open-source contributions to this SDK, this library is generated
864
886
  We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
865
887
 
866
888
  ### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=orq-ai-sdk&utm_campaign=python)
867
-