Skip to content

Commit 0c4448c

Browse files
authored
Merge pull request #4 from agentset-ai/speakeasy-sdk-regen-1761442906
chore: 🐝 Update SDK - Generate 0.5.0
2 parents bef9121 + 9476de5 commit 0c4448c

30 files changed

Lines changed: 712 additions & 92 deletions

.speakeasy/gen.lock

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: 465adc89-13a8-4359-8d95-e3589d612ccc
33
management:
4-
docChecksum: 846f1eaf98a95e5e7f6132ef8dcb8e09
4+
docChecksum: ac1cb860df2594590b6c4e4aad4809d3
55
docVersion: 0.0.1
6-
speakeasyVersion: 1.636.3
7-
generationVersion: 2.723.11
8-
releaseVersion: 0.4.0
9-
configChecksum: 262050d23391b93ece114beb35fa8cad
6+
speakeasyVersion: 1.642.2
7+
generationVersion: 2.731.6
8+
releaseVersion: 0.5.0
9+
configChecksum: 81a256d2452e69a2c8e67344247ee29a
1010
repoURL: https://github.com/agentset-ai/agentset-python.git
1111
installationURL: https://github.com/agentset-ai/agentset-python.git
1212
published: true
1313
features:
1414
python:
1515
additionalDependencies: 1.0.0
1616
constsAndDefaults: 1.0.5
17-
core: 5.22.1
17+
core: 5.23.0
1818
defaultEnabledRetries: 0.2.0
1919
devContainers: 3.0.0
2020
enumUnions: 0.1.0
@@ -98,6 +98,8 @@ generatedFiles:
9898
- docs/models/deletenamespacerequest.md
9999
- docs/models/deletenamespaceresponse.md
100100
- docs/models/document.md
101+
- docs/models/documentconfigoutput.md
102+
- docs/models/documentconfigoutputmetadata.md
101103
- docs/models/documentstatus.md
102104
- docs/models/embeddingmodelconfig.md
103105
- docs/models/embeddingmodelconfigmodel.md
@@ -131,8 +133,6 @@ generatedFiles:
131133
- docs/models/ingestjob.md
132134
- docs/models/ingestjobconfig.md
133135
- docs/models/ingestjobconfigmetadata.md
134-
- docs/models/ingestjobconfigoutput.md
135-
- docs/models/ingestjobconfigoutputmetadata.md
136136
- docs/models/ingestjobpayload.md
137137
- docs/models/ingestjobpayloadoutput.md
138138
- docs/models/ingestjobstatus.md
@@ -219,10 +219,15 @@ generatedFiles:
219219
- docs/models/voyageembeddingconfig.md
220220
- docs/models/voyageembeddingconfigoutput.md
221221
- docs/models/voyageembeddingmodelenum.md
222+
- docs/models/warmupdata.md
223+
- docs/models/warmupglobals.md
224+
- docs/models/warmuprequest.md
225+
- docs/models/warmupresponse.md
222226
- docs/sdks/documents/README.md
223227
- docs/sdks/hostingsdk/README.md
224228
- docs/sdks/ingestjobs/README.md
225229
- docs/sdks/namespaces/README.md
230+
- docs/sdks/namespacesdk/README.md
226231
- docs/sdks/search/README.md
227232
- docs/sdks/uploads/README.md
228233
- py.typed
@@ -272,6 +277,7 @@ generatedFiles:
272277
- src/agentset/models/deleteingestjobop.py
273278
- src/agentset/models/deletenamespaceop.py
274279
- src/agentset/models/document.py
280+
- src/agentset/models/document_configoutput.py
275281
- src/agentset/models/document_status.py
276282
- src/agentset/models/embedding_model_config.py
277283
- src/agentset/models/embedding_model_configoutput.py
@@ -289,7 +295,6 @@ generatedFiles:
289295
- src/agentset/models/hosting.py
290296
- src/agentset/models/ingest_job.py
291297
- src/agentset/models/ingest_job_config.py
292-
- src/agentset/models/ingest_job_configoutput.py
293298
- src/agentset/models/ingest_job_payload.py
294299
- src/agentset/models/ingest_job_payloadoutput.py
295300
- src/agentset/models/ingest_job_status.py
@@ -330,6 +335,8 @@ generatedFiles:
330335
- src/agentset/models/voyage_embedding_config.py
331336
- src/agentset/models/voyage_embedding_configoutput.py
332337
- src/agentset/models/voyage_embedding_model_enum.py
338+
- src/agentset/models/warmupop.py
339+
- src/agentset/namespace_sdk.py
333340
- src/agentset/namespaces.py
334341
- src/agentset/py.typed
335342
- src/agentset/sdk.py
@@ -663,7 +670,7 @@ examples:
663670
documentId: "doc_123"
664671
responses:
665672
"200":
666-
application/json: {"success": true, "data": {"id": "<id>", "ingestJobId": "<id>", "name": "<value>", "tenantId": "<id>", "status": "BACKLOG", "error": "<value>", "source": {"type": "FILE", "fileUrl": "https://numb-recommendation.biz/"}, "properties": null, "totalChunks": 4353.22, "totalTokens": 8030.56, "totalCharacters": 2459.79, "totalPages": 9368.77, "createdAt": "1716398821477", "queuedAt": null, "preProcessingAt": "<value>", "processingAt": "<value>", "completedAt": "<value>", "failedAt": "<value>"}}
673+
application/json: {"success": true, "data": {"id": "<id>", "ingestJobId": "<id>", "name": "<value>", "tenantId": "<id>", "status": "BACKLOG", "error": "<value>", "source": {"type": "FILE", "fileUrl": "https://numb-recommendation.biz/"}, "properties": null, "config": {}, "totalChunks": 4353.22, "totalTokens": 8030.56, "totalCharacters": 2459.79, "totalPages": 9368.77, "createdAt": "1716398821477", "queuedAt": null, "preProcessingAt": "<value>", "processingAt": "<value>", "completedAt": "<value>", "failedAt": "<value>"}}
667674
"400":
668675
application/json: {"success": false, "error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#bad-request"}}
669676
"401":
@@ -690,7 +697,7 @@ examples:
690697
documentId: "doc_123"
691698
responses:
692699
"204":
693-
application/json: {"success": true, "data": {"id": "<id>", "ingestJobId": "<id>", "name": "<value>", "tenantId": "<id>", "status": "CANCELLED", "error": "<value>", "source": {"type": "TEXT", "text": "<value>"}, "properties": {"fileSize": 7713.27, "mimeType": "<value>"}, "totalChunks": 7312.91, "totalTokens": 4758.72, "totalCharacters": 919.44, "totalPages": 5958.13, "createdAt": "1728032445499", "queuedAt": "<value>", "preProcessingAt": "<value>", "processingAt": "<value>", "completedAt": "<value>", "failedAt": "<value>"}}
700+
application/json: {"success": true, "data": {"id": "<id>", "ingestJobId": "<id>", "name": "<value>", "tenantId": "<id>", "status": "CANCELLED", "error": "<value>", "source": {"type": "TEXT", "text": "<value>"}, "properties": {"fileSize": 7713.27, "mimeType": "<value>"}, "config": {}, "totalChunks": 7312.91, "totalTokens": 4758.72, "totalCharacters": 919.44, "totalPages": 5958.13, "createdAt": "1728032445499", "queuedAt": "<value>", "preProcessingAt": "<value>", "processingAt": "<value>", "completedAt": "<value>", "failedAt": "<value>"}}
694701
"400":
695702
application/json: {"success": false, "error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#bad-request"}}
696703
"401":
@@ -899,5 +906,36 @@ examples:
899906
application/json: {"success": false, "error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#rate-limit_exceeded"}}
900907
"500":
901908
application/json: {"success": false, "error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#internal-server_error"}}
909+
warmUp:
910+
speakeasy-default-warm-up:
911+
parameters:
912+
path:
913+
namespaceId: "ns_123"
914+
responses:
915+
"200":
916+
application/json: {"success": true, "data": {"status": false}}
917+
"400":
918+
application/json: {"success": false, "error": {"code": "bad_request", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#bad-request"}}
919+
"401":
920+
application/json: {"success": false, "error": {"code": "unauthorized", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#unauthorized"}}
921+
"403":
922+
application/json: {"success": false, "error": {"code": "forbidden", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#forbidden"}}
923+
"404":
924+
application/json: {"success": false, "error": {"code": "not_found", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#not-found"}}
925+
"409":
926+
application/json: {"success": false, "error": {"code": "conflict", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#conflict"}}
927+
"410":
928+
application/json: {"success": false, "error": {"code": "invite_expired", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#invite-expired"}}
929+
"422":
930+
application/json: {"success": false, "error": {"code": "unprocessable_entity", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#unprocessable-entity"}}
931+
"429":
932+
application/json: {"success": false, "error": {"code": "rate_limit_exceeded", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#rate-limit_exceeded"}}
933+
"500":
934+
application/json: {"success": false, "error": {"code": "internal_server_error", "message": "The requested resource was not found.", "doc_url": "https://docs.agentset.ai/api-reference/errors#internal-server_error"}}
902935
examplesVersion: 1.0.2
903-
releaseNotes: "## Python SDK Changes Detected:\n* `agentset.namespaces.create()`: \n * `request` **Changed** **Breaking** :warning:\n * `response.data` **Changed**\n* `agentset.documents.delete()`: \n * `request.x-tenant-id` **Added**\n * `response.data.external_id` **Removed** **Breaking** :warning:\n* `agentset.documents.get()`: \n * `request.x-tenant-id` **Added**\n * `response.data.external_id` **Removed** **Breaking** :warning:\n* `agentset.documents.list()`: \n * `request.x-tenant-id` **Added**\n * `response` **Changed** **Breaking** :warning:\n* `agentset.namespaces.delete()`: `response.data` **Changed**\n* `agentset.ingest_jobs.get()`: \n * `request.x-tenant-id` **Added**\n * `response.data.external_id` **Added**\n* `agentset.namespaces.get()`: `response.data` **Changed**\n* `agentset.namespaces.update()`: `response.data` **Changed**\n* `agentset.hosting.get()`: **Added**\n* `agentset.ingest_jobs.list()`: \n * `request.x-tenant-id` **Added**\n * `response` **Changed**\n* `agentset.ingest_jobs.create()`: \n * `request` **Changed**\n * `response.data.external_id` **Added**\n* `agentset.namespaces.list()`: `response.data.[]` **Changed**\n* `agentset.ingest_jobs.delete()`: \n * `request.x-tenant-id` **Added**\n * `response.data.external_id` **Added**\n* `agentset.ingest_jobs.re_ingest()`: `request.x-tenant-id` **Added**\n* `agentset.hosting.delete()`: **Added**\n* `agentset.hosting.update()`: **Added**\n* `agentset.hosting.enable()`: **Added**\n* `agentset.search.execute()`: `request` **Changed**\n"
936+
releaseNotes: |
937+
## Python SDK Changes Detected:
938+
* `agentset.namespace.warm_up()`: **Added**
939+
* `agentset.documents.list()`: `response.data.[].config` **Added**
940+
* `agentset.documents.get()`: `response.data.config` **Added**
941+
* `agentset.documents.delete()`: `response.data.config` **Added**

.speakeasy/gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ generation:
2222
hoistGlobalSecurity: true
2323
inferSSEOverload: true
2424
sdkHooksConfigAccess: true
25+
schemas:
26+
allOfMergeStrategy: shallowMerge
2527
tests:
2628
generateTests: false
2729
generateNewTests: true
2830
skipResponseBodyAssertions: false
2931
python:
30-
version: 0.4.0
32+
version: 0.5.0
3133
additionalDependencies:
3234
dev: {}
3335
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 71 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,53 @@ paths:
11751175
"422": {"$ref": "#/components/responses/422"}
11761176
"429": {"$ref": "#/components/responses/429"}
11771177
"500": {"$ref": "#/components/responses/500"}
1178+
"/v1/namespace/{namespaceId}/warm-up":
1179+
post:
1180+
operationId: "warmUp"
1181+
x-speakeasy-name-override: "warmUp"
1182+
x-speakeasy-group: "namespace"
1183+
summary: "Warm cache for a namespace"
1184+
x-codeSamples: [{"lang": "TypeScript", "source": "\nimport { Agentset } from \"agentset\";\n\nconst agentset = new Agentset({ apiKey: 'agentset_xxx' });\nconst ns = agentset.namespace('ns_xxx');\n\nawait ns.warmUp();\nconsole.log(\"Cache warmed successfully\");\n"}]
1185+
description: "Pre-loads the namespace into the vector store's cache for faster query performance. Not all vector stores support this operation. Currently only Turbopuffer supports this operation."
1186+
tags:
1187+
- "Namespaces"
1188+
security:
1189+
- token: []
1190+
parameters:
1191+
- {"$ref": "#/components/parameters/NamespaceIdRef"}
1192+
- {"$ref": "#/components/parameters/TenantIdRef"}
1193+
responses:
1194+
"200":
1195+
description: "Cache warming started"
1196+
content:
1197+
"application/json":
1198+
schema:
1199+
type: "object"
1200+
properties:
1201+
"success":
1202+
type: "boolean"
1203+
const: true
1204+
"data":
1205+
type: "object"
1206+
properties:
1207+
"status":
1208+
type: "boolean"
1209+
required:
1210+
- "status"
1211+
additionalProperties: false
1212+
required:
1213+
- "success"
1214+
- "data"
1215+
additionalProperties: false
1216+
"400": {"$ref": "#/components/responses/400"}
1217+
"401": {"$ref": "#/components/responses/401"}
1218+
"403": {"$ref": "#/components/responses/403"}
1219+
"404": {"$ref": "#/components/responses/404"}
1220+
"409": {"$ref": "#/components/responses/409"}
1221+
"410": {"$ref": "#/components/responses/410"}
1222+
"422": {"$ref": "#/components/responses/422"}
1223+
"429": {"$ref": "#/components/responses/429"}
1224+
"500": {"$ref": "#/components/responses/500"}
11781225
components:
11791226
schemas:
11801227
"embedding-model-config":
@@ -1410,6 +1457,7 @@ components:
14101457
"text":
14111458
description: "The text to ingest."
14121459
type: "string"
1460+
minLength: 1
14131461
"fileName":
14141462
anyOf:
14151463
- description: "The name of the file."
@@ -1428,6 +1476,7 @@ components:
14281476
"fileUrl":
14291477
description: "The URL of the file to ingest."
14301478
type: "string"
1479+
format: "uri"
14311480
"fileName":
14321481
anyOf:
14331482
- description: "The name of the file."
@@ -1474,12 +1523,13 @@ components:
14741523
"text":
14751524
description: "The text to ingest."
14761525
type: "string"
1526+
minLength: 1
14771527
"fileName":
14781528
anyOf:
14791529
- description: "The name of the file."
14801530
type: "string"
14811531
- type: "null"
1482-
"config": {"$ref": "#/components/schemas/ingest-job-config"}
1532+
"config": {"$ref": "#/components/schemas/document-config"}
14831533
required:
14841534
- "type"
14851535
- "text"
@@ -1491,12 +1541,13 @@ components:
14911541
"fileUrl":
14921542
description: "The URL of the file to ingest."
14931543
type: "string"
1544+
format: "uri"
14941545
"fileName":
14951546
anyOf:
14961547
- description: "The name of the file."
14971548
type: "string"
14981549
- type: "null"
1499-
"config": {"$ref": "#/components/schemas/ingest-job-config"}
1550+
"config": {"$ref": "#/components/schemas/document-config"}
15001551
required:
15011552
- "type"
15021553
- "fileUrl"
@@ -1513,14 +1564,15 @@ components:
15131564
- description: "The name of the file."
15141565
type: "string"
15151566
- type: "null"
1516-
"config": {"$ref": "#/components/schemas/ingest-job-config"}
1567+
"config": {"$ref": "#/components/schemas/document-config"}
15171568
required:
15181569
- "type"
15191570
- "key"
15201571
type: "object"
15211572
required:
15221573
- "type"
15231574
- "items"
1575+
"document-config": {"description": "The document config.", "$ref": "#/components/schemas/ingest-job-config"}
15241576
"ingest-job-config":
15251577
description: "The ingest job config."
15261578
type: "object"
@@ -1788,6 +1840,7 @@ components:
17881840
"text":
17891841
description: "The text to ingest."
17901842
type: "string"
1843+
minLength: 1
17911844
required:
17921845
- "type"
17931846
- "text"
@@ -1800,6 +1853,7 @@ components:
18001853
"fileUrl":
18011854
description: "The URL of the file to ingest."
18021855
type: "string"
1856+
format: "uri"
18031857
required:
18041858
- "type"
18051859
- "fileUrl"
@@ -1837,6 +1891,11 @@ components:
18371891
- "mimeType"
18381892
additionalProperties: false
18391893
- type: "null"
1894+
"config":
1895+
default:
1896+
anyOf:
1897+
- {"$ref": "#/components/schemas/document-configOutput"}
1898+
- type: "null"
18401899
"totalChunks":
18411900
description: "The total number of chunks."
18421901
type: "number"
@@ -1891,6 +1950,7 @@ components:
18911950
- "error"
18921951
- "source"
18931952
- "properties"
1953+
- "config"
18941954
- "totalChunks"
18951955
- "totalTokens"
18961956
- "totalCharacters"
@@ -2210,6 +2270,7 @@ components:
22102270
"text":
22112271
description: "The text to ingest."
22122272
type: "string"
2273+
minLength: 1
22132274
"fileName":
22142275
anyOf:
22152276
- description: "The name of the file."
@@ -2229,6 +2290,7 @@ components:
22292290
"fileUrl":
22302291
description: "The URL of the file to ingest."
22312292
type: "string"
2293+
format: "uri"
22322294
"fileName":
22332295
anyOf:
22342296
- description: "The name of the file."
@@ -2277,12 +2339,13 @@ components:
22772339
"text":
22782340
description: "The text to ingest."
22792341
type: "string"
2342+
minLength: 1
22802343
"fileName":
22812344
anyOf:
22822345
- description: "The name of the file."
22832346
type: "string"
22842347
- type: "null"
2285-
"config": {"$ref": "#/components/schemas/ingest-job-configOutput"}
2348+
"config": {"$ref": "#/components/schemas/document-configOutput"}
22862349
required:
22872350
- "type"
22882351
- "text"
@@ -2295,12 +2358,13 @@ components:
22952358
"fileUrl":
22962359
description: "The URL of the file to ingest."
22972360
type: "string"
2361+
format: "uri"
22982362
"fileName":
22992363
anyOf:
23002364
- description: "The name of the file."
23012365
type: "string"
23022366
- type: "null"
2303-
"config": {"$ref": "#/components/schemas/ingest-job-configOutput"}
2367+
"config": {"$ref": "#/components/schemas/document-configOutput"}
23042368
required:
23052369
- "type"
23062370
- "fileUrl"
@@ -2318,7 +2382,7 @@ components:
23182382
- description: "The name of the file."
23192383
type: "string"
23202384
- type: "null"
2321-
"config": {"$ref": "#/components/schemas/ingest-job-configOutput"}
2385+
"config": {"$ref": "#/components/schemas/document-configOutput"}
23222386
required:
23232387
- "type"
23242388
- "key"
@@ -2328,6 +2392,7 @@ components:
23282392
- "type"
23292393
- "items"
23302394
additionalProperties: false
2395+
"document-configOutput": {"description": "The document config.", "$ref": "#/components/schemas/ingest-job-configOutput"}
23312396
"ingest-job-configOutput":
23322397
description: "The ingest job config."
23332398
type: "object"

0 commit comments

Comments
 (0)