@reminix/cli 0.1.23 → 0.1.25
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.
- package/README.md +2 -2
- package/dist/commands/agent.js +36 -20
- package/dist/commands/agent.js.map +1 -1
- package/dist/commands/tool.js +2 -2
- package/dist/commands/tool.js.map +1 -1
- package/dist/commands/version.d.ts +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/lib/api-types.d.ts +1051 -30
- package/dist/lib/api-types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/lib/api-types.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export interface paths {
|
|
|
125
125
|
*
|
|
126
126
|
* **Supported Agents:** Custom agents only. Managed agents should use the /chat endpoint.
|
|
127
127
|
*
|
|
128
|
-
* **Input:** Pass structured input data matching the agent's
|
|
128
|
+
* **Input:** Pass structured input data matching the agent's input schema.
|
|
129
129
|
*
|
|
130
130
|
* **Timeout:** Agent invocations have a 60-second timeout. If the agent takes longer to respond,
|
|
131
131
|
* you will receive a 504 Gateway Timeout error. For long-running tasks, consider using streaming
|
|
@@ -225,7 +225,7 @@ export interface paths {
|
|
|
225
225
|
put?: never;
|
|
226
226
|
/**
|
|
227
227
|
* Call a tool
|
|
228
|
-
* @description Call a tool with the provided input
|
|
228
|
+
* @description Call a tool with the provided input.
|
|
229
229
|
*
|
|
230
230
|
* **Timeout:** Tool calls have a 60-second timeout. If the tool takes longer to respond,
|
|
231
231
|
* you will receive a 504 Gateway Timeout error.
|
|
@@ -537,6 +537,218 @@ export interface paths {
|
|
|
537
537
|
patch?: never;
|
|
538
538
|
trace?: never;
|
|
539
539
|
};
|
|
540
|
+
"/memories": {
|
|
541
|
+
parameters: {
|
|
542
|
+
query?: never;
|
|
543
|
+
header?: never;
|
|
544
|
+
path?: never;
|
|
545
|
+
cookie?: never;
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* List memories
|
|
549
|
+
* @description List all memory keys for a specific identity.
|
|
550
|
+
*
|
|
551
|
+
* Identity is specified via query parameters with the `identity.` prefix.
|
|
552
|
+
* For example: `?identity.user_id=user_123&identity.tenant_id=acme`
|
|
553
|
+
*
|
|
554
|
+
* Returns memory keys and metadata (not full values for efficiency).
|
|
555
|
+
*/
|
|
556
|
+
get: operations["listMemories"];
|
|
557
|
+
put?: never;
|
|
558
|
+
/**
|
|
559
|
+
* Store a memory
|
|
560
|
+
* @description Store a key-value memory for a specific identity.
|
|
561
|
+
*
|
|
562
|
+
* If a memory with the same key already exists, it will be updated.
|
|
563
|
+
*/
|
|
564
|
+
post: operations["storeMemory"];
|
|
565
|
+
/**
|
|
566
|
+
* Delete all memories
|
|
567
|
+
* @description Delete all memories for a specific identity.
|
|
568
|
+
*/
|
|
569
|
+
delete: operations["deleteAllMemories"];
|
|
570
|
+
options?: never;
|
|
571
|
+
head?: never;
|
|
572
|
+
patch?: never;
|
|
573
|
+
trace?: never;
|
|
574
|
+
};
|
|
575
|
+
"/memories/{key}": {
|
|
576
|
+
parameters: {
|
|
577
|
+
query?: never;
|
|
578
|
+
header?: never;
|
|
579
|
+
path?: never;
|
|
580
|
+
cookie?: never;
|
|
581
|
+
};
|
|
582
|
+
/**
|
|
583
|
+
* Get a memory
|
|
584
|
+
* @description Get a memory value by key for a specific identity.
|
|
585
|
+
*
|
|
586
|
+
* Identity is specified via query parameters with the `identity.` prefix.
|
|
587
|
+
*/
|
|
588
|
+
get: operations["getMemory"];
|
|
589
|
+
put?: never;
|
|
590
|
+
post?: never;
|
|
591
|
+
/**
|
|
592
|
+
* Delete a memory
|
|
593
|
+
* @description Delete a memory by key for a specific identity.
|
|
594
|
+
*/
|
|
595
|
+
delete: operations["deleteMemory"];
|
|
596
|
+
options?: never;
|
|
597
|
+
head?: never;
|
|
598
|
+
patch?: never;
|
|
599
|
+
trace?: never;
|
|
600
|
+
};
|
|
601
|
+
"/knowledge/collections": {
|
|
602
|
+
parameters: {
|
|
603
|
+
query?: never;
|
|
604
|
+
header?: never;
|
|
605
|
+
path?: never;
|
|
606
|
+
cookie?: never;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* List knowledge collections
|
|
610
|
+
* @description List all knowledge collections for the project.
|
|
611
|
+
*/
|
|
612
|
+
get: operations["listCollections"];
|
|
613
|
+
put?: never;
|
|
614
|
+
/**
|
|
615
|
+
* Create a knowledge collection
|
|
616
|
+
* @description Create a new knowledge collection for storing documents.
|
|
617
|
+
*/
|
|
618
|
+
post: operations["createCollection"];
|
|
619
|
+
delete?: never;
|
|
620
|
+
options?: never;
|
|
621
|
+
head?: never;
|
|
622
|
+
patch?: never;
|
|
623
|
+
trace?: never;
|
|
624
|
+
};
|
|
625
|
+
"/knowledge/collections/{id}": {
|
|
626
|
+
parameters: {
|
|
627
|
+
query?: never;
|
|
628
|
+
header?: never;
|
|
629
|
+
path?: never;
|
|
630
|
+
cookie?: never;
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* Get a knowledge collection
|
|
634
|
+
* @description Get details of a knowledge collection including document stats.
|
|
635
|
+
*/
|
|
636
|
+
get: operations["getCollection"];
|
|
637
|
+
put?: never;
|
|
638
|
+
post?: never;
|
|
639
|
+
/**
|
|
640
|
+
* Delete a knowledge collection
|
|
641
|
+
* @description Delete a knowledge collection and all its documents.
|
|
642
|
+
*/
|
|
643
|
+
delete: operations["deleteCollection"];
|
|
644
|
+
options?: never;
|
|
645
|
+
head?: never;
|
|
646
|
+
/**
|
|
647
|
+
* Update a knowledge collection
|
|
648
|
+
* @description Update a knowledge collection name or description.
|
|
649
|
+
*/
|
|
650
|
+
patch: operations["updateCollection"];
|
|
651
|
+
trace?: never;
|
|
652
|
+
};
|
|
653
|
+
"/knowledge/collections/{id}/documents": {
|
|
654
|
+
parameters: {
|
|
655
|
+
query?: never;
|
|
656
|
+
header?: never;
|
|
657
|
+
path?: never;
|
|
658
|
+
cookie?: never;
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* List documents in a collection
|
|
662
|
+
* @description List all documents in a knowledge collection.
|
|
663
|
+
*/
|
|
664
|
+
get: operations["listDocuments"];
|
|
665
|
+
put?: never;
|
|
666
|
+
/**
|
|
667
|
+
* Upload a document
|
|
668
|
+
* @description Create a document record and get a presigned URL for upload.
|
|
669
|
+
*
|
|
670
|
+
* After receiving the response, upload the file to the presigned URL using a PUT request.
|
|
671
|
+
* The document will be processed automatically after upload.
|
|
672
|
+
*/
|
|
673
|
+
post: operations["createDocument"];
|
|
674
|
+
delete?: never;
|
|
675
|
+
options?: never;
|
|
676
|
+
head?: never;
|
|
677
|
+
patch?: never;
|
|
678
|
+
trace?: never;
|
|
679
|
+
};
|
|
680
|
+
"/knowledge/collections/{collectionId}/documents/{documentId}": {
|
|
681
|
+
parameters: {
|
|
682
|
+
query?: never;
|
|
683
|
+
header?: never;
|
|
684
|
+
path?: never;
|
|
685
|
+
cookie?: never;
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* Get a document
|
|
689
|
+
* @description Get details of a document.
|
|
690
|
+
*/
|
|
691
|
+
get: operations["getDocument"];
|
|
692
|
+
put?: never;
|
|
693
|
+
post?: never;
|
|
694
|
+
/**
|
|
695
|
+
* Delete a document
|
|
696
|
+
* @description Delete a document and its associated data.
|
|
697
|
+
*/
|
|
698
|
+
delete: operations["deleteDocument"];
|
|
699
|
+
options?: never;
|
|
700
|
+
head?: never;
|
|
701
|
+
patch?: never;
|
|
702
|
+
trace?: never;
|
|
703
|
+
};
|
|
704
|
+
"/knowledge/collections/{collectionId}/documents/{documentId}/process": {
|
|
705
|
+
parameters: {
|
|
706
|
+
query?: never;
|
|
707
|
+
header?: never;
|
|
708
|
+
path?: never;
|
|
709
|
+
cookie?: never;
|
|
710
|
+
};
|
|
711
|
+
get?: never;
|
|
712
|
+
put?: never;
|
|
713
|
+
/**
|
|
714
|
+
* Process a document
|
|
715
|
+
* @description Trigger processing for a document after upload.
|
|
716
|
+
*
|
|
717
|
+
* This extracts text from the document, splits it into chunks,
|
|
718
|
+
* generates embeddings, and stores them for search.
|
|
719
|
+
*
|
|
720
|
+
* The document status will transition: pending → processing → ready (or failed).
|
|
721
|
+
*/
|
|
722
|
+
post: operations["processDocument"];
|
|
723
|
+
delete?: never;
|
|
724
|
+
options?: never;
|
|
725
|
+
head?: never;
|
|
726
|
+
patch?: never;
|
|
727
|
+
trace?: never;
|
|
728
|
+
};
|
|
729
|
+
"/knowledge/search": {
|
|
730
|
+
parameters: {
|
|
731
|
+
query?: never;
|
|
732
|
+
header?: never;
|
|
733
|
+
path?: never;
|
|
734
|
+
cookie?: never;
|
|
735
|
+
};
|
|
736
|
+
get?: never;
|
|
737
|
+
put?: never;
|
|
738
|
+
/**
|
|
739
|
+
* Search knowledge base
|
|
740
|
+
* @description Search across one or more knowledge collections using semantic similarity.
|
|
741
|
+
*
|
|
742
|
+
* The search uses vector embeddings to find the most relevant content.
|
|
743
|
+
* Results are ordered by relevance score (0-1, higher is more similar).
|
|
744
|
+
*/
|
|
745
|
+
post: operations["searchKnowledge"];
|
|
746
|
+
delete?: never;
|
|
747
|
+
options?: never;
|
|
748
|
+
head?: never;
|
|
749
|
+
patch?: never;
|
|
750
|
+
trace?: never;
|
|
751
|
+
};
|
|
540
752
|
}
|
|
541
753
|
export type webhooks = Record<string, never>;
|
|
542
754
|
export interface components {
|
|
@@ -580,6 +792,18 @@ export interface components {
|
|
|
580
792
|
/** @description Error message describing what went wrong */
|
|
581
793
|
error: string;
|
|
582
794
|
};
|
|
795
|
+
/** @description Memory feature configuration */
|
|
796
|
+
AgentMemoryConfig: {
|
|
797
|
+
/** @description Whether memory is enabled for this agent */
|
|
798
|
+
enabled: boolean;
|
|
799
|
+
};
|
|
800
|
+
/** @description Knowledge base feature configuration */
|
|
801
|
+
AgentKnowledgeBaseConfig: {
|
|
802
|
+
/** @description Whether knowledge base is enabled for this agent */
|
|
803
|
+
enabled: boolean;
|
|
804
|
+
/** @description Collection IDs to search */
|
|
805
|
+
collectionIds: string[];
|
|
806
|
+
};
|
|
583
807
|
/**
|
|
584
808
|
* @description Agent configuration (for managed agents)
|
|
585
809
|
* @example {
|
|
@@ -589,7 +813,16 @@ export interface components {
|
|
|
589
813
|
* "tools": [
|
|
590
814
|
* "search-web"
|
|
591
815
|
* ],
|
|
592
|
-
* "maxIterations": 10
|
|
816
|
+
* "maxIterations": 10,
|
|
817
|
+
* "memory": {
|
|
818
|
+
* "enabled": true
|
|
819
|
+
* },
|
|
820
|
+
* "knowledgeBase": {
|
|
821
|
+
* "enabled": true,
|
|
822
|
+
* "collectionIds": [
|
|
823
|
+
* "coll_abc123"
|
|
824
|
+
* ]
|
|
825
|
+
* }
|
|
593
826
|
* }
|
|
594
827
|
*/
|
|
595
828
|
AgentConfig: {
|
|
@@ -608,14 +841,29 @@ export interface components {
|
|
|
608
841
|
maxIterations?: number;
|
|
609
842
|
/** @description Whether to require approval for tool calls */
|
|
610
843
|
requireApproval?: boolean;
|
|
844
|
+
memory?: components["schemas"]["AgentMemoryConfig"];
|
|
845
|
+
knowledgeBase?: components["schemas"]["AgentKnowledgeBaseConfig"];
|
|
611
846
|
} | null;
|
|
612
|
-
/** @description JSON Schema for agent input
|
|
847
|
+
/** @description JSON Schema for agent input */
|
|
613
848
|
JsonSchema: ({
|
|
614
|
-
type
|
|
849
|
+
/** @description JSON Schema type (e.g., "object", "string", "array") */
|
|
850
|
+
type?: string;
|
|
851
|
+
/** @description Human-readable title */
|
|
852
|
+
title?: string;
|
|
853
|
+
/** @description Description of the schema */
|
|
854
|
+
description?: string;
|
|
855
|
+
/** @description Default value for the property */
|
|
856
|
+
default?: unknown;
|
|
857
|
+
/** @description Enumeration of allowed values */
|
|
858
|
+
enum?: unknown[];
|
|
859
|
+
/** @description Property definitions for object types */
|
|
615
860
|
properties?: {
|
|
616
861
|
[key: string]: unknown;
|
|
617
862
|
};
|
|
863
|
+
/** @description List of required property names */
|
|
618
864
|
required?: string[];
|
|
865
|
+
/** @description Schema for array items */
|
|
866
|
+
items?: unknown;
|
|
619
867
|
} & {
|
|
620
868
|
[key: string]: unknown;
|
|
621
869
|
}) | null;
|
|
@@ -636,16 +884,20 @@ export interface components {
|
|
|
636
884
|
config: components["schemas"]["AgentConfig"];
|
|
637
885
|
/** @description Agent description */
|
|
638
886
|
description: string | null;
|
|
639
|
-
|
|
887
|
+
input: components["schemas"]["JsonSchema"];
|
|
640
888
|
output: components["schemas"]["JsonSchema"] & unknown;
|
|
641
|
-
/** @description
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
889
|
+
/** @description Agent capabilities (e.g. streaming) */
|
|
890
|
+
capabilities: ({
|
|
891
|
+
/** @description Whether agent supports streaming */
|
|
892
|
+
streaming?: boolean;
|
|
893
|
+
} & {
|
|
894
|
+
[key: string]: unknown;
|
|
895
|
+
}) | null;
|
|
896
|
+
/**
|
|
897
|
+
* @description Agent template: prompt, chat, task, rag, or thread (from runtime); null for custom or managed without template
|
|
898
|
+
* @enum {string|null}
|
|
899
|
+
*/
|
|
900
|
+
template: "prompt" | "chat" | "task" | "rag" | "thread" | null;
|
|
649
901
|
/** @description When the agent was discovered (for custom agents) */
|
|
650
902
|
discoveredAt: string | null;
|
|
651
903
|
/** @description User who created the agent */
|
|
@@ -707,11 +959,16 @@ export interface components {
|
|
|
707
959
|
maxIterations?: number;
|
|
708
960
|
/** @description Whether to require approval for tool calls */
|
|
709
961
|
requireApproval?: boolean;
|
|
962
|
+
memory?: components["schemas"]["AgentMemoryConfig"];
|
|
963
|
+
knowledgeBase?: components["schemas"]["AgentKnowledgeBaseConfig"];
|
|
710
964
|
};
|
|
711
965
|
};
|
|
712
|
-
/** @description Response with
|
|
713
|
-
|
|
714
|
-
|
|
966
|
+
/** @description Response with output from the agent and optional execution ID. */
|
|
967
|
+
AgentInvokeResponse: {
|
|
968
|
+
/** @description Output from the agent */
|
|
969
|
+
output?: unknown;
|
|
970
|
+
/** @description Execution ID for tracking */
|
|
971
|
+
execution_id?: string;
|
|
715
972
|
};
|
|
716
973
|
StreamChunk: {
|
|
717
974
|
/** @description Text chunk from the stream */
|
|
@@ -729,13 +986,15 @@ export interface components {
|
|
|
729
986
|
} & {
|
|
730
987
|
[key: string]: unknown;
|
|
731
988
|
};
|
|
732
|
-
/** @description Request body with
|
|
733
|
-
|
|
989
|
+
/** @description Request body with input object and optional stream/context fields. */
|
|
990
|
+
AgentInvokeRequest: {
|
|
991
|
+
/** @description Input data for the agent */
|
|
992
|
+
input?: {
|
|
993
|
+
[key: string]: unknown;
|
|
994
|
+
};
|
|
734
995
|
/** @description Enable streaming response (SSE) */
|
|
735
996
|
stream?: boolean;
|
|
736
997
|
context?: components["schemas"]["Context"];
|
|
737
|
-
} & {
|
|
738
|
-
[key: string]: unknown;
|
|
739
998
|
};
|
|
740
999
|
/**
|
|
741
1000
|
* @description Message role
|
|
@@ -809,7 +1068,7 @@ export interface components {
|
|
|
809
1068
|
status: "active" | "inactive";
|
|
810
1069
|
/** @description Tool description */
|
|
811
1070
|
description: string | null;
|
|
812
|
-
|
|
1071
|
+
input: components["schemas"]["JsonSchema"] & unknown;
|
|
813
1072
|
output: components["schemas"]["JsonSchema"] & unknown;
|
|
814
1073
|
/** @description When the tool was discovered */
|
|
815
1074
|
discoveredAt: string | null;
|
|
@@ -820,12 +1079,12 @@ export interface components {
|
|
|
820
1079
|
/** @description Last update timestamp */
|
|
821
1080
|
updatedAt: string;
|
|
822
1081
|
};
|
|
823
|
-
|
|
1082
|
+
ToolCallResponse: {
|
|
824
1083
|
/** @description Output from the tool execution. */
|
|
825
1084
|
output?: unknown;
|
|
826
1085
|
};
|
|
827
|
-
|
|
828
|
-
/** @description Input
|
|
1086
|
+
ToolCallRequest: {
|
|
1087
|
+
/** @description Input data for the tool. Structure depends on tool definition. */
|
|
829
1088
|
input: {
|
|
830
1089
|
[key: string]: unknown;
|
|
831
1090
|
};
|
|
@@ -972,7 +1231,7 @@ export interface components {
|
|
|
972
1231
|
status: "success" | "error" | "timeout";
|
|
973
1232
|
/** @description Execution duration in milliseconds */
|
|
974
1233
|
durationMs: number | null;
|
|
975
|
-
/** @description
|
|
1234
|
+
/** @description Request input */
|
|
976
1235
|
input?: unknown;
|
|
977
1236
|
/** @description Output from execution (null for errors) */
|
|
978
1237
|
output?: unknown;
|
|
@@ -1023,6 +1282,78 @@ export interface components {
|
|
|
1023
1282
|
/** @description Conversation messages */
|
|
1024
1283
|
messages: components["schemas"]["ConversationMessage"][];
|
|
1025
1284
|
};
|
|
1285
|
+
MemoryListItem: {
|
|
1286
|
+
/** @description Memory key */
|
|
1287
|
+
key: string;
|
|
1288
|
+
/** @description When the memory was last updated */
|
|
1289
|
+
updatedAt: string;
|
|
1290
|
+
/** @description When the memory expires (if set) */
|
|
1291
|
+
expiresAt: string | null;
|
|
1292
|
+
};
|
|
1293
|
+
/** @description Identity fields for memory scoping (e.g., user_id, tenant_id) */
|
|
1294
|
+
MemoryIdentity: {
|
|
1295
|
+
[key: string]: unknown;
|
|
1296
|
+
};
|
|
1297
|
+
Memory: {
|
|
1298
|
+
/** @description Unique memory ID */
|
|
1299
|
+
id: string;
|
|
1300
|
+
/** @description Project ID */
|
|
1301
|
+
projectId: string;
|
|
1302
|
+
identity: components["schemas"]["MemoryIdentity"];
|
|
1303
|
+
/** @description Memory key */
|
|
1304
|
+
key: string;
|
|
1305
|
+
/** @description Memory value */
|
|
1306
|
+
value?: unknown;
|
|
1307
|
+
/** @description When the memory was created */
|
|
1308
|
+
createdAt: string;
|
|
1309
|
+
/** @description When the memory was last updated */
|
|
1310
|
+
updatedAt: string;
|
|
1311
|
+
/** @description When the memory expires */
|
|
1312
|
+
expiresAt: string | null;
|
|
1313
|
+
};
|
|
1314
|
+
KnowledgeCollection: {
|
|
1315
|
+
/** @description Unique collection ID */
|
|
1316
|
+
id: string;
|
|
1317
|
+
/** @description Project ID */
|
|
1318
|
+
projectId: string;
|
|
1319
|
+
/** @description Collection name */
|
|
1320
|
+
name: string;
|
|
1321
|
+
/** @description Collection description */
|
|
1322
|
+
description: string | null;
|
|
1323
|
+
/** @description Embedding model used */
|
|
1324
|
+
embeddingModel: string;
|
|
1325
|
+
/** @description Total number of documents */
|
|
1326
|
+
documentCount?: number;
|
|
1327
|
+
/** @description Number of processed documents */
|
|
1328
|
+
readyDocumentCount?: number;
|
|
1329
|
+
/** @description When the collection was created */
|
|
1330
|
+
createdAt: string;
|
|
1331
|
+
/** @description When the collection was last updated */
|
|
1332
|
+
updatedAt: string;
|
|
1333
|
+
};
|
|
1334
|
+
KnowledgeDocument: {
|
|
1335
|
+
/** @description Unique document ID */
|
|
1336
|
+
id: string;
|
|
1337
|
+
/** @description Collection ID */
|
|
1338
|
+
collectionId: string;
|
|
1339
|
+
/** @description Document name */
|
|
1340
|
+
name: string;
|
|
1341
|
+
/** @description S3 URL of the document */
|
|
1342
|
+
sourceUrl: string;
|
|
1343
|
+
/** @description MIME type */
|
|
1344
|
+
mimeType: string;
|
|
1345
|
+
/**
|
|
1346
|
+
* @description Processing status
|
|
1347
|
+
* @enum {string}
|
|
1348
|
+
*/
|
|
1349
|
+
status: "pending" | "processing" | "ready" | "failed";
|
|
1350
|
+
/** @description Document metadata */
|
|
1351
|
+
metadata?: unknown;
|
|
1352
|
+
/** @description When the document was created */
|
|
1353
|
+
createdAt: string;
|
|
1354
|
+
/** @description When the document was last updated */
|
|
1355
|
+
updatedAt: string;
|
|
1356
|
+
};
|
|
1026
1357
|
};
|
|
1027
1358
|
responses: never;
|
|
1028
1359
|
parameters: never;
|
|
@@ -1358,7 +1689,7 @@ export interface operations {
|
|
|
1358
1689
|
};
|
|
1359
1690
|
requestBody?: {
|
|
1360
1691
|
content: {
|
|
1361
|
-
"application/json": components["schemas"]["
|
|
1692
|
+
"application/json": components["schemas"]["AgentInvokeRequest"];
|
|
1362
1693
|
};
|
|
1363
1694
|
};
|
|
1364
1695
|
responses: {
|
|
@@ -1368,7 +1699,7 @@ export interface operations {
|
|
|
1368
1699
|
[name: string]: unknown;
|
|
1369
1700
|
};
|
|
1370
1701
|
content: {
|
|
1371
|
-
"application/json": components["schemas"]["
|
|
1702
|
+
"application/json": components["schemas"]["AgentInvokeResponse"];
|
|
1372
1703
|
"text/event-stream": components["schemas"]["StreamChunk"];
|
|
1373
1704
|
};
|
|
1374
1705
|
};
|
|
@@ -1596,7 +1927,7 @@ export interface operations {
|
|
|
1596
1927
|
};
|
|
1597
1928
|
requestBody?: {
|
|
1598
1929
|
content: {
|
|
1599
|
-
"application/json": components["schemas"]["
|
|
1930
|
+
"application/json": components["schemas"]["ToolCallRequest"];
|
|
1600
1931
|
};
|
|
1601
1932
|
};
|
|
1602
1933
|
responses: {
|
|
@@ -1606,7 +1937,7 @@ export interface operations {
|
|
|
1606
1937
|
[name: string]: unknown;
|
|
1607
1938
|
};
|
|
1608
1939
|
content: {
|
|
1609
|
-
"application/json": components["schemas"]["
|
|
1940
|
+
"application/json": components["schemas"]["ToolCallResponse"];
|
|
1610
1941
|
};
|
|
1611
1942
|
};
|
|
1612
1943
|
/** @description Bad Request - Invalid input */
|
|
@@ -2293,5 +2624,695 @@ export interface operations {
|
|
|
2293
2624
|
};
|
|
2294
2625
|
};
|
|
2295
2626
|
};
|
|
2627
|
+
listMemories: {
|
|
2628
|
+
parameters: {
|
|
2629
|
+
query?: never;
|
|
2630
|
+
header?: never;
|
|
2631
|
+
path?: never;
|
|
2632
|
+
cookie?: never;
|
|
2633
|
+
};
|
|
2634
|
+
requestBody?: never;
|
|
2635
|
+
responses: {
|
|
2636
|
+
/** @description List of memory keys */
|
|
2637
|
+
200: {
|
|
2638
|
+
headers: {
|
|
2639
|
+
[name: string]: unknown;
|
|
2640
|
+
};
|
|
2641
|
+
content: {
|
|
2642
|
+
"application/json": {
|
|
2643
|
+
data: components["schemas"]["MemoryListItem"][];
|
|
2644
|
+
};
|
|
2645
|
+
};
|
|
2646
|
+
};
|
|
2647
|
+
/** @description Bad request - identity required */
|
|
2648
|
+
400: {
|
|
2649
|
+
headers: {
|
|
2650
|
+
[name: string]: unknown;
|
|
2651
|
+
};
|
|
2652
|
+
content: {
|
|
2653
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2654
|
+
};
|
|
2655
|
+
};
|
|
2656
|
+
/** @description Unauthorized */
|
|
2657
|
+
401: {
|
|
2658
|
+
headers: {
|
|
2659
|
+
[name: string]: unknown;
|
|
2660
|
+
};
|
|
2661
|
+
content: {
|
|
2662
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2663
|
+
};
|
|
2664
|
+
};
|
|
2665
|
+
};
|
|
2666
|
+
};
|
|
2667
|
+
storeMemory: {
|
|
2668
|
+
parameters: {
|
|
2669
|
+
query?: never;
|
|
2670
|
+
header?: never;
|
|
2671
|
+
path?: never;
|
|
2672
|
+
cookie?: never;
|
|
2673
|
+
};
|
|
2674
|
+
requestBody?: {
|
|
2675
|
+
content: {
|
|
2676
|
+
"application/json": {
|
|
2677
|
+
identity: components["schemas"]["MemoryIdentity"] & unknown;
|
|
2678
|
+
/** @description Memory key */
|
|
2679
|
+
key: string;
|
|
2680
|
+
/** @description Value to store */
|
|
2681
|
+
value?: unknown;
|
|
2682
|
+
/**
|
|
2683
|
+
* Format: date-time
|
|
2684
|
+
* @description Optional expiration time (ISO 8601)
|
|
2685
|
+
*/
|
|
2686
|
+
expiresAt?: string;
|
|
2687
|
+
};
|
|
2688
|
+
};
|
|
2689
|
+
};
|
|
2690
|
+
responses: {
|
|
2691
|
+
/** @description Memory stored successfully */
|
|
2692
|
+
200: {
|
|
2693
|
+
headers: {
|
|
2694
|
+
[name: string]: unknown;
|
|
2695
|
+
};
|
|
2696
|
+
content: {
|
|
2697
|
+
"application/json": components["schemas"]["Memory"];
|
|
2698
|
+
};
|
|
2699
|
+
};
|
|
2700
|
+
/** @description Bad request */
|
|
2701
|
+
400: {
|
|
2702
|
+
headers: {
|
|
2703
|
+
[name: string]: unknown;
|
|
2704
|
+
};
|
|
2705
|
+
content: {
|
|
2706
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2707
|
+
};
|
|
2708
|
+
};
|
|
2709
|
+
/** @description Unauthorized */
|
|
2710
|
+
401: {
|
|
2711
|
+
headers: {
|
|
2712
|
+
[name: string]: unknown;
|
|
2713
|
+
};
|
|
2714
|
+
content: {
|
|
2715
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2716
|
+
};
|
|
2717
|
+
};
|
|
2718
|
+
};
|
|
2719
|
+
};
|
|
2720
|
+
deleteAllMemories: {
|
|
2721
|
+
parameters: {
|
|
2722
|
+
query?: never;
|
|
2723
|
+
header?: never;
|
|
2724
|
+
path?: never;
|
|
2725
|
+
cookie?: never;
|
|
2726
|
+
};
|
|
2727
|
+
requestBody?: never;
|
|
2728
|
+
responses: {
|
|
2729
|
+
/** @description Memories deleted */
|
|
2730
|
+
200: {
|
|
2731
|
+
headers: {
|
|
2732
|
+
[name: string]: unknown;
|
|
2733
|
+
};
|
|
2734
|
+
content: {
|
|
2735
|
+
"application/json": {
|
|
2736
|
+
/** @description Number of memories deleted */
|
|
2737
|
+
deleted: number;
|
|
2738
|
+
};
|
|
2739
|
+
};
|
|
2740
|
+
};
|
|
2741
|
+
/** @description Bad request - identity required */
|
|
2742
|
+
400: {
|
|
2743
|
+
headers: {
|
|
2744
|
+
[name: string]: unknown;
|
|
2745
|
+
};
|
|
2746
|
+
content: {
|
|
2747
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2748
|
+
};
|
|
2749
|
+
};
|
|
2750
|
+
/** @description Unauthorized */
|
|
2751
|
+
401: {
|
|
2752
|
+
headers: {
|
|
2753
|
+
[name: string]: unknown;
|
|
2754
|
+
};
|
|
2755
|
+
content: {
|
|
2756
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2757
|
+
};
|
|
2758
|
+
};
|
|
2759
|
+
};
|
|
2760
|
+
};
|
|
2761
|
+
getMemory: {
|
|
2762
|
+
parameters: {
|
|
2763
|
+
query?: never;
|
|
2764
|
+
header?: never;
|
|
2765
|
+
path: {
|
|
2766
|
+
/** @description Memory key */
|
|
2767
|
+
key: string;
|
|
2768
|
+
};
|
|
2769
|
+
cookie?: never;
|
|
2770
|
+
};
|
|
2771
|
+
requestBody?: never;
|
|
2772
|
+
responses: {
|
|
2773
|
+
/** @description Memory value */
|
|
2774
|
+
200: {
|
|
2775
|
+
headers: {
|
|
2776
|
+
[name: string]: unknown;
|
|
2777
|
+
};
|
|
2778
|
+
content: {
|
|
2779
|
+
"application/json": components["schemas"]["Memory"];
|
|
2780
|
+
};
|
|
2781
|
+
};
|
|
2782
|
+
/** @description Bad request - identity required */
|
|
2783
|
+
400: {
|
|
2784
|
+
headers: {
|
|
2785
|
+
[name: string]: unknown;
|
|
2786
|
+
};
|
|
2787
|
+
content: {
|
|
2788
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2789
|
+
};
|
|
2790
|
+
};
|
|
2791
|
+
/** @description Unauthorized */
|
|
2792
|
+
401: {
|
|
2793
|
+
headers: {
|
|
2794
|
+
[name: string]: unknown;
|
|
2795
|
+
};
|
|
2796
|
+
content: {
|
|
2797
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2798
|
+
};
|
|
2799
|
+
};
|
|
2800
|
+
/** @description Memory not found */
|
|
2801
|
+
404: {
|
|
2802
|
+
headers: {
|
|
2803
|
+
[name: string]: unknown;
|
|
2804
|
+
};
|
|
2805
|
+
content: {
|
|
2806
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2807
|
+
};
|
|
2808
|
+
};
|
|
2809
|
+
};
|
|
2810
|
+
};
|
|
2811
|
+
deleteMemory: {
|
|
2812
|
+
parameters: {
|
|
2813
|
+
query?: never;
|
|
2814
|
+
header?: never;
|
|
2815
|
+
path: {
|
|
2816
|
+
/** @description Memory key */
|
|
2817
|
+
key: string;
|
|
2818
|
+
};
|
|
2819
|
+
cookie?: never;
|
|
2820
|
+
};
|
|
2821
|
+
requestBody?: never;
|
|
2822
|
+
responses: {
|
|
2823
|
+
/** @description Memory deleted successfully */
|
|
2824
|
+
204: {
|
|
2825
|
+
headers: {
|
|
2826
|
+
[name: string]: unknown;
|
|
2827
|
+
};
|
|
2828
|
+
content?: never;
|
|
2829
|
+
};
|
|
2830
|
+
/** @description Bad request - identity required */
|
|
2831
|
+
400: {
|
|
2832
|
+
headers: {
|
|
2833
|
+
[name: string]: unknown;
|
|
2834
|
+
};
|
|
2835
|
+
content: {
|
|
2836
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2837
|
+
};
|
|
2838
|
+
};
|
|
2839
|
+
/** @description Unauthorized */
|
|
2840
|
+
401: {
|
|
2841
|
+
headers: {
|
|
2842
|
+
[name: string]: unknown;
|
|
2843
|
+
};
|
|
2844
|
+
content: {
|
|
2845
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2846
|
+
};
|
|
2847
|
+
};
|
|
2848
|
+
/** @description Memory not found */
|
|
2849
|
+
404: {
|
|
2850
|
+
headers: {
|
|
2851
|
+
[name: string]: unknown;
|
|
2852
|
+
};
|
|
2853
|
+
content: {
|
|
2854
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2855
|
+
};
|
|
2856
|
+
};
|
|
2857
|
+
};
|
|
2858
|
+
};
|
|
2859
|
+
listCollections: {
|
|
2860
|
+
parameters: {
|
|
2861
|
+
query?: {
|
|
2862
|
+
limit?: number;
|
|
2863
|
+
cursor?: string;
|
|
2864
|
+
};
|
|
2865
|
+
header?: never;
|
|
2866
|
+
path?: never;
|
|
2867
|
+
cookie?: never;
|
|
2868
|
+
};
|
|
2869
|
+
requestBody?: never;
|
|
2870
|
+
responses: {
|
|
2871
|
+
/** @description List of collections */
|
|
2872
|
+
200: {
|
|
2873
|
+
headers: {
|
|
2874
|
+
[name: string]: unknown;
|
|
2875
|
+
};
|
|
2876
|
+
content: {
|
|
2877
|
+
"application/json": {
|
|
2878
|
+
data: components["schemas"]["KnowledgeCollection"][];
|
|
2879
|
+
nextCursor: string | null;
|
|
2880
|
+
hasMore: boolean;
|
|
2881
|
+
};
|
|
2882
|
+
};
|
|
2883
|
+
};
|
|
2884
|
+
/** @description Unauthorized */
|
|
2885
|
+
401: {
|
|
2886
|
+
headers: {
|
|
2887
|
+
[name: string]: unknown;
|
|
2888
|
+
};
|
|
2889
|
+
content: {
|
|
2890
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2891
|
+
};
|
|
2892
|
+
};
|
|
2893
|
+
};
|
|
2894
|
+
};
|
|
2895
|
+
createCollection: {
|
|
2896
|
+
parameters: {
|
|
2897
|
+
query?: never;
|
|
2898
|
+
header?: never;
|
|
2899
|
+
path?: never;
|
|
2900
|
+
cookie?: never;
|
|
2901
|
+
};
|
|
2902
|
+
requestBody?: {
|
|
2903
|
+
content: {
|
|
2904
|
+
"application/json": {
|
|
2905
|
+
/** @description Collection name */
|
|
2906
|
+
name: string;
|
|
2907
|
+
/** @description Collection description */
|
|
2908
|
+
description?: string;
|
|
2909
|
+
};
|
|
2910
|
+
};
|
|
2911
|
+
};
|
|
2912
|
+
responses: {
|
|
2913
|
+
/** @description Collection created */
|
|
2914
|
+
201: {
|
|
2915
|
+
headers: {
|
|
2916
|
+
[name: string]: unknown;
|
|
2917
|
+
};
|
|
2918
|
+
content: {
|
|
2919
|
+
"application/json": components["schemas"]["KnowledgeCollection"];
|
|
2920
|
+
};
|
|
2921
|
+
};
|
|
2922
|
+
/** @description Bad request */
|
|
2923
|
+
400: {
|
|
2924
|
+
headers: {
|
|
2925
|
+
[name: string]: unknown;
|
|
2926
|
+
};
|
|
2927
|
+
content: {
|
|
2928
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2931
|
+
/** @description Unauthorized */
|
|
2932
|
+
401: {
|
|
2933
|
+
headers: {
|
|
2934
|
+
[name: string]: unknown;
|
|
2935
|
+
};
|
|
2936
|
+
content: {
|
|
2937
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2938
|
+
};
|
|
2939
|
+
};
|
|
2940
|
+
};
|
|
2941
|
+
};
|
|
2942
|
+
getCollection: {
|
|
2943
|
+
parameters: {
|
|
2944
|
+
query?: never;
|
|
2945
|
+
header?: never;
|
|
2946
|
+
path: {
|
|
2947
|
+
id: string;
|
|
2948
|
+
};
|
|
2949
|
+
cookie?: never;
|
|
2950
|
+
};
|
|
2951
|
+
requestBody?: never;
|
|
2952
|
+
responses: {
|
|
2953
|
+
/** @description Collection details */
|
|
2954
|
+
200: {
|
|
2955
|
+
headers: {
|
|
2956
|
+
[name: string]: unknown;
|
|
2957
|
+
};
|
|
2958
|
+
content: {
|
|
2959
|
+
"application/json": components["schemas"]["KnowledgeCollection"];
|
|
2960
|
+
};
|
|
2961
|
+
};
|
|
2962
|
+
/** @description Unauthorized */
|
|
2963
|
+
401: {
|
|
2964
|
+
headers: {
|
|
2965
|
+
[name: string]: unknown;
|
|
2966
|
+
};
|
|
2967
|
+
content: {
|
|
2968
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2969
|
+
};
|
|
2970
|
+
};
|
|
2971
|
+
/** @description Collection not found */
|
|
2972
|
+
404: {
|
|
2973
|
+
headers: {
|
|
2974
|
+
[name: string]: unknown;
|
|
2975
|
+
};
|
|
2976
|
+
content: {
|
|
2977
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
2978
|
+
};
|
|
2979
|
+
};
|
|
2980
|
+
};
|
|
2981
|
+
};
|
|
2982
|
+
deleteCollection: {
|
|
2983
|
+
parameters: {
|
|
2984
|
+
query?: never;
|
|
2985
|
+
header?: never;
|
|
2986
|
+
path: {
|
|
2987
|
+
id: string;
|
|
2988
|
+
};
|
|
2989
|
+
cookie?: never;
|
|
2990
|
+
};
|
|
2991
|
+
requestBody?: never;
|
|
2992
|
+
responses: {
|
|
2993
|
+
/** @description Collection deleted */
|
|
2994
|
+
204: {
|
|
2995
|
+
headers: {
|
|
2996
|
+
[name: string]: unknown;
|
|
2997
|
+
};
|
|
2998
|
+
content?: never;
|
|
2999
|
+
};
|
|
3000
|
+
/** @description Collection not found */
|
|
3001
|
+
404: {
|
|
3002
|
+
headers: {
|
|
3003
|
+
[name: string]: unknown;
|
|
3004
|
+
};
|
|
3005
|
+
content: {
|
|
3006
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3007
|
+
};
|
|
3008
|
+
};
|
|
3009
|
+
};
|
|
3010
|
+
};
|
|
3011
|
+
updateCollection: {
|
|
3012
|
+
parameters: {
|
|
3013
|
+
query?: never;
|
|
3014
|
+
header?: never;
|
|
3015
|
+
path: {
|
|
3016
|
+
id: string;
|
|
3017
|
+
};
|
|
3018
|
+
cookie?: never;
|
|
3019
|
+
};
|
|
3020
|
+
requestBody?: {
|
|
3021
|
+
content: {
|
|
3022
|
+
"application/json": {
|
|
3023
|
+
name?: string;
|
|
3024
|
+
description?: string;
|
|
3025
|
+
};
|
|
3026
|
+
};
|
|
3027
|
+
};
|
|
3028
|
+
responses: {
|
|
3029
|
+
/** @description Collection updated */
|
|
3030
|
+
200: {
|
|
3031
|
+
headers: {
|
|
3032
|
+
[name: string]: unknown;
|
|
3033
|
+
};
|
|
3034
|
+
content: {
|
|
3035
|
+
"application/json": components["schemas"]["KnowledgeCollection"];
|
|
3036
|
+
};
|
|
3037
|
+
};
|
|
3038
|
+
/** @description Bad request */
|
|
3039
|
+
400: {
|
|
3040
|
+
headers: {
|
|
3041
|
+
[name: string]: unknown;
|
|
3042
|
+
};
|
|
3043
|
+
content: {
|
|
3044
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3045
|
+
};
|
|
3046
|
+
};
|
|
3047
|
+
/** @description Collection not found */
|
|
3048
|
+
404: {
|
|
3049
|
+
headers: {
|
|
3050
|
+
[name: string]: unknown;
|
|
3051
|
+
};
|
|
3052
|
+
content: {
|
|
3053
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3054
|
+
};
|
|
3055
|
+
};
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
listDocuments: {
|
|
3059
|
+
parameters: {
|
|
3060
|
+
query?: {
|
|
3061
|
+
limit?: number;
|
|
3062
|
+
cursor?: string;
|
|
3063
|
+
status?: "pending" | "processing" | "ready" | "failed";
|
|
3064
|
+
};
|
|
3065
|
+
header?: never;
|
|
3066
|
+
path: {
|
|
3067
|
+
id: string;
|
|
3068
|
+
};
|
|
3069
|
+
cookie?: never;
|
|
3070
|
+
};
|
|
3071
|
+
requestBody?: never;
|
|
3072
|
+
responses: {
|
|
3073
|
+
/** @description List of documents */
|
|
3074
|
+
200: {
|
|
3075
|
+
headers: {
|
|
3076
|
+
[name: string]: unknown;
|
|
3077
|
+
};
|
|
3078
|
+
content: {
|
|
3079
|
+
"application/json": {
|
|
3080
|
+
data: components["schemas"]["KnowledgeDocument"][];
|
|
3081
|
+
nextCursor: string | null;
|
|
3082
|
+
hasMore: boolean;
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
/** @description Collection not found */
|
|
3087
|
+
404: {
|
|
3088
|
+
headers: {
|
|
3089
|
+
[name: string]: unknown;
|
|
3090
|
+
};
|
|
3091
|
+
content: {
|
|
3092
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3093
|
+
};
|
|
3094
|
+
};
|
|
3095
|
+
};
|
|
3096
|
+
};
|
|
3097
|
+
createDocument: {
|
|
3098
|
+
parameters: {
|
|
3099
|
+
query?: never;
|
|
3100
|
+
header?: never;
|
|
3101
|
+
path: {
|
|
3102
|
+
id: string;
|
|
3103
|
+
};
|
|
3104
|
+
cookie?: never;
|
|
3105
|
+
};
|
|
3106
|
+
requestBody?: {
|
|
3107
|
+
content: {
|
|
3108
|
+
"application/json": {
|
|
3109
|
+
/** @description Document name (filename) */
|
|
3110
|
+
name: string;
|
|
3111
|
+
/** @description MIME type of the document */
|
|
3112
|
+
mimeType: string;
|
|
3113
|
+
/** @description File size in bytes */
|
|
3114
|
+
size?: number;
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
3117
|
+
};
|
|
3118
|
+
responses: {
|
|
3119
|
+
/** @description Document created with upload URL */
|
|
3120
|
+
201: {
|
|
3121
|
+
headers: {
|
|
3122
|
+
[name: string]: unknown;
|
|
3123
|
+
};
|
|
3124
|
+
content: {
|
|
3125
|
+
"application/json": {
|
|
3126
|
+
document: components["schemas"]["KnowledgeDocument"];
|
|
3127
|
+
/** @description Presigned URL for uploading the file */
|
|
3128
|
+
uploadUrl: string;
|
|
3129
|
+
};
|
|
3130
|
+
};
|
|
3131
|
+
};
|
|
3132
|
+
/** @description Collection not found */
|
|
3133
|
+
404: {
|
|
3134
|
+
headers: {
|
|
3135
|
+
[name: string]: unknown;
|
|
3136
|
+
};
|
|
3137
|
+
content: {
|
|
3138
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3139
|
+
};
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
};
|
|
3143
|
+
getDocument: {
|
|
3144
|
+
parameters: {
|
|
3145
|
+
query?: never;
|
|
3146
|
+
header?: never;
|
|
3147
|
+
path: {
|
|
3148
|
+
collectionId: string;
|
|
3149
|
+
documentId: string;
|
|
3150
|
+
};
|
|
3151
|
+
cookie?: never;
|
|
3152
|
+
};
|
|
3153
|
+
requestBody?: never;
|
|
3154
|
+
responses: {
|
|
3155
|
+
/** @description Document details */
|
|
3156
|
+
200: {
|
|
3157
|
+
headers: {
|
|
3158
|
+
[name: string]: unknown;
|
|
3159
|
+
};
|
|
3160
|
+
content: {
|
|
3161
|
+
"application/json": components["schemas"]["KnowledgeDocument"];
|
|
3162
|
+
};
|
|
3163
|
+
};
|
|
3164
|
+
/** @description Document not found */
|
|
3165
|
+
404: {
|
|
3166
|
+
headers: {
|
|
3167
|
+
[name: string]: unknown;
|
|
3168
|
+
};
|
|
3169
|
+
content: {
|
|
3170
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3171
|
+
};
|
|
3172
|
+
};
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
3175
|
+
deleteDocument: {
|
|
3176
|
+
parameters: {
|
|
3177
|
+
query?: never;
|
|
3178
|
+
header?: never;
|
|
3179
|
+
path: {
|
|
3180
|
+
collectionId: string;
|
|
3181
|
+
documentId: string;
|
|
3182
|
+
};
|
|
3183
|
+
cookie?: never;
|
|
3184
|
+
};
|
|
3185
|
+
requestBody?: never;
|
|
3186
|
+
responses: {
|
|
3187
|
+
/** @description Document deleted */
|
|
3188
|
+
204: {
|
|
3189
|
+
headers: {
|
|
3190
|
+
[name: string]: unknown;
|
|
3191
|
+
};
|
|
3192
|
+
content?: never;
|
|
3193
|
+
};
|
|
3194
|
+
/** @description Document not found */
|
|
3195
|
+
404: {
|
|
3196
|
+
headers: {
|
|
3197
|
+
[name: string]: unknown;
|
|
3198
|
+
};
|
|
3199
|
+
content: {
|
|
3200
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3201
|
+
};
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
};
|
|
3205
|
+
processDocument: {
|
|
3206
|
+
parameters: {
|
|
3207
|
+
query?: never;
|
|
3208
|
+
header?: never;
|
|
3209
|
+
path: {
|
|
3210
|
+
collectionId: string;
|
|
3211
|
+
documentId: string;
|
|
3212
|
+
};
|
|
3213
|
+
cookie?: never;
|
|
3214
|
+
};
|
|
3215
|
+
requestBody?: {
|
|
3216
|
+
content: {
|
|
3217
|
+
"application/json": {
|
|
3218
|
+
/** @description Use Unstructured.io for extraction if available */
|
|
3219
|
+
preferUnstructured?: boolean;
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
responses: {
|
|
3224
|
+
/** @description Processing started */
|
|
3225
|
+
202: {
|
|
3226
|
+
headers: {
|
|
3227
|
+
[name: string]: unknown;
|
|
3228
|
+
};
|
|
3229
|
+
content: {
|
|
3230
|
+
"application/json": {
|
|
3231
|
+
message: string;
|
|
3232
|
+
document: components["schemas"]["KnowledgeDocument"];
|
|
3233
|
+
};
|
|
3234
|
+
};
|
|
3235
|
+
};
|
|
3236
|
+
/** @description Bad request - Document already processed or processing */
|
|
3237
|
+
400: {
|
|
3238
|
+
headers: {
|
|
3239
|
+
[name: string]: unknown;
|
|
3240
|
+
};
|
|
3241
|
+
content: {
|
|
3242
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3243
|
+
};
|
|
3244
|
+
};
|
|
3245
|
+
/** @description Document not found */
|
|
3246
|
+
404: {
|
|
3247
|
+
headers: {
|
|
3248
|
+
[name: string]: unknown;
|
|
3249
|
+
};
|
|
3250
|
+
content: {
|
|
3251
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3252
|
+
};
|
|
3253
|
+
};
|
|
3254
|
+
};
|
|
3255
|
+
};
|
|
3256
|
+
searchKnowledge: {
|
|
3257
|
+
parameters: {
|
|
3258
|
+
query?: never;
|
|
3259
|
+
header?: never;
|
|
3260
|
+
path?: never;
|
|
3261
|
+
cookie?: never;
|
|
3262
|
+
};
|
|
3263
|
+
requestBody?: {
|
|
3264
|
+
content: {
|
|
3265
|
+
"application/json": {
|
|
3266
|
+
/** @description Natural language search query */
|
|
3267
|
+
query: string;
|
|
3268
|
+
/** @description Collection IDs to search */
|
|
3269
|
+
collectionIds: string[];
|
|
3270
|
+
/**
|
|
3271
|
+
* @description Maximum number of results
|
|
3272
|
+
* @default 5
|
|
3273
|
+
*/
|
|
3274
|
+
limit?: number;
|
|
3275
|
+
/**
|
|
3276
|
+
* @description Minimum similarity score (0-1)
|
|
3277
|
+
* @default 0.7
|
|
3278
|
+
*/
|
|
3279
|
+
threshold?: number;
|
|
3280
|
+
};
|
|
3281
|
+
};
|
|
3282
|
+
};
|
|
3283
|
+
responses: {
|
|
3284
|
+
/** @description Search results */
|
|
3285
|
+
200: {
|
|
3286
|
+
headers: {
|
|
3287
|
+
[name: string]: unknown;
|
|
3288
|
+
};
|
|
3289
|
+
content: {
|
|
3290
|
+
"application/json": {
|
|
3291
|
+
/** @description Number of results found */
|
|
3292
|
+
count: number;
|
|
3293
|
+
chunks: {
|
|
3294
|
+
/** @description Chunk text content */
|
|
3295
|
+
content: string;
|
|
3296
|
+
/** @description Similarity score (0-1) */
|
|
3297
|
+
score: number;
|
|
3298
|
+
/** @description Source document ID */
|
|
3299
|
+
documentId: string;
|
|
3300
|
+
/** @description Position in document */
|
|
3301
|
+
chunkIndex: number;
|
|
3302
|
+
}[];
|
|
3303
|
+
};
|
|
3304
|
+
};
|
|
3305
|
+
};
|
|
3306
|
+
/** @description Bad request */
|
|
3307
|
+
400: {
|
|
3308
|
+
headers: {
|
|
3309
|
+
[name: string]: unknown;
|
|
3310
|
+
};
|
|
3311
|
+
content: {
|
|
3312
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3313
|
+
};
|
|
3314
|
+
};
|
|
3315
|
+
};
|
|
3316
|
+
};
|
|
2296
3317
|
}
|
|
2297
3318
|
//# sourceMappingURL=api-types.d.ts.map
|