orq-ai-sdk 4.3.0rc15__py3-none-any.whl → 4.3.0rc17__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/_version.py +2 -2
- orq_ai_sdk/models/agentstartedstreamingevent.py +6 -0
- orq_ai_sdk/models/conversationresponse.py +1 -1
- orq_ai_sdk/models/conversationwithmessagesresponse.py +1 -1
- orq_ai_sdk/models/createagentrequestop.py +12 -0
- orq_ai_sdk/models/createcontactop.py +1 -1
- 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/createevalop.py +14 -14
- orq_ai_sdk/models/createidentityop.py +1 -1
- orq_ai_sdk/models/createtoolop.py +6 -6
- 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/getalltoolsop.py +6 -6
- orq_ai_sdk/models/getevalsop.py +14 -14
- orq_ai_sdk/models/listagentsop.py +6 -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/partdoneevent.py +1 -1
- orq_ai_sdk/models/reasoningpart.py +1 -1
- orq_ai_sdk/models/retrieveagentrequestop.py +6 -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/retrievetoolop.py +6 -6
- orq_ai_sdk/models/runagentop.py +7 -1
- orq_ai_sdk/models/streamrunagentop.py +7 -1
- orq_ai_sdk/models/updateagentop.py +12 -0
- 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/updatetoolop.py +7 -7
- {orq_ai_sdk-4.3.0rc15.dist-info → orq_ai_sdk-4.3.0rc17.dist-info}/METADATA +1 -1
- {orq_ai_sdk-4.3.0rc15.dist-info → orq_ai_sdk-4.3.0rc17.dist-info}/RECORD +47 -47
- {orq_ai_sdk-4.3.0rc15.dist-info → orq_ai_sdk-4.3.0rc17.dist-info}/WHEEL +0 -0
- {orq_ai_sdk-4.3.0rc15.dist-info → orq_ai_sdk-4.3.0rc17.dist-info}/top_level.txt +0 -0
orq_ai_sdk/_version.py
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "orq-ai-sdk"
|
|
6
|
-
__version__: str = "4.3.0-rc.
|
|
6
|
+
__version__: str = "4.3.0-rc.17"
|
|
7
7
|
__openapi_doc_version__: str = "2.0"
|
|
8
8
|
__gen_version__: str = "2.801.2"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 4.3.0-rc.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 4.3.0-rc.17 2.801.2 2.0 orq-ai-sdk"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -275,6 +275,8 @@ class SettingsTypedDict(TypedDict):
|
|
|
275
275
|
r"""Maximum iterations(llm calls) before the agent will stop executing."""
|
|
276
276
|
max_execution_time: NotRequired[int]
|
|
277
277
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
278
|
+
max_cost: NotRequired[float]
|
|
279
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
278
280
|
tool_approval_required: NotRequired[ToolApprovalRequired]
|
|
279
281
|
r"""If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools."""
|
|
280
282
|
tools: NotRequired[List[ToolsModelTypedDict]]
|
|
@@ -291,6 +293,9 @@ class Settings(BaseModel):
|
|
|
291
293
|
max_execution_time: Optional[int] = 600
|
|
292
294
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
293
295
|
|
|
296
|
+
max_cost: Optional[float] = 0
|
|
297
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
298
|
+
|
|
294
299
|
tool_approval_required: Optional[ToolApprovalRequired] = "respect_tool"
|
|
295
300
|
r"""If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools."""
|
|
296
301
|
|
|
@@ -308,6 +313,7 @@ class Settings(BaseModel):
|
|
|
308
313
|
[
|
|
309
314
|
"max_iterations",
|
|
310
315
|
"max_execution_time",
|
|
316
|
+
"max_cost",
|
|
311
317
|
"tool_approval_required",
|
|
312
318
|
"tools",
|
|
313
319
|
"evaluators",
|
|
@@ -104,7 +104,7 @@ class ConversationResponse(BaseModel):
|
|
|
104
104
|
r"""Unix timestamp in milliseconds when the conversation was last modified."""
|
|
105
105
|
|
|
106
106
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
107
|
-
"
|
|
107
|
+
"conv_01kgezrcbqgmkvf9jh1pp6b15f"
|
|
108
108
|
)
|
|
109
109
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
110
110
|
|
|
@@ -110,7 +110,7 @@ class ConversationWithMessagesResponse(BaseModel):
|
|
|
110
110
|
r"""Conversation messages ordered chronologically (oldest first)."""
|
|
111
111
|
|
|
112
112
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
113
|
-
"
|
|
113
|
+
"conv_01kgezrcbx4rbctwtc9nf16yt0"
|
|
114
114
|
)
|
|
115
115
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
116
116
|
|
|
@@ -2531,6 +2531,8 @@ class CreateAgentRequestSettingsTypedDict(TypedDict):
|
|
|
2531
2531
|
r"""Maximum iterations(llm calls) before the agent will stop executing."""
|
|
2532
2532
|
max_execution_time: NotRequired[int]
|
|
2533
2533
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
2534
|
+
max_cost: NotRequired[float]
|
|
2535
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
2534
2536
|
tool_approval_required: NotRequired[CreateAgentRequestToolApprovalRequired]
|
|
2535
2537
|
r"""If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools."""
|
|
2536
2538
|
tools: NotRequired[List[AgentToolInputCRUDTypedDict]]
|
|
@@ -2550,6 +2552,9 @@ class CreateAgentRequestSettings(BaseModel):
|
|
|
2550
2552
|
max_execution_time: Optional[int] = 600
|
|
2551
2553
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
2552
2554
|
|
|
2555
|
+
max_cost: Optional[float] = 0
|
|
2556
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
2557
|
+
|
|
2553
2558
|
tool_approval_required: Optional[CreateAgentRequestToolApprovalRequired] = (
|
|
2554
2559
|
"respect_tool"
|
|
2555
2560
|
)
|
|
@@ -2570,6 +2575,7 @@ class CreateAgentRequestSettings(BaseModel):
|
|
|
2570
2575
|
[
|
|
2571
2576
|
"max_iterations",
|
|
2572
2577
|
"max_execution_time",
|
|
2578
|
+
"max_cost",
|
|
2573
2579
|
"tool_approval_required",
|
|
2574
2580
|
"tools",
|
|
2575
2581
|
"evaluators",
|
|
@@ -2943,6 +2949,8 @@ class CreateAgentRequestAgentsSettingsTypedDict(TypedDict):
|
|
|
2943
2949
|
r"""Maximum iterations(llm calls) before the agent will stop executing."""
|
|
2944
2950
|
max_execution_time: NotRequired[int]
|
|
2945
2951
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
2952
|
+
max_cost: NotRequired[float]
|
|
2953
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
2946
2954
|
tool_approval_required: NotRequired[CreateAgentRequestAgentsToolApprovalRequired]
|
|
2947
2955
|
r"""If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools."""
|
|
2948
2956
|
tools: NotRequired[List[CreateAgentRequestToolsTypedDict]]
|
|
@@ -2959,6 +2967,9 @@ class CreateAgentRequestAgentsSettings(BaseModel):
|
|
|
2959
2967
|
max_execution_time: Optional[int] = 600
|
|
2960
2968
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
2961
2969
|
|
|
2970
|
+
max_cost: Optional[float] = 0
|
|
2971
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
2972
|
+
|
|
2962
2973
|
tool_approval_required: Optional[CreateAgentRequestAgentsToolApprovalRequired] = (
|
|
2963
2974
|
"respect_tool"
|
|
2964
2975
|
)
|
|
@@ -2978,6 +2989,7 @@ class CreateAgentRequestAgentsSettings(BaseModel):
|
|
|
2978
2989
|
[
|
|
2979
2990
|
"max_iterations",
|
|
2980
2991
|
"max_execution_time",
|
|
2992
|
+
"max_cost",
|
|
2981
2993
|
"tool_approval_required",
|
|
2982
2994
|
"tools",
|
|
2983
2995
|
"evaluators",
|
|
@@ -132,7 +132,7 @@ class CreateContactResponseBody(BaseModel):
|
|
|
132
132
|
created: Optional[datetime] = None
|
|
133
133
|
r"""The date and time the resource was created"""
|
|
134
134
|
|
|
135
|
-
updated: Optional[datetime] = parse_datetime("2026-02-
|
|
135
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
136
136
|
r"""The date and time the resource was last updated"""
|
|
137
137
|
|
|
138
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_01kgezrcbs41m77t64a98xet1e"
|
|
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_01kgezrccwp2qfe3e7p8050hr8"
|
|
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_01kgezrccpz7wh7gzm7wsyhv7r"
|
|
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-02-
|
|
1437
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-02-02T10:53:13.684Z")
|
|
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-02-
|
|
1505
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-02-02T10:53:13.683Z")
|
|
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-02-
|
|
1573
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-02-02T10:53:13.682Z")
|
|
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-02-
|
|
1668
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
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-02-
|
|
97
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
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
|
+
"01KGEZRCYMJT7GXDPG83CKW44V"
|
|
318
318
|
)
|
|
319
319
|
r"""The unique identifier of the data source"""
|
|
320
320
|
|
|
@@ -884,9 +884,9 @@ class Typescript(BaseModel):
|
|
|
884
884
|
|
|
885
885
|
key: str
|
|
886
886
|
|
|
887
|
-
created: Optional[str] = "2026-02-
|
|
887
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
888
888
|
|
|
889
|
-
updated: Optional[str] = "2026-02-
|
|
889
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
890
890
|
|
|
891
891
|
guardrail_config: Optional[
|
|
892
892
|
CreateEvalResponseBodyEvalsResponse200ApplicationJSON7GuardrailConfig
|
|
@@ -1080,9 +1080,9 @@ class Ragas(BaseModel):
|
|
|
1080
1080
|
|
|
1081
1081
|
model: str
|
|
1082
1082
|
|
|
1083
|
-
created: Optional[str] = "2026-02-
|
|
1083
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1084
1084
|
|
|
1085
|
-
updated: Optional[str] = "2026-02-
|
|
1085
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1086
1086
|
|
|
1087
1087
|
guardrail_config: Optional[
|
|
1088
1088
|
CreateEvalResponseBodyEvalsResponse200ApplicationJSONGuardrailConfig
|
|
@@ -1775,9 +1775,9 @@ class CreateEvalResponseBodyFunction(BaseModel):
|
|
|
1775
1775
|
|
|
1776
1776
|
key: str
|
|
1777
1777
|
|
|
1778
|
-
created: Optional[str] = "2026-02-
|
|
1778
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1779
1779
|
|
|
1780
|
-
updated: Optional[str] = "2026-02-
|
|
1780
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1781
1781
|
|
|
1782
1782
|
guardrail_config: Optional[
|
|
1783
1783
|
CreateEvalResponseBodyEvalsResponse200GuardrailConfig
|
|
@@ -1952,9 +1952,9 @@ class ResponseBodyPython(BaseModel):
|
|
|
1952
1952
|
|
|
1953
1953
|
key: str
|
|
1954
1954
|
|
|
1955
|
-
created: Optional[str] = "2026-02-
|
|
1955
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1956
1956
|
|
|
1957
|
-
updated: Optional[str] = "2026-02-
|
|
1957
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1958
1958
|
|
|
1959
1959
|
guardrail_config: Optional[CreateEvalResponseBodyEvalsResponseGuardrailConfig] = (
|
|
1960
1960
|
None
|
|
@@ -2134,9 +2134,9 @@ class ResponseBodyHTTP(BaseModel):
|
|
|
2134
2134
|
|
|
2135
2135
|
key: str
|
|
2136
2136
|
|
|
2137
|
-
created: Optional[str] = "2026-02-
|
|
2137
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
2138
2138
|
|
|
2139
|
-
updated: Optional[str] = "2026-02-
|
|
2139
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
2140
2140
|
|
|
2141
2141
|
guardrail_config: Optional[CreateEvalResponseBodyEvalsGuardrailConfig] = None
|
|
2142
2142
|
|
|
@@ -2287,9 +2287,9 @@ class ResponseBodyJSON(BaseModel):
|
|
|
2287
2287
|
|
|
2288
2288
|
key: str
|
|
2289
2289
|
|
|
2290
|
-
created: Optional[str] = "2026-02-
|
|
2290
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
2291
2291
|
|
|
2292
|
-
updated: Optional[str] = "2026-02-
|
|
2292
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
2293
2293
|
|
|
2294
2294
|
guardrail_config: Optional[CreateEvalResponseBodyGuardrailConfig] = None
|
|
2295
2295
|
|
|
@@ -2441,9 +2441,9 @@ class ResponseBodyLLM(BaseModel):
|
|
|
2441
2441
|
|
|
2442
2442
|
model: str
|
|
2443
2443
|
|
|
2444
|
-
created: Optional[str] = "2026-02-
|
|
2444
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
2445
2445
|
|
|
2446
|
-
updated: Optional[str] = "2026-02-
|
|
2446
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
2447
2447
|
|
|
2448
2448
|
guardrail_config: Optional[ResponseBodyGuardrailConfig] = None
|
|
2449
2449
|
|
|
@@ -137,7 +137,7 @@ class CreateIdentityResponseBody(BaseModel):
|
|
|
137
137
|
created: Optional[datetime] = None
|
|
138
138
|
r"""The date and time the resource was created"""
|
|
139
139
|
|
|
140
|
-
updated: Optional[datetime] = parse_datetime("2026-02-
|
|
140
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
141
141
|
r"""The date and time the resource was last updated"""
|
|
142
142
|
|
|
143
143
|
@model_serializer(mode="wrap")
|
|
@@ -1068,7 +1068,7 @@ class ResponseBodyCodeExecutionTool(BaseModel):
|
|
|
1068
1068
|
code_tool: ResponseBodyCodeTool
|
|
1069
1069
|
|
|
1070
1070
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1071
|
-
"
|
|
1071
|
+
"tool_01KGEZRCSA9TTDB7YVX00QC4KY"
|
|
1072
1072
|
)
|
|
1073
1073
|
|
|
1074
1074
|
display_name: Optional[str] = None
|
|
@@ -1195,7 +1195,7 @@ class ResponseBodyTools(BaseModel):
|
|
|
1195
1195
|
|
|
1196
1196
|
schema_: Annotated[CreateToolResponseBodySchema, pydantic.Field(alias="schema")]
|
|
1197
1197
|
|
|
1198
|
-
id: Optional[str] = "
|
|
1198
|
+
id: Optional[str] = "01KGEZRCS9MSQ80QDXVYMM2K43"
|
|
1199
1199
|
|
|
1200
1200
|
description: Optional[str] = None
|
|
1201
1201
|
|
|
@@ -1326,7 +1326,7 @@ class ResponseBodyMCPTool(BaseModel):
|
|
|
1326
1326
|
mcp: ResponseBodyMcp
|
|
1327
1327
|
|
|
1328
1328
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1329
|
-
"
|
|
1329
|
+
"tool_01KGEZRCS7SZB81CH2G2EE6JBX"
|
|
1330
1330
|
)
|
|
1331
1331
|
|
|
1332
1332
|
display_name: Optional[str] = None
|
|
@@ -1627,7 +1627,7 @@ class ResponseBodyHTTPTool(BaseModel):
|
|
|
1627
1627
|
http: CreateToolResponseBodyHTTP
|
|
1628
1628
|
|
|
1629
1629
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1630
|
-
"
|
|
1630
|
+
"tool_01KGEZRCS41SKE1QB06QKR97PJ"
|
|
1631
1631
|
)
|
|
1632
1632
|
|
|
1633
1633
|
display_name: Optional[str] = None
|
|
@@ -1822,7 +1822,7 @@ class ResponseBodyJSONSchemaTool(BaseModel):
|
|
|
1822
1822
|
json_schema: ResponseBodyJSONSchema
|
|
1823
1823
|
|
|
1824
1824
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1825
|
-
"
|
|
1825
|
+
"tool_01KGEZRCS2Y6WTJQBEW0NNHSKH"
|
|
1826
1826
|
)
|
|
1827
1827
|
|
|
1828
1828
|
display_name: Optional[str] = None
|
|
@@ -2021,7 +2021,7 @@ class ResponseBodyFunctionTool(BaseModel):
|
|
|
2021
2021
|
function: CreateToolResponseBodyFunction
|
|
2022
2022
|
|
|
2023
2023
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
2024
|
-
"
|
|
2024
|
+
"tool_01KGEZRCS05GWQ0091N8P0VBVA"
|
|
2025
2025
|
)
|
|
2026
2026
|
|
|
2027
2027
|
display_name: Optional[str] = None
|
orq_ai_sdk/models/filegetop.py
CHANGED
|
@@ -64,7 +64,7 @@ class FileGetResponseBody(BaseModel):
|
|
|
64
64
|
workspace_id: str
|
|
65
65
|
r"""The id of the resource"""
|
|
66
66
|
|
|
67
|
-
created: Optional[datetime] = parse_datetime("2026-02-
|
|
67
|
+
created: Optional[datetime] = parse_datetime("2026-02-02T10:53:03.498Z")
|
|
68
68
|
r"""The date and time the resource was created"""
|
|
69
69
|
|
|
70
70
|
@model_serializer(mode="wrap")
|
orq_ai_sdk/models/filelistop.py
CHANGED
|
@@ -96,7 +96,7 @@ class FileListData(BaseModel):
|
|
|
96
96
|
workspace_id: str
|
|
97
97
|
r"""The id of the resource"""
|
|
98
98
|
|
|
99
|
-
created: Optional[datetime] = parse_datetime("2026-02-
|
|
99
|
+
created: Optional[datetime] = parse_datetime("2026-02-02T10:53:03.498Z")
|
|
100
100
|
r"""The date and time the resource was created"""
|
|
101
101
|
|
|
102
102
|
@model_serializer(mode="wrap")
|
|
@@ -134,7 +134,7 @@ class FileUploadResponseBody(BaseModel):
|
|
|
134
134
|
workspace_id: str
|
|
135
135
|
r"""The id of the resource"""
|
|
136
136
|
|
|
137
|
-
created: Optional[datetime] = parse_datetime("2026-02-
|
|
137
|
+
created: Optional[datetime] = parse_datetime("2026-02-02T10:53:03.498Z")
|
|
138
138
|
r"""The date and time the resource was created"""
|
|
139
139
|
|
|
140
140
|
@model_serializer(mode="wrap")
|
|
@@ -186,7 +186,7 @@ class GenerateConversationNameResponseBody(BaseModel):
|
|
|
186
186
|
r"""Unix timestamp in milliseconds when the conversation was last modified."""
|
|
187
187
|
|
|
188
188
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
189
|
-
"
|
|
189
|
+
"conv_01kgezrcbv9kr47fbktby5vf17"
|
|
190
190
|
)
|
|
191
191
|
r"""Unique conversation identifier with `conv_` prefix."""
|
|
192
192
|
|
|
@@ -209,7 +209,7 @@ class DataCodeExecutionTool(BaseModel):
|
|
|
209
209
|
code_tool: DataCodeTool
|
|
210
210
|
|
|
211
211
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
212
|
-
"
|
|
212
|
+
"tool_01KGEZRCR90E6C4TKGHJ1BCRDT"
|
|
213
213
|
)
|
|
214
214
|
|
|
215
215
|
display_name: Optional[str] = None
|
|
@@ -336,7 +336,7 @@ class DataTools(BaseModel):
|
|
|
336
336
|
|
|
337
337
|
schema_: Annotated[GetAllToolsDataSchema, pydantic.Field(alias="schema")]
|
|
338
338
|
|
|
339
|
-
id: Optional[str] = "
|
|
339
|
+
id: Optional[str] = "01KGEZRCR8AB83VXVHP43A0QK4"
|
|
340
340
|
|
|
341
341
|
description: Optional[str] = None
|
|
342
342
|
|
|
@@ -467,7 +467,7 @@ class DataMCPTool(BaseModel):
|
|
|
467
467
|
mcp: DataMcp
|
|
468
468
|
|
|
469
469
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
470
|
-
"
|
|
470
|
+
"tool_01KGEZRCR7Q7XKM4HJFQCGEN6V"
|
|
471
471
|
)
|
|
472
472
|
|
|
473
473
|
display_name: Optional[str] = None
|
|
@@ -765,7 +765,7 @@ class DataHTTPTool(BaseModel):
|
|
|
765
765
|
http: GetAllToolsDataHTTP
|
|
766
766
|
|
|
767
767
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
768
|
-
"
|
|
768
|
+
"tool_01KGEZRCR5Z2QVMW6Y6ET64FAQ"
|
|
769
769
|
)
|
|
770
770
|
|
|
771
771
|
display_name: Optional[str] = None
|
|
@@ -960,7 +960,7 @@ class DataJSONSchemaTool(BaseModel):
|
|
|
960
960
|
json_schema: DataJSONSchema
|
|
961
961
|
|
|
962
962
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
963
|
-
"
|
|
963
|
+
"tool_01KGEZRCR3DCAQX75DE4474JYJ"
|
|
964
964
|
)
|
|
965
965
|
|
|
966
966
|
display_name: Optional[str] = None
|
|
@@ -1159,7 +1159,7 @@ class DataFunctionTool(BaseModel):
|
|
|
1159
1159
|
function: GetAllToolsDataFunction
|
|
1160
1160
|
|
|
1161
1161
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
1162
|
-
"
|
|
1162
|
+
"tool_01KGEZRCR2CP9573C87DV9MVBP"
|
|
1163
1163
|
)
|
|
1164
1164
|
|
|
1165
1165
|
display_name: Optional[str] = None
|
orq_ai_sdk/models/getevalsop.py
CHANGED
|
@@ -221,9 +221,9 @@ class DataTypescript(BaseModel):
|
|
|
221
221
|
|
|
222
222
|
key: str
|
|
223
223
|
|
|
224
|
-
created: Optional[str] = "2026-02-
|
|
224
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
225
225
|
|
|
226
|
-
updated: Optional[str] = "2026-02-
|
|
226
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
227
227
|
|
|
228
228
|
guardrail_config: Optional[
|
|
229
229
|
GetEvalsDataEvalsResponse200ApplicationJSONGuardrailConfig
|
|
@@ -397,9 +397,9 @@ class DataRagas(BaseModel):
|
|
|
397
397
|
|
|
398
398
|
model: str
|
|
399
399
|
|
|
400
|
-
created: Optional[str] = "2026-02-
|
|
400
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
401
401
|
|
|
402
|
-
updated: Optional[str] = "2026-02-
|
|
402
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
403
403
|
|
|
404
404
|
guardrail_config: Optional[GetEvalsDataEvalsResponse200GuardrailConfig] = None
|
|
405
405
|
|
|
@@ -1072,9 +1072,9 @@ class DataFunction(BaseModel):
|
|
|
1072
1072
|
|
|
1073
1073
|
key: str
|
|
1074
1074
|
|
|
1075
|
-
created: Optional[str] = "2026-02-
|
|
1075
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1076
1076
|
|
|
1077
|
-
updated: Optional[str] = "2026-02-
|
|
1077
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1078
1078
|
|
|
1079
1079
|
guardrail_config: Optional[GetEvalsDataEvalsResponseGuardrailConfig] = None
|
|
1080
1080
|
|
|
@@ -1227,9 +1227,9 @@ class DataPython(BaseModel):
|
|
|
1227
1227
|
|
|
1228
1228
|
key: str
|
|
1229
1229
|
|
|
1230
|
-
created: Optional[str] = "2026-02-
|
|
1230
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1231
1231
|
|
|
1232
|
-
updated: Optional[str] = "2026-02-
|
|
1232
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1233
1233
|
|
|
1234
1234
|
guardrail_config: Optional[GetEvalsDataEvalsGuardrailConfig] = None
|
|
1235
1235
|
|
|
@@ -1392,9 +1392,9 @@ class DataHTTP(BaseModel):
|
|
|
1392
1392
|
|
|
1393
1393
|
key: str
|
|
1394
1394
|
|
|
1395
|
-
created: Optional[str] = "2026-02-
|
|
1395
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1396
1396
|
|
|
1397
|
-
updated: Optional[str] = "2026-02-
|
|
1397
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1398
1398
|
|
|
1399
1399
|
guardrail_config: Optional[GetEvalsDataGuardrailConfig] = None
|
|
1400
1400
|
|
|
@@ -1603,9 +1603,9 @@ class DataJSON(BaseModel):
|
|
|
1603
1603
|
|
|
1604
1604
|
key: str
|
|
1605
1605
|
|
|
1606
|
-
created: Optional[str] = "2026-02-
|
|
1606
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1607
1607
|
|
|
1608
|
-
updated: Optional[str] = "2026-02-
|
|
1608
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1609
1609
|
|
|
1610
1610
|
guardrail_config: Optional[DataGuardrailConfig] = None
|
|
1611
1611
|
|
|
@@ -1735,9 +1735,9 @@ class DataLLM(BaseModel):
|
|
|
1735
1735
|
|
|
1736
1736
|
model: str
|
|
1737
1737
|
|
|
1738
|
-
created: Optional[str] = "2026-02-
|
|
1738
|
+
created: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1739
1739
|
|
|
1740
|
-
updated: Optional[str] = "2026-02-
|
|
1740
|
+
updated: Optional[str] = "2026-02-02T10:53:02.028Z"
|
|
1741
1741
|
|
|
1742
1742
|
guardrail_config: Optional[
|
|
1743
1743
|
GetEvalsDataEvalsResponse200ApplicationJSONResponseBodyGuardrailConfig
|
|
@@ -267,6 +267,8 @@ class ListAgentsSettingsTypedDict(TypedDict):
|
|
|
267
267
|
r"""Maximum iterations(llm calls) before the agent will stop executing."""
|
|
268
268
|
max_execution_time: NotRequired[int]
|
|
269
269
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
270
|
+
max_cost: NotRequired[float]
|
|
271
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
270
272
|
tool_approval_required: NotRequired[ListAgentsToolApprovalRequired]
|
|
271
273
|
r"""If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools."""
|
|
272
274
|
tools: NotRequired[List[ListAgentsToolsTypedDict]]
|
|
@@ -283,6 +285,9 @@ class ListAgentsSettings(BaseModel):
|
|
|
283
285
|
max_execution_time: Optional[int] = 600
|
|
284
286
|
r"""Maximum time (in seconds) for the agent thinking process. This does not include the time for tool calls and sub agent calls. It will be loosely enforced, the in progress LLM calls will not be terminated and the last assistant message will be returned."""
|
|
285
287
|
|
|
288
|
+
max_cost: Optional[float] = 0
|
|
289
|
+
r"""Maximum cost in USD for the agent execution. When the accumulated cost exceeds this limit, the agent will stop executing. Set to 0 for unlimited. Only supported in v3 responses"""
|
|
290
|
+
|
|
286
291
|
tool_approval_required: Optional[ListAgentsToolApprovalRequired] = "respect_tool"
|
|
287
292
|
r"""If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools."""
|
|
288
293
|
|
|
@@ -300,6 +305,7 @@ class ListAgentsSettings(BaseModel):
|
|
|
300
305
|
[
|
|
301
306
|
"max_iterations",
|
|
302
307
|
"max_execution_time",
|
|
308
|
+
"max_cost",
|
|
303
309
|
"tool_approval_required",
|
|
304
310
|
"tools",
|
|
305
311
|
"evaluators",
|
|
@@ -776,7 +776,7 @@ class ListDatasetDatapointsEvaluations3(BaseModel):
|
|
|
776
776
|
|
|
777
777
|
source: Optional[ListDatasetDatapointsEvaluationsDatasetsSource] = "orq"
|
|
778
778
|
|
|
779
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-02-
|
|
779
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-02-02T10:53:13.659Z")
|
|
780
780
|
r"""The date and time the item was reviewed"""
|
|
781
781
|
|
|
782
782
|
@model_serializer(mode="wrap")
|
|
@@ -846,7 +846,7 @@ class ListDatasetDatapointsEvaluations2(BaseModel):
|
|
|
846
846
|
|
|
847
847
|
source: Optional[ListDatasetDatapointsEvaluationsSource] = "orq"
|
|
848
848
|
|
|
849
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-02-
|
|
849
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-02-02T10:53:13.658Z")
|
|
850
850
|
r"""The date and time the item was reviewed"""
|
|
851
851
|
|
|
852
852
|
@model_serializer(mode="wrap")
|
|
@@ -914,7 +914,7 @@ class ListDatasetDatapointsEvaluations1(BaseModel):
|
|
|
914
914
|
|
|
915
915
|
source: Optional[ListDatasetDatapointsEvaluationsDatasetsResponseSource] = "orq"
|
|
916
916
|
|
|
917
|
-
reviewed_at: Optional[datetime] = parse_datetime("2026-02-
|
|
917
|
+
reviewed_at: Optional[datetime] = parse_datetime("2026-02-02T10:53:13.658Z")
|
|
918
918
|
r"""The date and time the item was reviewed"""
|
|
919
919
|
|
|
920
920
|
@model_serializer(mode="wrap")
|
|
@@ -1013,7 +1013,7 @@ class ListDatasetDatapointsData(BaseModel):
|
|
|
1013
1013
|
created: Optional[datetime] = None
|
|
1014
1014
|
r"""The date and time the resource was created"""
|
|
1015
1015
|
|
|
1016
|
-
updated: Optional[datetime] = parse_datetime("2026-02-
|
|
1016
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
1017
1017
|
r"""The date and time the resource was last updated"""
|
|
1018
1018
|
|
|
1019
1019
|
@model_serializer(mode="wrap")
|
|
@@ -113,7 +113,7 @@ class ListDatasetsData(BaseModel):
|
|
|
113
113
|
created: Optional[datetime] = None
|
|
114
114
|
r"""The date and time the resource was created"""
|
|
115
115
|
|
|
116
|
-
updated: Optional[datetime] = parse_datetime("2026-02-
|
|
116
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
117
117
|
r"""The date and time the resource was last updated"""
|
|
118
118
|
|
|
119
119
|
@model_serializer(mode="wrap")
|
|
@@ -148,7 +148,7 @@ class ListDatasourcesData(BaseModel):
|
|
|
148
148
|
r"""The number of chunks in the datasource"""
|
|
149
149
|
|
|
150
150
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
151
|
-
"
|
|
151
|
+
"01KGEZRCYHY3RT3E5EGGE20QYJ"
|
|
152
152
|
)
|
|
153
153
|
r"""The unique identifier of the data source"""
|
|
154
154
|
|
|
@@ -208,7 +208,7 @@ class ListIdentitiesData(BaseModel):
|
|
|
208
208
|
created: Optional[datetime] = None
|
|
209
209
|
r"""The date and time the resource was created"""
|
|
210
210
|
|
|
211
|
-
updated: Optional[datetime] = parse_datetime("2026-02-
|
|
211
|
+
updated: Optional[datetime] = parse_datetime("2026-02-02T10:53:00.225Z")
|
|
212
212
|
r"""The date and time the resource was last updated"""
|
|
213
213
|
|
|
214
214
|
@model_serializer(mode="wrap")
|
|
@@ -40,7 +40,7 @@ class PartReasoningPart(BaseModel):
|
|
|
40
40
|
r"""The reasoning or thought process behind the response. Used for chain-of-thought or extended thinking."""
|
|
41
41
|
|
|
42
42
|
id: Annotated[Optional[str], pydantic.Field(alias="_id")] = (
|
|
43
|
-
"
|
|
43
|
+
"reasoning_01kgezrc0k66ypsq9daes8dt6x"
|
|
44
44
|
)
|
|
45
45
|
r"""Unique identifier for the part. Format: reasoning_{ulid} (e.g., reasoning_01hxyz...)"""
|
|
46
46
|
|