orq-ai-sdk 4.2.0rc48__py3-none-any.whl → 4.2.12__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.
- orq_ai_sdk/_hooks/globalhook.py +0 -1
- orq_ai_sdk/_version.py +3 -3
- orq_ai_sdk/audio.py +30 -0
- orq_ai_sdk/chat.py +22 -0
- orq_ai_sdk/completions.py +438 -0
- orq_ai_sdk/contacts.py +43 -886
- orq_ai_sdk/deployments.py +61 -0
- orq_ai_sdk/edits.py +364 -0
- orq_ai_sdk/embeddings.py +344 -0
- orq_ai_sdk/generations.py +370 -0
- orq_ai_sdk/images.py +28 -0
- orq_ai_sdk/models/__init__.py +3839 -424
- orq_ai_sdk/models/conversationresponse.py +1 -1
- orq_ai_sdk/models/conversationwithmessagesresponse.py +1 -1
- orq_ai_sdk/models/createagentrequestop.py +768 -12
- orq_ai_sdk/models/createagentresponse.py +68 -2
- orq_ai_sdk/models/createchatcompletionop.py +538 -313
- orq_ai_sdk/models/createcompletionop.py +2078 -0
- orq_ai_sdk/models/createcontactop.py +5 -10
- orq_ai_sdk/models/createconversationop.py +1 -1
- orq_ai_sdk/models/createconversationresponseop.py +2 -2
- orq_ai_sdk/models/createdatasetitemop.py +4 -4
- orq_ai_sdk/models/createdatasetop.py +1 -1
- orq_ai_sdk/models/createdatasourceop.py +1 -1
- orq_ai_sdk/models/createembeddingop.py +579 -0
- orq_ai_sdk/models/createevalop.py +14 -14
- orq_ai_sdk/models/createidentityop.py +1 -1
- orq_ai_sdk/models/createimageeditop.py +715 -0
- orq_ai_sdk/models/createimageop.py +228 -82
- orq_ai_sdk/models/createimagevariationop.py +706 -0
- orq_ai_sdk/models/creatememoryop.py +4 -2
- orq_ai_sdk/models/createmoderationop.py +521 -0
- orq_ai_sdk/models/createpromptop.py +375 -6
- orq_ai_sdk/models/creatererankop.py +608 -0
- orq_ai_sdk/models/createresponseop.py +2567 -0
- orq_ai_sdk/models/createspeechop.py +466 -0
- orq_ai_sdk/models/createtoolop.py +6 -6
- orq_ai_sdk/models/createtranscriptionop.py +732 -0
- orq_ai_sdk/models/createtranslationop.py +702 -0
- orq_ai_sdk/models/deploymentgetconfigop.py +17 -7
- orq_ai_sdk/models/deploymentsop.py +1 -0
- orq_ai_sdk/models/deploymentstreamop.py +7 -0
- orq_ai_sdk/models/filegetop.py +1 -1
- orq_ai_sdk/models/filelistop.py +1 -1
- orq_ai_sdk/models/fileuploadop.py +1 -1
- orq_ai_sdk/models/generateconversationnameop.py +1 -1
- orq_ai_sdk/models/getallmemoriesop.py +4 -2
- orq_ai_sdk/models/getallpromptsop.py +188 -3
- orq_ai_sdk/models/getalltoolsop.py +6 -6
- orq_ai_sdk/models/getevalsop.py +17 -17
- orq_ai_sdk/models/getonepromptop.py +188 -3
- orq_ai_sdk/models/getpromptversionop.py +188 -3
- orq_ai_sdk/models/invokedeploymentrequest.py +11 -4
- orq_ai_sdk/models/listagentsop.py +372 -0
- orq_ai_sdk/models/listdatasetdatapointsop.py +4 -4
- orq_ai_sdk/models/listdatasetsop.py +1 -1
- orq_ai_sdk/models/listdatasourcesop.py +1 -1
- orq_ai_sdk/models/listidentitiesop.py +1 -1
- orq_ai_sdk/models/listmodelsop.py +1 -0
- orq_ai_sdk/models/listpromptversionsop.py +188 -3
- orq_ai_sdk/models/partdoneevent.py +1 -1
- orq_ai_sdk/models/post_v2_router_ocrop.py +408 -0
- orq_ai_sdk/models/publiccontact.py +9 -3
- orq_ai_sdk/models/publicidentity.py +62 -0
- orq_ai_sdk/models/reasoningpart.py +1 -1
- orq_ai_sdk/models/responsedoneevent.py +14 -11
- orq_ai_sdk/models/retrieveagentrequestop.py +382 -0
- orq_ai_sdk/models/retrievedatapointop.py +4 -4
- orq_ai_sdk/models/retrievedatasetop.py +1 -1
- orq_ai_sdk/models/retrievedatasourceop.py +1 -1
- orq_ai_sdk/models/retrieveidentityop.py +1 -1
- orq_ai_sdk/models/retrievememoryop.py +4 -2
- orq_ai_sdk/models/retrievetoolop.py +6 -6
- orq_ai_sdk/models/runagentop.py +379 -9
- orq_ai_sdk/models/streamrunagentop.py +385 -9
- orq_ai_sdk/models/updateagentop.py +770 -12
- orq_ai_sdk/models/updateconversationop.py +1 -1
- orq_ai_sdk/models/updatedatapointop.py +4 -4
- orq_ai_sdk/models/updatedatasetop.py +1 -1
- orq_ai_sdk/models/updatedatasourceop.py +1 -1
- orq_ai_sdk/models/updateevalop.py +14 -14
- orq_ai_sdk/models/updateidentityop.py +1 -1
- orq_ai_sdk/models/updatememoryop.py +4 -2
- orq_ai_sdk/models/updatepromptop.py +375 -6
- orq_ai_sdk/models/updatetoolop.py +7 -7
- orq_ai_sdk/moderations.py +218 -0
- orq_ai_sdk/orq_completions.py +666 -0
- orq_ai_sdk/orq_responses.py +398 -0
- orq_ai_sdk/rerank.py +330 -0
- orq_ai_sdk/router.py +89 -641
- orq_ai_sdk/speech.py +333 -0
- orq_ai_sdk/transcriptions.py +416 -0
- orq_ai_sdk/translations.py +384 -0
- orq_ai_sdk/variations.py +364 -0
- orq_ai_sdk-4.2.12.dist-info/METADATA +888 -0
- {orq_ai_sdk-4.2.0rc48.dist-info → orq_ai_sdk-4.2.12.dist-info}/RECORD +98 -75
- {orq_ai_sdk-4.2.0rc48.dist-info → orq_ai_sdk-4.2.12.dist-info}/WHEEL +1 -1
- orq_ai_sdk/models/deletecontactop.py +0 -44
- orq_ai_sdk/models/listcontactsop.py +0 -265
- orq_ai_sdk/models/retrievecontactop.py +0 -142
- orq_ai_sdk/models/updatecontactop.py +0 -233
- orq_ai_sdk-4.2.0rc48.dist-info/METADATA +0 -788
- {orq_ai_sdk-4.2.0rc48.dist-info → orq_ai_sdk-4.2.12.dist-info}/top_level.txt +0 -0
|
@@ -17,7 +17,7 @@ from typing_extensions import Annotated, NotRequired, TypedDict
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
class CreateContactRequestBodyTypedDict(TypedDict):
|
|
20
|
-
r"""
|
|
20
|
+
r"""Update user information payload"""
|
|
21
21
|
|
|
22
22
|
external_id: str
|
|
23
23
|
r"""Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user."""
|
|
@@ -34,7 +34,7 @@ class CreateContactRequestBodyTypedDict(TypedDict):
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
class CreateContactRequestBody(BaseModel):
|
|
37
|
-
r"""
|
|
37
|
+
r"""Update user information payload"""
|
|
38
38
|
|
|
39
39
|
external_id: str
|
|
40
40
|
r"""Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user."""
|
|
@@ -83,14 +83,12 @@ class CreateContactRequestBody(BaseModel):
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
class CreateContactResponseBodyTypedDict(TypedDict):
|
|
86
|
-
r"""
|
|
86
|
+
r"""Successful operation"""
|
|
87
87
|
|
|
88
88
|
id: str
|
|
89
89
|
r"""Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact"""
|
|
90
90
|
external_id: str
|
|
91
91
|
r"""Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user."""
|
|
92
|
-
workspace_id: str
|
|
93
|
-
r"""Unique identifier for the workspace to which the contact belongs"""
|
|
94
92
|
display_name: NotRequired[Nullable[str]]
|
|
95
93
|
r"""Display name or nickname of the contact user. This is typically shown in user interfaces."""
|
|
96
94
|
email: NotRequired[Nullable[str]]
|
|
@@ -108,7 +106,7 @@ class CreateContactResponseBodyTypedDict(TypedDict):
|
|
|
108
106
|
|
|
109
107
|
|
|
110
108
|
class CreateContactResponseBody(BaseModel):
|
|
111
|
-
r"""
|
|
109
|
+
r"""Successful operation"""
|
|
112
110
|
|
|
113
111
|
id: Annotated[str, pydantic.Field(alias="_id")]
|
|
114
112
|
r"""Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact"""
|
|
@@ -116,9 +114,6 @@ class CreateContactResponseBody(BaseModel):
|
|
|
116
114
|
external_id: str
|
|
117
115
|
r"""Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user."""
|
|
118
116
|
|
|
119
|
-
workspace_id: str
|
|
120
|
-
r"""Unique identifier for the workspace to which the contact belongs"""
|
|
121
|
-
|
|
122
117
|
display_name: OptionalNullable[str] = UNSET
|
|
123
118
|
r"""Display name or nickname of the contact user. This is typically shown in user interfaces."""
|
|
124
119
|
|
|
@@ -137,7 +132,7 @@ class CreateContactResponseBody(BaseModel):
|
|
|
137
132
|
created: Optional[datetime] = None
|
|
138
133
|
r"""The date and time the resource was created"""
|
|
139
134
|
|
|
140
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
135
|
+
updated: Optional[datetime] = parse_datetime("2026-01-27T09:10:34.517Z")
|
|
141
136
|
r"""The date and time the resource was last updated"""
|
|
142
137
|
|
|
143
138
|
@model_serializer(mode="wrap")
|
|
@@ -199,7 +199,7 @@ class CreateConversationResponseBody(BaseModel):
|
|
|
199
199
|
r"""Unix timestamp in milliseconds when the conversation was last modified."""
|
|
200
200
|
|
|
201
201
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
202
|
-
"
|
|
202
|
+
"conv_01kfzbgftqjrw1vw4a5a6p6x83"
|
|
203
203
|
)
|
|
204
204
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
205
205
|
|
|
@@ -119,7 +119,7 @@ class CreateConversationResponsePartReasoningPart(BaseModel):
|
|
|
119
119
|
r"""The reasoning or thought process behind the response. Used for chain-of-thought or extended thinking."""
|
|
120
120
|
|
|
121
121
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
122
|
-
"
|
|
122
|
+
"reasoning_01kfzbgfve19dq4yfqkdrb16xp"
|
|
123
123
|
)
|
|
124
124
|
r"""Unique identifier for the part. Format: reasoning_{ulid} (e.g., reasoning_01hxyz...)"""
|
|
125
125
|
|
|
@@ -211,7 +211,7 @@ class DeltaReasoningPart(BaseModel):
|
|
|
211
211
|
r"""The reasoning or thought process behind the response. Used for chain-of-thought or extended thinking."""
|
|
212
212
|
|
|
213
213
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
214
|
-
"
|
|
214
|
+
"reasoning_01kfzbgfv9ntpcmg3d83fp232t"
|
|
215
215
|
)
|
|
216
216
|
r"""Unique identifier for the part. Format: reasoning_{ulid} (e.g., reasoning_01hxyz...)"""
|
|
217
217
|
|
|
@@ -1434,7 +1434,7 @@ class Evaluations3(BaseModel):
|
|
|
1434
1434
|
|
|
1435
1435
|
source: Optional[CreateDatasetItemEvaluationsDatasetsSource] = "orq"
|
|
1436
1436
|
|
|
1437
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-01-
|
|
1437
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-01-27T09:10:46.913Z")
|
|
1438
1438
|
r"""The date and time the item was reviewed"""
|
|
1439
1439
|
|
|
1440
1440
|
@model_serializer(mode="wrap")
|
|
@@ -1502,7 +1502,7 @@ class Evaluations2(BaseModel):
|
|
|
1502
1502
|
|
|
1503
1503
|
source: Optional[CreateDatasetItemEvaluationsSource] = "orq"
|
|
1504
1504
|
|
|
1505
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-01-
|
|
1505
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-01-27T09:10:46.912Z")
|
|
1506
1506
|
r"""The date and time the item was reviewed"""
|
|
1507
1507
|
|
|
1508
1508
|
@model_serializer(mode="wrap")
|
|
@@ -1570,7 +1570,7 @@ class Evaluations1(BaseModel):
|
|
|
1570
1570
|
|
|
1571
1571
|
source: Optional[EvaluationsSource] = "orq"
|
|
1572
1572
|
|
|
1573
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-01-
|
|
1573
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-01-27T09:10:46.911Z")
|
|
1574
1574
|
r"""The date and time the item was reviewed"""
|
|
1575
1575
|
|
|
1576
1576
|
@model_serializer(mode="wrap")
|
|
@@ -1665,7 +1665,7 @@ class CreateDatasetItemResponseBody(BaseModel):
|
|
|
1665
1665
|
created: Optional[datetime] = None
|
|
1666
1666
|
r"""The date and time the resource was created"""
|
|
1667
1667
|
|
|
1668
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
1668
|
+
updated: Optional[datetime] = parse_datetime("2026-01-27T09:10:34.517Z")
|
|
1669
1669
|
r"""The date and time the resource was last updated"""
|
|
1670
1670
|
|
|
1671
1671
|
@model_serializer(mode="wrap")
|
|
@@ -94,7 +94,7 @@ class CreateDatasetResponseBody(BaseModel):
|
|
|
94
94
|
created: Optional[datetime] = None
|
|
95
95
|
r"""The date and time the resource was created"""
|
|
96
96
|
|
|
97
|
-
updated: Optional[datetime] = parse_datetime("2026-01-
|
|
97
|
+
updated: Optional[datetime] = parse_datetime("2026-01-27T09:10:34.517Z")
|
|
98
98
|
r"""The date and time the resource was last updated"""
|
|
99
99
|
|
|
100
100
|
@model_serializer(mode="wrap")
|
|
@@ -314,7 +314,7 @@ class CreateDatasourceResponseBody(BaseModel):
|
|
|
314
314
|
r"""The number of chunks in the datasource"""
|
|
315
315
|
|
|
316
316
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
317
|
-
"
|
|
317
|
+
"01KFZBGG979FXSXVDHHN9654A9"
|
|
318
318
|
)
|
|
319
319
|
r"""The unique identifier of the data source"""
|
|
320
320
|
|