agentex-sdk 0.7.4__py3-none-any.whl → 0.8.1__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.
- agentex/_base_client.py +1 -1
- agentex/_client.py +38 -1
- agentex/_version.py +1 -1
- agentex/resources/messages/messages.py +1996 -4
- agentex/types/__init__.py +2 -2
- agentex/types/message_list_paginated_params.py +500 -1
- agentex/types/message_list_params.py +500 -1
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/METADATA +1 -1
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/RECORD +12 -12
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/WHEEL +0 -0
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/entry_points.txt +0 -0
- {agentex_sdk-0.7.4.dist-info → agentex_sdk-0.8.1.dist-info}/licenses/LICENSE +0 -0
agentex/types/__init__.py
CHANGED
|
@@ -62,9 +62,9 @@ from .agent_rpc_by_name_params import AgentRpcByNameParams as AgentRpcByNamePara
|
|
|
62
62
|
from .task_message_content_param import TaskMessageContentParam as TaskMessageContentParam
|
|
63
63
|
from .tool_request_content_param import ToolRequestContentParam as ToolRequestContentParam
|
|
64
64
|
from .tool_response_content_param import ToolResponseContentParam as ToolResponseContentParam
|
|
65
|
-
from .deployment_history_list_params import DeploymentHistoryListParams as DeploymentHistoryListParams
|
|
66
|
-
from .deployment_history_list_response import DeploymentHistoryListResponse as DeploymentHistoryListResponse
|
|
67
65
|
from .task_retrieve_by_name_params import TaskRetrieveByNameParams as TaskRetrieveByNameParams
|
|
68
66
|
from .message_list_paginated_params import MessageListPaginatedParams as MessageListPaginatedParams
|
|
67
|
+
from .deployment_history_list_params import DeploymentHistoryListParams as DeploymentHistoryListParams
|
|
69
68
|
from .task_retrieve_by_name_response import TaskRetrieveByNameResponse as TaskRetrieveByNameResponse
|
|
70
69
|
from .message_list_paginated_response import MessageListPaginatedResponse as MessageListPaginatedResponse
|
|
70
|
+
from .deployment_history_list_response import DeploymentHistoryListResponse as DeploymentHistoryListResponse
|
|
@@ -17,6 +17,505 @@ class MessageListPaginatedParams(TypedDict, total=False):
|
|
|
17
17
|
direction: Literal["older", "newer"]
|
|
18
18
|
|
|
19
19
|
filters: Optional[str]
|
|
20
|
-
"""JSON-encoded
|
|
20
|
+
"""JSON-encoded array of TaskMessageEntityFilter objects.
|
|
21
|
+
|
|
22
|
+
Schema: {
|
|
23
|
+
"$defs": {
|
|
24
|
+
"DataContentEntityOptional": {
|
|
25
|
+
"properties": {
|
|
26
|
+
"type": {
|
|
27
|
+
"anyOf": [
|
|
28
|
+
{
|
|
29
|
+
"const": "data",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "null"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"default": null,
|
|
37
|
+
"description": "The type of the message, in this case `data`.",
|
|
38
|
+
"title": "Type"
|
|
39
|
+
},
|
|
40
|
+
"author": {
|
|
41
|
+
"anyOf": [
|
|
42
|
+
{
|
|
43
|
+
"$ref":
|
|
44
|
+
"#/$defs/MessageAuthor"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "null"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
50
|
+
"default": null,
|
|
51
|
+
"description": "The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`."
|
|
52
|
+
},
|
|
53
|
+
"style": {
|
|
54
|
+
"anyOf": [
|
|
55
|
+
{
|
|
56
|
+
"$ref":
|
|
57
|
+
"#/$defs/MessageStyle"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "null"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"default": null,
|
|
64
|
+
"description": "The style of the message. This is used by the client to determine how to display the message."
|
|
65
|
+
},
|
|
66
|
+
"data": {
|
|
67
|
+
"anyOf": [
|
|
68
|
+
{
|
|
69
|
+
"additionalProperties": true,
|
|
70
|
+
"type": "object"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"type": "null"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"default": null,
|
|
77
|
+
"description": "The contents of the data message.",
|
|
78
|
+
"title": "Data"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"title": "DataContentEntityOptional",
|
|
82
|
+
"type": "object"
|
|
83
|
+
},
|
|
84
|
+
"FileAttachmentEntity": {
|
|
85
|
+
"description": "Represents a file attachment in messages.",
|
|
86
|
+
"properties": {
|
|
87
|
+
"file_id": {
|
|
88
|
+
"description": "The unique ID of the attached file",
|
|
89
|
+
"title": "File Id",
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"name": {
|
|
93
|
+
"description": "The name of the file",
|
|
94
|
+
"title": "Name",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
"size": {
|
|
98
|
+
"description": "The size of the file in bytes",
|
|
99
|
+
"title": "Size",
|
|
100
|
+
"type": "integer"
|
|
101
|
+
},
|
|
102
|
+
"type": {
|
|
103
|
+
"description": "The MIME type or content type of the file",
|
|
104
|
+
"title": "Type",
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": [
|
|
109
|
+
"file_id",
|
|
110
|
+
"name",
|
|
111
|
+
"size",
|
|
112
|
+
"type"
|
|
113
|
+
],
|
|
114
|
+
"title": "FileAttachmentEntity",
|
|
115
|
+
"type": "object"
|
|
116
|
+
},
|
|
117
|
+
"MessageAuthor": {
|
|
118
|
+
"enum": [
|
|
119
|
+
"user",
|
|
120
|
+
"agent"
|
|
121
|
+
],
|
|
122
|
+
"title": "MessageAuthor",
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"MessageStyle": {
|
|
126
|
+
"enum": [
|
|
127
|
+
"static",
|
|
128
|
+
"active"
|
|
129
|
+
],
|
|
130
|
+
"title": "MessageStyle",
|
|
131
|
+
"type": "string"
|
|
132
|
+
},
|
|
133
|
+
"ReasoningContentEntityOptional": {
|
|
134
|
+
"properties": {
|
|
135
|
+
"type": {
|
|
136
|
+
"anyOf": [
|
|
137
|
+
{
|
|
138
|
+
"const": "reasoning",
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"type": "null"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"default": null,
|
|
146
|
+
"description": "The type of the message, in this case `reasoning`.",
|
|
147
|
+
"title": "Type"
|
|
148
|
+
},
|
|
149
|
+
"author": {
|
|
150
|
+
"anyOf": [
|
|
151
|
+
{
|
|
152
|
+
"$ref":
|
|
153
|
+
"#/$defs/MessageAuthor"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"type": "null"
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
"default": null,
|
|
160
|
+
"description": "The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`."
|
|
161
|
+
},
|
|
162
|
+
"style": {
|
|
163
|
+
"anyOf": [
|
|
164
|
+
{
|
|
165
|
+
"$ref":
|
|
166
|
+
"#/$defs/MessageStyle"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "null"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"default": null,
|
|
173
|
+
"description": "The style of the message. This is used by the client to determine how to display the message."
|
|
174
|
+
},
|
|
175
|
+
"summary": {
|
|
176
|
+
"anyOf": [
|
|
177
|
+
{
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"type": "array"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"type": "null"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"default": null,
|
|
188
|
+
"description": "A list of short reasoning summaries",
|
|
189
|
+
"title": "Summary"
|
|
190
|
+
},
|
|
191
|
+
"content": {
|
|
192
|
+
"anyOf": [
|
|
193
|
+
{
|
|
194
|
+
"items": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
},
|
|
197
|
+
"type": "array"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "null"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"default": null,
|
|
204
|
+
"description": "The reasoning content or chain-of-thought text",
|
|
205
|
+
"title": "Content"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"title": "ReasoningContentEntityOptional",
|
|
209
|
+
"type": "object"
|
|
210
|
+
},
|
|
211
|
+
"TextContentEntityOptional": {
|
|
212
|
+
"properties": {
|
|
213
|
+
"type": {
|
|
214
|
+
"anyOf": [
|
|
215
|
+
{
|
|
216
|
+
"const": "text",
|
|
217
|
+
"type": "string"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "null"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"default": null,
|
|
224
|
+
"description": "The type of the message, in this case `text`.",
|
|
225
|
+
"title": "Type"
|
|
226
|
+
},
|
|
227
|
+
"author": {
|
|
228
|
+
"anyOf": [
|
|
229
|
+
{
|
|
230
|
+
"$ref":
|
|
231
|
+
"#/$defs/MessageAuthor"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"type": "null"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"default": null,
|
|
238
|
+
"description": "The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`."
|
|
239
|
+
},
|
|
240
|
+
"style": {
|
|
241
|
+
"anyOf": [
|
|
242
|
+
{
|
|
243
|
+
"$ref":
|
|
244
|
+
"#/$defs/MessageStyle"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"type": "null"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"default": null,
|
|
251
|
+
"description": "The style of the message. This is used by the client to determine how to display the message."
|
|
252
|
+
},
|
|
253
|
+
"format": {
|
|
254
|
+
"anyOf": [
|
|
255
|
+
{
|
|
256
|
+
"$ref":
|
|
257
|
+
"#/$defs/TextFormat"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"type": "null"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"default": null,
|
|
264
|
+
"description": "The format of the message. This is used by the client to determine how to display the message."
|
|
265
|
+
},
|
|
266
|
+
"content": {
|
|
267
|
+
"anyOf": [
|
|
268
|
+
{
|
|
269
|
+
"type": "string"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"type": "null"
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
"default": null,
|
|
276
|
+
"description": "The contents of the text message.",
|
|
277
|
+
"title": "Content"
|
|
278
|
+
},
|
|
279
|
+
"attachments": {
|
|
280
|
+
"anyOf": [
|
|
281
|
+
{
|
|
282
|
+
"items": {
|
|
283
|
+
"$ref":
|
|
284
|
+
"#/$defs/FileAttachmentEntity"
|
|
285
|
+
},
|
|
286
|
+
"type": "array"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"type": "null"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"default": null,
|
|
293
|
+
"description": "Optional list of file attachments with structured metadata.",
|
|
294
|
+
"title": "Attachments"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"title": "TextContentEntityOptional",
|
|
298
|
+
"type": "object"
|
|
299
|
+
},
|
|
300
|
+
"TextFormat": {
|
|
301
|
+
"enum": [
|
|
302
|
+
"markdown",
|
|
303
|
+
"plain",
|
|
304
|
+
"code"
|
|
305
|
+
],
|
|
306
|
+
"title": "TextFormat",
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
"ToolRequestContentEntityOptional": {
|
|
310
|
+
"properties": {
|
|
311
|
+
"type": {
|
|
312
|
+
"anyOf": [
|
|
313
|
+
{
|
|
314
|
+
"const": "tool_request",
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"type": "null"
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
"default": null,
|
|
322
|
+
"description": "The type of the message, in this case `tool_request`.",
|
|
323
|
+
"title": "Type"
|
|
324
|
+
},
|
|
325
|
+
"author": {
|
|
326
|
+
"anyOf": [
|
|
327
|
+
{
|
|
328
|
+
"$ref":
|
|
329
|
+
"#/$defs/MessageAuthor"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"type": "null"
|
|
333
|
+
}
|
|
334
|
+
],
|
|
335
|
+
"default": null,
|
|
336
|
+
"description": "The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`."
|
|
337
|
+
},
|
|
338
|
+
"style": {
|
|
339
|
+
"anyOf": [
|
|
340
|
+
{
|
|
341
|
+
"$ref":
|
|
342
|
+
"#/$defs/MessageStyle"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"type": "null"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
"default": null,
|
|
349
|
+
"description": "The style of the message. This is used by the client to determine how to display the message."
|
|
350
|
+
},
|
|
351
|
+
"tool_call_id": {
|
|
352
|
+
"anyOf": [
|
|
353
|
+
{
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"type": "null"
|
|
358
|
+
}
|
|
359
|
+
],
|
|
360
|
+
"default": null,
|
|
361
|
+
"description": "The ID of the tool call that is being requested.",
|
|
362
|
+
"title": "Tool Call Id"
|
|
363
|
+
},
|
|
364
|
+
"name": {
|
|
365
|
+
"anyOf": [
|
|
366
|
+
{
|
|
367
|
+
"type": "string"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"type": "null"
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
"default": null,
|
|
374
|
+
"description": "The name of the tool that is being requested.",
|
|
375
|
+
"title": "Name"
|
|
376
|
+
},
|
|
377
|
+
"arguments": {
|
|
378
|
+
"anyOf": [
|
|
379
|
+
{
|
|
380
|
+
"additionalProperties": true,
|
|
381
|
+
"type": "object"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "null"
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"default": null,
|
|
388
|
+
"description": "The arguments to the tool.",
|
|
389
|
+
"title": "Arguments"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"title": "ToolRequestContentEntityOptional",
|
|
393
|
+
"type": "object"
|
|
394
|
+
},
|
|
395
|
+
"ToolResponseContentEntityOptional": {
|
|
396
|
+
"properties": {
|
|
397
|
+
"type": {
|
|
398
|
+
"anyOf": [
|
|
399
|
+
{
|
|
400
|
+
"const": "tool_response",
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"type": "null"
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"default": null,
|
|
408
|
+
"description": "The type of the message, in this case `tool_response`.",
|
|
409
|
+
"title": "Type"
|
|
410
|
+
},
|
|
411
|
+
"author": {
|
|
412
|
+
"anyOf": [
|
|
413
|
+
{
|
|
414
|
+
"$ref":
|
|
415
|
+
"#/$defs/MessageAuthor"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"type": "null"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
"default": null,
|
|
422
|
+
"description": "The role of the messages author, in this case `system`, `user`, `assistant`, or `tool`."
|
|
423
|
+
},
|
|
424
|
+
"style": {
|
|
425
|
+
"anyOf": [
|
|
426
|
+
{
|
|
427
|
+
"$ref":
|
|
428
|
+
"#/$defs/MessageStyle"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"type": "null"
|
|
432
|
+
}
|
|
433
|
+
],
|
|
434
|
+
"default": null,
|
|
435
|
+
"description": "The style of the message. This is used by the client to determine how to display the message."
|
|
436
|
+
},
|
|
437
|
+
"tool_call_id": {
|
|
438
|
+
"anyOf": [
|
|
439
|
+
{
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"type": "null"
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
"default": null,
|
|
447
|
+
"description": "The ID of the tool call that is being responded to.",
|
|
448
|
+
"title": "Tool Call Id"
|
|
449
|
+
},
|
|
450
|
+
"name": {
|
|
451
|
+
"anyOf": [
|
|
452
|
+
{
|
|
453
|
+
"type": "string"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"type": "null"
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"default": null,
|
|
460
|
+
"description": "The name of the tool that is being responded to.",
|
|
461
|
+
"title": "Name"
|
|
462
|
+
},
|
|
463
|
+
"content": {
|
|
464
|
+
"anyOf": [
|
|
465
|
+
{},
|
|
466
|
+
{
|
|
467
|
+
"type": "null"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"default": null,
|
|
471
|
+
"description": "The result of the tool.",
|
|
472
|
+
"title": "Content"
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
"title": "ToolResponseContentEntityOptional",
|
|
476
|
+
"type": "object"
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"description": "Filter model for TaskMessage - all fields optional for flexible filtering.\n\nThe `exclude` field determines whether this filter is inclusionary or exclusionary.\nWhen multiple filters are provided:\n- Inclusionary filters (exclude=False) are OR'd together\n- Exclusionary filters (exclude=True) are OR'd together and negated with $nor\n- The two groups are AND'd: (include1 OR include2) AND NOT (exclude1 OR exclude2)",
|
|
480
|
+
"properties": {
|
|
481
|
+
"content": {
|
|
482
|
+
"anyOf": [
|
|
483
|
+
{
|
|
484
|
+
"$ref":
|
|
485
|
+
"#/$defs/ToolRequestContentEntityOptional"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"$ref":
|
|
489
|
+
"#/$defs/DataContentEntityOptional"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"$ref":
|
|
493
|
+
"#/$defs/TextContentEntityOptional"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"$ref":
|
|
497
|
+
"#/$defs/ToolResponseContentEntityOptional"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
"$ref":
|
|
501
|
+
"#/$defs/ReasoningContentEntityOptional" }, { "type": "null" } ], "default":
|
|
502
|
+
null, "description": "Filter by message content", "title": "Content" },
|
|
503
|
+
"streaming_status": { "anyOf": [ { "enum": [ "IN_PROGRESS", "DONE" ], "type":
|
|
504
|
+
"string" }, { "type": "null" } ], "default": null, "description": "Filter by
|
|
505
|
+
streaming status", "title": "Streaming Status" }, "exclude": { "default": false,
|
|
506
|
+
"description": "If true, this filter excludes matching messages", "title":
|
|
507
|
+
"Exclude", "type": "boolean" } }, "title": "TaskMessageEntityFilter", "type":
|
|
508
|
+
"object" }
|
|
509
|
+
|
|
510
|
+
Each filter can include:
|
|
511
|
+
|
|
512
|
+
- `content`: Filter by message content (type, author, data fields)
|
|
513
|
+
- `streaming_status`: Filter by status ("IN_PROGRESS" or "DONE")
|
|
514
|
+
- `exclude`: If true, excludes matching messages (default: false)
|
|
515
|
+
|
|
516
|
+
Multiple filters are combined: inclusionary filters (exclude=false) are OR'd
|
|
517
|
+
together, exclusionary filters (exclude=true) are OR'd and negated, then both
|
|
518
|
+
groups are AND'd.
|
|
519
|
+
"""
|
|
21
520
|
|
|
22
521
|
limit: int
|