@reminix/sdk 0.11.0 → 0.13.0
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/CHANGELOG.md +21 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agents.d.mts +112 -27
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +112 -27
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +2 -2
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +2 -2
- package/resources/agents.mjs.map +1 -1
- package/resources/execution-logs.d.mts +3 -3
- package/resources/execution-logs.d.mts.map +1 -1
- package/resources/execution-logs.d.ts +3 -3
- package/resources/execution-logs.d.ts.map +1 -1
- package/resources/execution-logs.js +1 -1
- package/resources/execution-logs.mjs +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge/collections/collections.d.mts +89 -0
- package/resources/knowledge/collections/collections.d.mts.map +1 -0
- package/resources/knowledge/collections/collections.d.ts +89 -0
- package/resources/knowledge/collections/collections.d.ts.map +1 -0
- package/resources/knowledge/collections/collections.js +56 -0
- package/resources/knowledge/collections/collections.js.map +1 -0
- package/resources/knowledge/collections/collections.mjs +51 -0
- package/resources/knowledge/collections/collections.mjs.map +1 -0
- package/resources/knowledge/collections/documents.d.mts +121 -0
- package/resources/knowledge/collections/documents.d.mts.map +1 -0
- package/resources/knowledge/collections/documents.d.ts +121 -0
- package/resources/knowledge/collections/documents.d.ts.map +1 -0
- package/resources/knowledge/collections/documents.js +62 -0
- package/resources/knowledge/collections/documents.js.map +1 -0
- package/resources/knowledge/collections/documents.mjs +58 -0
- package/resources/knowledge/collections/documents.mjs.map +1 -0
- package/resources/knowledge/collections/index.d.mts +3 -0
- package/resources/knowledge/collections/index.d.mts.map +1 -0
- package/resources/knowledge/collections/index.d.ts +3 -0
- package/resources/knowledge/collections/index.d.ts.map +1 -0
- package/resources/knowledge/collections/index.js +9 -0
- package/resources/knowledge/collections/index.js.map +1 -0
- package/resources/knowledge/collections/index.mjs +4 -0
- package/resources/knowledge/collections/index.mjs.map +1 -0
- package/resources/knowledge/collections.d.mts +2 -0
- package/resources/knowledge/collections.d.mts.map +1 -0
- package/resources/knowledge/collections.d.ts +2 -0
- package/resources/knowledge/collections.d.ts.map +1 -0
- package/resources/knowledge/collections.js +6 -0
- package/resources/knowledge/collections.js.map +1 -0
- package/resources/knowledge/collections.mjs +3 -0
- package/resources/knowledge/collections.mjs.map +1 -0
- package/resources/knowledge/index.d.mts +3 -0
- package/resources/knowledge/index.d.mts.map +1 -0
- package/resources/knowledge/index.d.ts +3 -0
- package/resources/knowledge/index.d.ts.map +1 -0
- package/resources/knowledge/index.js +9 -0
- package/resources/knowledge/index.js.map +1 -0
- package/resources/knowledge/index.mjs +4 -0
- package/resources/knowledge/index.mjs.map +1 -0
- package/resources/knowledge/knowledge.d.mts +65 -0
- package/resources/knowledge/knowledge.d.mts.map +1 -0
- package/resources/knowledge/knowledge.d.ts +65 -0
- package/resources/knowledge/knowledge.d.ts.map +1 -0
- package/resources/knowledge/knowledge.js +26 -0
- package/resources/knowledge/knowledge.js.map +1 -0
- package/resources/knowledge/knowledge.mjs +21 -0
- package/resources/knowledge/knowledge.mjs.map +1 -0
- package/resources/knowledge.d.mts +2 -0
- package/resources/knowledge.d.mts.map +1 -0
- package/resources/knowledge.d.ts +2 -0
- package/resources/knowledge.d.ts.map +1 -0
- package/resources/knowledge.js +6 -0
- package/resources/knowledge.js.map +1 -0
- package/resources/knowledge.mjs +3 -0
- package/resources/knowledge.mjs.map +1 -0
- package/resources/memory.d.mts +148 -0
- package/resources/memory.d.mts.map +1 -0
- package/resources/memory.d.ts +148 -0
- package/resources/memory.d.ts.map +1 -0
- package/resources/memory.js +82 -0
- package/resources/memory.js.map +1 -0
- package/resources/memory.mjs +78 -0
- package/resources/memory.mjs.map +1 -0
- package/resources/tools.d.mts +69 -11
- package/resources/tools.d.mts.map +1 -1
- package/resources/tools.d.ts +69 -11
- package/resources/tools.d.ts.map +1 -1
- package/resources/tools.js +7 -7
- package/resources/tools.js.map +1 -1
- package/resources/tools.mjs +7 -7
- package/resources/tools.mjs.map +1 -1
- package/src/client.ts +42 -12
- package/src/resources/agents.ts +142 -40
- package/src/resources/execution-logs.ts +3 -3
- package/src/resources/index.ts +16 -6
- package/src/resources/knowledge/collections/collections.ts +167 -0
- package/src/resources/knowledge/collections/documents.ts +200 -0
- package/src/resources/knowledge/collections/index.ts +22 -0
- package/src/resources/knowledge/collections.ts +3 -0
- package/src/resources/knowledge/index.ts +11 -0
- package/src/resources/knowledge/knowledge.ts +101 -0
- package/src/resources/knowledge.ts +3 -0
- package/src/resources/memory.ts +188 -0
- package/src/resources/tools.ts +81 -13
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/tools.d.ts
CHANGED
|
@@ -26,25 +26,25 @@ export declare class Tools extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
list(query?: ToolListParams | null | undefined, options?: RequestOptions): PagePromise<ToolsCursor, Tool>;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Call a tool with the provided input parameters.
|
|
30
30
|
*
|
|
31
|
-
* **Timeout:** Tool
|
|
32
|
-
*
|
|
31
|
+
* **Timeout:** Tool calls have a 60-second timeout. If the tool takes longer to
|
|
32
|
+
* respond, you will receive a 504 Gateway Timeout error.
|
|
33
33
|
*
|
|
34
34
|
* **Use cases:**
|
|
35
35
|
*
|
|
36
36
|
* - Calling custom tools from your deployment
|
|
37
|
-
* -
|
|
37
|
+
* - Invoking utility functions
|
|
38
38
|
* - Integrating with external services via tools
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
41
|
* ```ts
|
|
42
|
-
* const response = await client.tools.
|
|
42
|
+
* const response = await client.tools.call('x', {
|
|
43
43
|
* input: { name: 'World', greeting: 'Hello' },
|
|
44
44
|
* });
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
|
|
47
|
+
call(name: string, body: ToolCallParams, options?: RequestOptions): APIPromise<ToolCallResponse>;
|
|
48
48
|
}
|
|
49
49
|
export type ToolsCursor = Cursor<Tool>;
|
|
50
50
|
export interface Tool {
|
|
@@ -103,26 +103,84 @@ export declare namespace Tool {
|
|
|
103
103
|
* JSON Schema for agent input parameters
|
|
104
104
|
*/
|
|
105
105
|
interface Output {
|
|
106
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Default value for the property
|
|
108
|
+
*/
|
|
109
|
+
default?: unknown;
|
|
110
|
+
/**
|
|
111
|
+
* Description of the schema
|
|
112
|
+
*/
|
|
113
|
+
description?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Enumeration of allowed values
|
|
116
|
+
*/
|
|
117
|
+
enum?: Array<unknown>;
|
|
118
|
+
/**
|
|
119
|
+
* Schema for array items
|
|
120
|
+
*/
|
|
121
|
+
items?: unknown;
|
|
122
|
+
/**
|
|
123
|
+
* Property definitions for object types
|
|
124
|
+
*/
|
|
107
125
|
properties?: {
|
|
108
126
|
[key: string]: unknown;
|
|
109
127
|
};
|
|
128
|
+
/**
|
|
129
|
+
* List of required property names
|
|
130
|
+
*/
|
|
110
131
|
required?: Array<string>;
|
|
132
|
+
/**
|
|
133
|
+
* Human-readable title
|
|
134
|
+
*/
|
|
135
|
+
title?: string;
|
|
136
|
+
/**
|
|
137
|
+
* JSON Schema type (e.g., "object", "string", "array")
|
|
138
|
+
*/
|
|
139
|
+
type?: string;
|
|
111
140
|
[k: string]: unknown;
|
|
112
141
|
}
|
|
113
142
|
/**
|
|
114
143
|
* JSON Schema for agent input parameters
|
|
115
144
|
*/
|
|
116
145
|
interface Parameters {
|
|
117
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Default value for the property
|
|
148
|
+
*/
|
|
149
|
+
default?: unknown;
|
|
150
|
+
/**
|
|
151
|
+
* Description of the schema
|
|
152
|
+
*/
|
|
153
|
+
description?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Enumeration of allowed values
|
|
156
|
+
*/
|
|
157
|
+
enum?: Array<unknown>;
|
|
158
|
+
/**
|
|
159
|
+
* Schema for array items
|
|
160
|
+
*/
|
|
161
|
+
items?: unknown;
|
|
162
|
+
/**
|
|
163
|
+
* Property definitions for object types
|
|
164
|
+
*/
|
|
118
165
|
properties?: {
|
|
119
166
|
[key: string]: unknown;
|
|
120
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* List of required property names
|
|
170
|
+
*/
|
|
121
171
|
required?: Array<string>;
|
|
172
|
+
/**
|
|
173
|
+
* Human-readable title
|
|
174
|
+
*/
|
|
175
|
+
title?: string;
|
|
176
|
+
/**
|
|
177
|
+
* JSON Schema type (e.g., "object", "string", "array")
|
|
178
|
+
*/
|
|
179
|
+
type?: string;
|
|
122
180
|
[k: string]: unknown;
|
|
123
181
|
}
|
|
124
182
|
}
|
|
125
|
-
export interface
|
|
183
|
+
export interface ToolCallResponse {
|
|
126
184
|
/**
|
|
127
185
|
* Output from the tool execution.
|
|
128
186
|
*/
|
|
@@ -138,7 +196,7 @@ export interface ToolListParams extends CursorParams {
|
|
|
138
196
|
*/
|
|
139
197
|
type?: string;
|
|
140
198
|
}
|
|
141
|
-
export interface
|
|
199
|
+
export interface ToolCallParams {
|
|
142
200
|
/**
|
|
143
201
|
* Input parameters for the tool. Structure depends on tool definition.
|
|
144
202
|
*/
|
|
@@ -147,6 +205,6 @@ export interface ToolExecuteParams {
|
|
|
147
205
|
};
|
|
148
206
|
}
|
|
149
207
|
export declare namespace Tools {
|
|
150
|
-
export { type Tool as Tool, type
|
|
208
|
+
export { type Tool as Tool, type ToolCallResponse as ToolCallResponse, type ToolsCursor as ToolsCursor, type ToolListParams as ToolListParams, type ToolCallParams as ToolCallParams, };
|
|
151
209
|
}
|
|
152
210
|
//# sourceMappingURL=tools.d.ts.map
|
package/resources/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIlE;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC;IAIjC;;;;;;;;;;;;;;;;;;OAkBG;IACH,
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAIlE;;;;;;;;;;;OAWG;IACH,IAAI,CACF,KAAK,GAAE,cAAc,GAAG,IAAI,GAAG,SAAc,EAC7C,O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,CAAC;IAC7B,OAAO,EACL,KAAK,IAAI,IAAI,IAAI,EACjB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/tools.js
CHANGED
|
@@ -33,26 +33,26 @@ class Tools extends resource_1.APIResource {
|
|
|
33
33
|
return this._client.getAPIList('/tools', (pagination_1.Cursor), { query, ...options });
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Call a tool with the provided input parameters.
|
|
37
37
|
*
|
|
38
|
-
* **Timeout:** Tool
|
|
39
|
-
*
|
|
38
|
+
* **Timeout:** Tool calls have a 60-second timeout. If the tool takes longer to
|
|
39
|
+
* respond, you will receive a 504 Gateway Timeout error.
|
|
40
40
|
*
|
|
41
41
|
* **Use cases:**
|
|
42
42
|
*
|
|
43
43
|
* - Calling custom tools from your deployment
|
|
44
|
-
* -
|
|
44
|
+
* - Invoking utility functions
|
|
45
45
|
* - Integrating with external services via tools
|
|
46
46
|
*
|
|
47
47
|
* @example
|
|
48
48
|
* ```ts
|
|
49
|
-
* const response = await client.tools.
|
|
49
|
+
* const response = await client.tools.call('x', {
|
|
50
50
|
* input: { name: 'World', greeting: 'Hello' },
|
|
51
51
|
* });
|
|
52
52
|
* ```
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
return this._client.post((0, path_1.path) `/tools/${name}/
|
|
54
|
+
call(name, body, options) {
|
|
55
|
+
return this._client.post((0, path_1.path) `/tools/${name}/call`, { body, ...options });
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
exports.Tools = Tools;
|
package/resources/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA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AAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5E,CAAC;CACF;AAtDD,sBAsDC"}
|
package/resources/tools.mjs
CHANGED
|
@@ -30,26 +30,26 @@ export class Tools extends APIResource {
|
|
|
30
30
|
return this._client.getAPIList('/tools', (Cursor), { query, ...options });
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Call a tool with the provided input parameters.
|
|
34
34
|
*
|
|
35
|
-
* **Timeout:** Tool
|
|
36
|
-
*
|
|
35
|
+
* **Timeout:** Tool calls have a 60-second timeout. If the tool takes longer to
|
|
36
|
+
* respond, you will receive a 504 Gateway Timeout error.
|
|
37
37
|
*
|
|
38
38
|
* **Use cases:**
|
|
39
39
|
*
|
|
40
40
|
* - Calling custom tools from your deployment
|
|
41
|
-
* -
|
|
41
|
+
* - Invoking utility functions
|
|
42
42
|
* - Integrating with external services via tools
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* ```ts
|
|
46
|
-
* const response = await client.tools.
|
|
46
|
+
* const response = await client.tools.call('x', {
|
|
47
47
|
* input: { name: 'World', greeting: 'Hello' },
|
|
48
48
|
* });
|
|
49
49
|
* ```
|
|
50
50
|
*/
|
|
51
|
-
|
|
52
|
-
return this._client.post(path `/tools/${name}/
|
|
51
|
+
call(name, body, options) {
|
|
52
|
+
return this._client.post(path `/tools/${name}/call`, { body, ...options });
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
//# sourceMappingURL=tools.mjs.map
|
package/resources/tools.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.mjs","sourceRoot":"","sources":["../src/resources/tools.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAY,EAAE,OAA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@@ import {
|
|
|
25
25
|
AgentChatParamsStreaming,
|
|
26
26
|
AgentChatResponse,
|
|
27
27
|
AgentConfig,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
AgentInvokeParams,
|
|
29
|
+
AgentInvokeParamsNonStreaming,
|
|
30
|
+
AgentInvokeParamsStreaming,
|
|
31
|
+
AgentInvokeResponse,
|
|
32
|
+
AgentKnowledgeBaseConfig,
|
|
32
33
|
AgentListParams,
|
|
34
|
+
AgentMemoryConfig,
|
|
33
35
|
Agents,
|
|
34
36
|
AgentsCursor,
|
|
35
37
|
ChatMessage,
|
|
@@ -49,15 +51,23 @@ import {
|
|
|
49
51
|
ExecutionLogs,
|
|
50
52
|
ExecutionLogsCursor,
|
|
51
53
|
} from './resources/execution-logs';
|
|
54
|
+
import {
|
|
55
|
+
Memory,
|
|
56
|
+
MemoryDeleteAllResponse,
|
|
57
|
+
MemoryListResponse,
|
|
58
|
+
MemoryResource,
|
|
59
|
+
MemoryStoreParams,
|
|
60
|
+
} from './resources/memory';
|
|
52
61
|
import { Project, Projects } from './resources/projects';
|
|
53
62
|
import {
|
|
54
63
|
Tool,
|
|
55
|
-
|
|
56
|
-
|
|
64
|
+
ToolCallParams,
|
|
65
|
+
ToolCallResponse,
|
|
57
66
|
ToolListParams,
|
|
58
67
|
Tools,
|
|
59
68
|
ToolsCursor,
|
|
60
69
|
} from './resources/tools';
|
|
70
|
+
import { Knowledge, KnowledgeSearchParams, KnowledgeSearchResponse } from './resources/knowledge/knowledge';
|
|
61
71
|
import { type Fetch } from './internal/builtin-types';
|
|
62
72
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
63
73
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -781,6 +791,8 @@ export class Reminix {
|
|
|
781
791
|
clientTokens: API.ClientTokens = new API.ClientTokens(this);
|
|
782
792
|
executionLogs: API.ExecutionLogs = new API.ExecutionLogs(this);
|
|
783
793
|
conversations: API.Conversations = new API.Conversations(this);
|
|
794
|
+
memory: API.MemoryResource = new API.MemoryResource(this);
|
|
795
|
+
knowledge: API.Knowledge = new API.Knowledge(this);
|
|
784
796
|
}
|
|
785
797
|
|
|
786
798
|
Reminix.Projects = Projects;
|
|
@@ -789,6 +801,8 @@ Reminix.Tools = Tools;
|
|
|
789
801
|
Reminix.ClientTokens = ClientTokens;
|
|
790
802
|
Reminix.ExecutionLogs = ExecutionLogs;
|
|
791
803
|
Reminix.Conversations = Conversations;
|
|
804
|
+
Reminix.MemoryResource = MemoryResource;
|
|
805
|
+
Reminix.Knowledge = Knowledge;
|
|
792
806
|
|
|
793
807
|
export declare namespace Reminix {
|
|
794
808
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -802,27 +816,29 @@ export declare namespace Reminix {
|
|
|
802
816
|
Agents as Agents,
|
|
803
817
|
type Agent as Agent,
|
|
804
818
|
type AgentConfig as AgentConfig,
|
|
819
|
+
type AgentKnowledgeBaseConfig as AgentKnowledgeBaseConfig,
|
|
820
|
+
type AgentMemoryConfig as AgentMemoryConfig,
|
|
805
821
|
type ChatMessage as ChatMessage,
|
|
806
822
|
type StreamChunk as StreamChunk,
|
|
807
823
|
type AgentChatResponse as AgentChatResponse,
|
|
808
|
-
type
|
|
824
|
+
type AgentInvokeResponse as AgentInvokeResponse,
|
|
809
825
|
type AgentsCursor as AgentsCursor,
|
|
810
826
|
type AgentListParams as AgentListParams,
|
|
811
827
|
type AgentChatParams as AgentChatParams,
|
|
812
828
|
type AgentChatParamsNonStreaming as AgentChatParamsNonStreaming,
|
|
813
829
|
type AgentChatParamsStreaming as AgentChatParamsStreaming,
|
|
814
|
-
type
|
|
815
|
-
type
|
|
816
|
-
type
|
|
830
|
+
type AgentInvokeParams as AgentInvokeParams,
|
|
831
|
+
type AgentInvokeParamsNonStreaming as AgentInvokeParamsNonStreaming,
|
|
832
|
+
type AgentInvokeParamsStreaming as AgentInvokeParamsStreaming,
|
|
817
833
|
};
|
|
818
834
|
|
|
819
835
|
export {
|
|
820
836
|
Tools as Tools,
|
|
821
837
|
type Tool as Tool,
|
|
822
|
-
type
|
|
838
|
+
type ToolCallResponse as ToolCallResponse,
|
|
823
839
|
type ToolsCursor as ToolsCursor,
|
|
824
840
|
type ToolListParams as ToolListParams,
|
|
825
|
-
type
|
|
841
|
+
type ToolCallParams as ToolCallParams,
|
|
826
842
|
};
|
|
827
843
|
|
|
828
844
|
export {
|
|
@@ -845,4 +861,18 @@ export declare namespace Reminix {
|
|
|
845
861
|
type ConversationsCursor as ConversationsCursor,
|
|
846
862
|
type ConversationListParams as ConversationListParams,
|
|
847
863
|
};
|
|
864
|
+
|
|
865
|
+
export {
|
|
866
|
+
MemoryResource as MemoryResource,
|
|
867
|
+
type Memory as Memory,
|
|
868
|
+
type MemoryListResponse as MemoryListResponse,
|
|
869
|
+
type MemoryDeleteAllResponse as MemoryDeleteAllResponse,
|
|
870
|
+
type MemoryStoreParams as MemoryStoreParams,
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
export {
|
|
874
|
+
Knowledge as Knowledge,
|
|
875
|
+
type KnowledgeSearchResponse as KnowledgeSearchResponse,
|
|
876
|
+
type KnowledgeSearchParams as KnowledgeSearchParams,
|
|
877
|
+
};
|
|
848
878
|
}
|
package/src/resources/agents.ts
CHANGED
|
@@ -42,11 +42,8 @@ export class Agents extends APIResource {
|
|
|
42
42
|
/**
|
|
43
43
|
* Send a chat message to an agent and receive a response.
|
|
44
44
|
*
|
|
45
|
-
* **Supported Agents:**
|
|
46
|
-
*
|
|
47
|
-
* - Managed agents: Always supported
|
|
48
|
-
* - Custom agents: Only supported if agent has `messages` in both requestKeys and
|
|
49
|
-
* responseKeys
|
|
45
|
+
* **Supported Agents:** Managed agents only. Custom agents should use the /invoke
|
|
46
|
+
* endpoint.
|
|
50
47
|
*
|
|
51
48
|
* **Tool Calls:** Messages support the OpenAI tool calling format:
|
|
52
49
|
*
|
|
@@ -92,14 +89,14 @@ export class Agents extends APIResource {
|
|
|
92
89
|
}
|
|
93
90
|
|
|
94
91
|
/**
|
|
95
|
-
*
|
|
92
|
+
* Invoke a custom agent with the provided input.
|
|
96
93
|
*
|
|
97
|
-
* **
|
|
94
|
+
* **Supported Agents:** Custom agents only. Managed agents should use the /chat
|
|
95
|
+
* endpoint.
|
|
98
96
|
*
|
|
99
|
-
*
|
|
100
|
-
* - Chat agents: Pass `{ messages: [...] }` in the input
|
|
97
|
+
* **Input:** Pass structured input data matching the agent's parameter schema.
|
|
101
98
|
*
|
|
102
|
-
* **Timeout:** Agent
|
|
99
|
+
* **Timeout:** Agent invocations have a 60-second timeout. If the agent takes
|
|
103
100
|
* longer to respond, you will receive a 504 Gateway Timeout error. For
|
|
104
101
|
* long-running tasks, consider using streaming mode which does not have the same
|
|
105
102
|
* timeout constraints.
|
|
@@ -110,38 +107,38 @@ export class Agents extends APIResource {
|
|
|
110
107
|
*
|
|
111
108
|
* **Streaming:** Set `stream: true` in the request body to receive Server-Sent
|
|
112
109
|
* Events (SSE) stream with incremental chunks. Useful for long-running tasks or
|
|
113
|
-
* real-time
|
|
110
|
+
* real-time responses.
|
|
114
111
|
*
|
|
115
112
|
* @example
|
|
116
113
|
* ```ts
|
|
117
|
-
* const response = await client.agents.
|
|
114
|
+
* const response = await client.agents.invoke('name');
|
|
118
115
|
* ```
|
|
119
116
|
*/
|
|
120
|
-
|
|
117
|
+
invoke(
|
|
121
118
|
name: string,
|
|
122
|
-
body?:
|
|
119
|
+
body?: AgentInvokeParamsNonStreaming,
|
|
123
120
|
options?: RequestOptions,
|
|
124
|
-
): APIPromise<
|
|
125
|
-
|
|
121
|
+
): APIPromise<AgentInvokeResponse>;
|
|
122
|
+
invoke(
|
|
126
123
|
name: string,
|
|
127
|
-
body:
|
|
124
|
+
body: AgentInvokeParamsStreaming,
|
|
128
125
|
options?: RequestOptions,
|
|
129
126
|
): APIPromise<Stream<StreamChunk>>;
|
|
130
|
-
|
|
127
|
+
invoke(
|
|
131
128
|
name: string,
|
|
132
|
-
body?:
|
|
129
|
+
body?: AgentInvokeParamsBase | undefined,
|
|
133
130
|
options?: RequestOptions,
|
|
134
|
-
): APIPromise<Stream<StreamChunk> |
|
|
135
|
-
|
|
131
|
+
): APIPromise<Stream<StreamChunk> | AgentInvokeResponse>;
|
|
132
|
+
invoke(
|
|
136
133
|
name: string,
|
|
137
|
-
body:
|
|
134
|
+
body: AgentInvokeParams | undefined = {},
|
|
138
135
|
options?: RequestOptions,
|
|
139
|
-
): APIPromise<
|
|
140
|
-
return this._client.post(path`/agents/${name}/
|
|
136
|
+
): APIPromise<AgentInvokeResponse> | APIPromise<Stream<StreamChunk>> {
|
|
137
|
+
return this._client.post(path`/agents/${name}/invoke`, {
|
|
141
138
|
body,
|
|
142
139
|
...options,
|
|
143
140
|
stream: body?.stream ?? false,
|
|
144
|
-
}) as APIPromise<
|
|
141
|
+
}) as APIPromise<AgentInvokeResponse> | APIPromise<Stream<StreamChunk>>;
|
|
145
142
|
}
|
|
146
143
|
}
|
|
147
144
|
|
|
@@ -241,12 +238,46 @@ export namespace Agent {
|
|
|
241
238
|
* JSON Schema for agent input parameters
|
|
242
239
|
*/
|
|
243
240
|
export interface Output {
|
|
244
|
-
|
|
241
|
+
/**
|
|
242
|
+
* Default value for the property
|
|
243
|
+
*/
|
|
244
|
+
default?: unknown;
|
|
245
245
|
|
|
246
|
+
/**
|
|
247
|
+
* Description of the schema
|
|
248
|
+
*/
|
|
249
|
+
description?: string;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Enumeration of allowed values
|
|
253
|
+
*/
|
|
254
|
+
enum?: Array<unknown>;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Schema for array items
|
|
258
|
+
*/
|
|
259
|
+
items?: unknown;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Property definitions for object types
|
|
263
|
+
*/
|
|
246
264
|
properties?: { [key: string]: unknown };
|
|
247
265
|
|
|
266
|
+
/**
|
|
267
|
+
* List of required property names
|
|
268
|
+
*/
|
|
248
269
|
required?: Array<string>;
|
|
249
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Human-readable title
|
|
273
|
+
*/
|
|
274
|
+
title?: string;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* JSON Schema type (e.g., "object", "string", "array")
|
|
278
|
+
*/
|
|
279
|
+
type?: string;
|
|
280
|
+
|
|
250
281
|
[k: string]: unknown;
|
|
251
282
|
}
|
|
252
283
|
|
|
@@ -254,12 +285,46 @@ export namespace Agent {
|
|
|
254
285
|
* JSON Schema for agent input parameters
|
|
255
286
|
*/
|
|
256
287
|
export interface Parameters {
|
|
257
|
-
|
|
288
|
+
/**
|
|
289
|
+
* Default value for the property
|
|
290
|
+
*/
|
|
291
|
+
default?: unknown;
|
|
258
292
|
|
|
293
|
+
/**
|
|
294
|
+
* Description of the schema
|
|
295
|
+
*/
|
|
296
|
+
description?: string;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Enumeration of allowed values
|
|
300
|
+
*/
|
|
301
|
+
enum?: Array<unknown>;
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Schema for array items
|
|
305
|
+
*/
|
|
306
|
+
items?: unknown;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* Property definitions for object types
|
|
310
|
+
*/
|
|
259
311
|
properties?: { [key: string]: unknown };
|
|
260
312
|
|
|
313
|
+
/**
|
|
314
|
+
* List of required property names
|
|
315
|
+
*/
|
|
261
316
|
required?: Array<string>;
|
|
262
317
|
|
|
318
|
+
/**
|
|
319
|
+
* Human-readable title
|
|
320
|
+
*/
|
|
321
|
+
title?: string;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* JSON Schema type (e.g., "object", "string", "array")
|
|
325
|
+
*/
|
|
326
|
+
type?: string;
|
|
327
|
+
|
|
263
328
|
[k: string]: unknown;
|
|
264
329
|
}
|
|
265
330
|
}
|
|
@@ -288,17 +353,52 @@ export interface AgentConfig {
|
|
|
288
353
|
*/
|
|
289
354
|
tools: Array<string>;
|
|
290
355
|
|
|
356
|
+
/**
|
|
357
|
+
* Knowledge base feature configuration
|
|
358
|
+
*/
|
|
359
|
+
knowledgeBase?: AgentKnowledgeBaseConfig;
|
|
360
|
+
|
|
291
361
|
/**
|
|
292
362
|
* Maximum tool call iterations
|
|
293
363
|
*/
|
|
294
364
|
maxIterations?: number;
|
|
295
365
|
|
|
366
|
+
/**
|
|
367
|
+
* Memory feature configuration
|
|
368
|
+
*/
|
|
369
|
+
memory?: AgentMemoryConfig;
|
|
370
|
+
|
|
296
371
|
/**
|
|
297
372
|
* Whether to require approval for tool calls
|
|
298
373
|
*/
|
|
299
374
|
requireApproval?: boolean;
|
|
300
375
|
}
|
|
301
376
|
|
|
377
|
+
/**
|
|
378
|
+
* Knowledge base feature configuration
|
|
379
|
+
*/
|
|
380
|
+
export interface AgentKnowledgeBaseConfig {
|
|
381
|
+
/**
|
|
382
|
+
* Collection IDs to search
|
|
383
|
+
*/
|
|
384
|
+
collectionIds: Array<string>;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Whether knowledge base is enabled for this agent
|
|
388
|
+
*/
|
|
389
|
+
enabled: boolean;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Memory feature configuration
|
|
394
|
+
*/
|
|
395
|
+
export interface AgentMemoryConfig {
|
|
396
|
+
/**
|
|
397
|
+
* Whether memory is enabled for this agent
|
|
398
|
+
*/
|
|
399
|
+
enabled: boolean;
|
|
400
|
+
}
|
|
401
|
+
|
|
302
402
|
export interface ChatMessage {
|
|
303
403
|
/**
|
|
304
404
|
* Message content. Can be string, array (multimodal), object (tool), or null (when
|
|
@@ -384,7 +484,7 @@ export interface AgentChatResponse {
|
|
|
384
484
|
* Response with dynamic keys based on agent configuration. Regular agents return {
|
|
385
485
|
* output: ... }, chat agents return { messages: [...] }.
|
|
386
486
|
*/
|
|
387
|
-
export type
|
|
487
|
+
export type AgentInvokeResponse = { [key: string]: unknown };
|
|
388
488
|
|
|
389
489
|
export interface AgentListParams extends CursorParams {
|
|
390
490
|
/**
|
|
@@ -453,13 +553,13 @@ export interface AgentChatParamsStreaming extends AgentChatParamsBase {
|
|
|
453
553
|
stream: true;
|
|
454
554
|
}
|
|
455
555
|
|
|
456
|
-
export type
|
|
556
|
+
export type AgentInvokeParams = AgentInvokeParamsNonStreaming | AgentInvokeParamsStreaming;
|
|
457
557
|
|
|
458
|
-
export interface
|
|
558
|
+
export interface AgentInvokeParamsBase {
|
|
459
559
|
/**
|
|
460
560
|
* Optional context for the agent execution
|
|
461
561
|
*/
|
|
462
|
-
context?:
|
|
562
|
+
context?: AgentInvokeParams.Context;
|
|
463
563
|
|
|
464
564
|
/**
|
|
465
565
|
* Enable streaming response (SSE)
|
|
@@ -469,7 +569,7 @@ export interface AgentExecuteParamsBase {
|
|
|
469
569
|
[k: string]: unknown;
|
|
470
570
|
}
|
|
471
571
|
|
|
472
|
-
export namespace
|
|
572
|
+
export namespace AgentInvokeParams {
|
|
473
573
|
/**
|
|
474
574
|
* Optional context for the agent execution
|
|
475
575
|
*/
|
|
@@ -482,11 +582,11 @@ export namespace AgentExecuteParams {
|
|
|
482
582
|
[k: string]: unknown;
|
|
483
583
|
}
|
|
484
584
|
|
|
485
|
-
export type
|
|
486
|
-
export type
|
|
585
|
+
export type AgentInvokeParamsNonStreaming = AgentsAPI.AgentInvokeParamsNonStreaming;
|
|
586
|
+
export type AgentInvokeParamsStreaming = AgentsAPI.AgentInvokeParamsStreaming;
|
|
487
587
|
}
|
|
488
588
|
|
|
489
|
-
export interface
|
|
589
|
+
export interface AgentInvokeParamsNonStreaming extends AgentInvokeParamsBase {
|
|
490
590
|
/**
|
|
491
591
|
* Enable streaming response (SSE)
|
|
492
592
|
*/
|
|
@@ -495,7 +595,7 @@ export interface AgentExecuteParamsNonStreaming extends AgentExecuteParamsBase {
|
|
|
495
595
|
[k: string]: unknown;
|
|
496
596
|
}
|
|
497
597
|
|
|
498
|
-
export interface
|
|
598
|
+
export interface AgentInvokeParamsStreaming extends AgentInvokeParamsBase {
|
|
499
599
|
/**
|
|
500
600
|
* Enable streaming response (SSE)
|
|
501
601
|
*/
|
|
@@ -508,17 +608,19 @@ export declare namespace Agents {
|
|
|
508
608
|
export {
|
|
509
609
|
type Agent as Agent,
|
|
510
610
|
type AgentConfig as AgentConfig,
|
|
611
|
+
type AgentKnowledgeBaseConfig as AgentKnowledgeBaseConfig,
|
|
612
|
+
type AgentMemoryConfig as AgentMemoryConfig,
|
|
511
613
|
type ChatMessage as ChatMessage,
|
|
512
614
|
type StreamChunk as StreamChunk,
|
|
513
615
|
type AgentChatResponse as AgentChatResponse,
|
|
514
|
-
type
|
|
616
|
+
type AgentInvokeResponse as AgentInvokeResponse,
|
|
515
617
|
type AgentsCursor as AgentsCursor,
|
|
516
618
|
type AgentListParams as AgentListParams,
|
|
517
619
|
type AgentChatParams as AgentChatParams,
|
|
518
620
|
type AgentChatParamsNonStreaming as AgentChatParamsNonStreaming,
|
|
519
621
|
type AgentChatParamsStreaming as AgentChatParamsStreaming,
|
|
520
|
-
type
|
|
521
|
-
type
|
|
522
|
-
type
|
|
622
|
+
type AgentInvokeParams as AgentInvokeParams,
|
|
623
|
+
type AgentInvokeParamsNonStreaming as AgentInvokeParamsNonStreaming,
|
|
624
|
+
type AgentInvokeParamsStreaming as AgentInvokeParamsStreaming,
|
|
523
625
|
};
|
|
524
626
|
}
|