@reminix/sdk 0.9.0 → 0.11.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 +45 -0
- package/README.md +53 -6
- package/client.d.mts +20 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -11
- package/client.d.ts.map +1 -1
- package/client.js +18 -6
- package/client.js.map +1 -1
- package/client.mjs +18 -6
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +57 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +57 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +108 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +102 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/agents.d.mts +273 -148
- package/resources/agents.d.mts.map +1 -1
- package/resources/agents.d.ts +273 -148
- package/resources/agents.d.ts.map +1 -1
- package/resources/agents.js +29 -3
- package/resources/agents.js.map +1 -1
- package/resources/agents.mjs +29 -3
- package/resources/agents.mjs.map +1 -1
- package/resources/conversations.d.mts +107 -0
- package/resources/conversations.d.mts.map +1 -0
- package/resources/conversations.d.ts +107 -0
- package/resources/conversations.d.ts.map +1 -0
- package/resources/conversations.js +41 -0
- package/resources/conversations.js.map +1 -0
- package/resources/conversations.mjs +37 -0
- package/resources/conversations.mjs.map +1 -0
- package/resources/execution-logs.d.mts +93 -0
- package/resources/execution-logs.d.mts.map +1 -0
- package/resources/execution-logs.d.ts +93 -0
- package/resources/execution-logs.d.ts.map +1 -0
- package/resources/execution-logs.js +33 -0
- package/resources/execution-logs.js.map +1 -0
- package/resources/execution-logs.mjs +29 -0
- package/resources/execution-logs.mjs.map +1 -0
- package/resources/index.d.mts +5 -4
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -4
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/projects.d.mts +5 -5
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +5 -5
- package/resources/projects.d.ts.map +1 -1
- package/resources/tools.d.mts +152 -0
- package/resources/tools.d.mts.map +1 -0
- package/resources/tools.d.ts +152 -0
- package/resources/tools.d.ts.map +1 -0
- package/resources/tools.js +59 -0
- package/resources/tools.js.map +1 -0
- package/resources/tools.mjs +55 -0
- package/resources/tools.mjs.map +1 -0
- package/src/client.ts +96 -22
- package/src/core/pagination.ts +165 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/agents.ts +336 -165
- package/src/resources/conversations.ts +146 -0
- package/src/resources/execution-logs.ts +125 -0
- package/src/resources/index.ts +31 -8
- package/src/resources/projects.ts +5 -5
- package/src/resources/tools.ts +192 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/deployments.d.mts +0 -4
- package/resources/deployments.d.mts.map +0 -1
- package/resources/deployments.d.ts +0 -4
- package/resources/deployments.d.ts.map +0 -1
- package/resources/deployments.js +0 -9
- package/resources/deployments.js.map +0 -1
- package/resources/deployments.mjs +0 -5
- package/resources/deployments.mjs.map +0 -1
- package/resources/secrets.d.mts +0 -4
- package/resources/secrets.d.mts.map +0 -1
- package/resources/secrets.d.ts +0 -4
- package/resources/secrets.d.ts.map +0 -1
- package/resources/secrets.js +0 -9
- package/resources/secrets.js.map +0 -1
- package/resources/secrets.mjs +0 -5
- package/resources/secrets.mjs.map +0 -1
- package/src/resources/deployments.ts +0 -5
- package/src/resources/secrets.ts +0 -5
package/resources/agents.d.ts
CHANGED
|
@@ -1,46 +1,53 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import * as AgentsAPI from "./agents.js";
|
|
3
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
4
5
|
import { Stream } from "../core/streaming.js";
|
|
5
6
|
import { RequestOptions } from "../internal/request-options.js";
|
|
6
7
|
export declare class Agents extends APIResource {
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
-
* conversation context through the messages array, allowing for multi-turn
|
|
10
|
-
* conversations.
|
|
9
|
+
* Get details of a specific agent by name.
|
|
11
10
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const agent = await client.agents.retrieve('x');
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
retrieve(name: string, options?: RequestOptions): APIPromise<Agent>;
|
|
17
|
+
/**
|
|
18
|
+
* List all agents in the project with optional filtering by type and status.
|
|
16
19
|
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* // Automatically fetches more pages as needed.
|
|
23
|
+
* for await (const agent of client.agents.list()) {
|
|
24
|
+
* // ...
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentsCursor, Agent>;
|
|
29
|
+
/**
|
|
30
|
+
* Send a chat message to an agent and receive a response.
|
|
20
31
|
*
|
|
21
|
-
* **
|
|
32
|
+
* **Supported Agents:**
|
|
22
33
|
*
|
|
23
|
-
* -
|
|
24
|
-
* -
|
|
25
|
-
*
|
|
26
|
-
* - Conversational agents that need context
|
|
34
|
+
* - Managed agents: Always supported
|
|
35
|
+
* - Custom agents: Only supported if agent has `messages` in both requestKeys and
|
|
36
|
+
* responseKeys
|
|
27
37
|
*
|
|
28
|
-
* **
|
|
38
|
+
* **Tool Calls:** Messages support the OpenAI tool calling format:
|
|
29
39
|
*
|
|
30
|
-
* -
|
|
31
|
-
* -
|
|
32
|
-
* -
|
|
40
|
+
* - Assistant messages can include `tool_calls` array with function calls
|
|
41
|
+
* - Tool result messages use `role: "tool"` with `tool_call_id` and `name`
|
|
42
|
+
* - Content can be `null` when `tool_calls` is present
|
|
33
43
|
*
|
|
34
|
-
* **Streaming:** Set `stream: true`
|
|
35
|
-
*
|
|
36
|
-
* chat interfaces.
|
|
44
|
+
* **Streaming:** Set `stream: true` to receive Server-Sent Events (SSE) for
|
|
45
|
+
* real-time responses.
|
|
37
46
|
*
|
|
38
47
|
* @example
|
|
39
48
|
* ```ts
|
|
40
49
|
* const response = await client.agents.chat('name', {
|
|
41
|
-
* messages: [
|
|
42
|
-
* { role: 'user', content: 'What is the weather today?' },
|
|
43
|
-
* ],
|
|
50
|
+
* messages: [{ content: 'string', role: 'system' }],
|
|
44
51
|
* });
|
|
45
52
|
* ```
|
|
46
53
|
*/
|
|
@@ -48,10 +55,14 @@ export declare class Agents extends APIResource {
|
|
|
48
55
|
chat(name: string, body: AgentChatParamsStreaming, options?: RequestOptions): APIPromise<Stream<StreamChunk>>;
|
|
49
56
|
chat(name: string, body: AgentChatParamsBase, options?: RequestOptions): APIPromise<Stream<StreamChunk> | AgentChatResponse>;
|
|
50
57
|
/**
|
|
51
|
-
* Execute
|
|
52
|
-
*
|
|
58
|
+
* Execute an agent with the provided input.
|
|
59
|
+
*
|
|
60
|
+
* **Agent Types:**
|
|
61
|
+
*
|
|
62
|
+
* - Task-oriented agents: Pass structured input data
|
|
63
|
+
* - Chat agents: Pass `{ messages: [...] }` in the input
|
|
53
64
|
*
|
|
54
|
-
* **Timeout:** Agent
|
|
65
|
+
* **Timeout:** Agent executions have a 60-second timeout. If the agent takes
|
|
55
66
|
* longer to respond, you will receive a 504 Gateway Timeout error. For
|
|
56
67
|
* long-running tasks, consider using streaming mode which does not have the same
|
|
57
68
|
* timeout constraints.
|
|
@@ -60,203 +71,317 @@ export declare class Agents extends APIResource {
|
|
|
60
71
|
* with a unique value (e.g., UUID) to ensure duplicate requests return the same
|
|
61
72
|
* response. Keys are valid for 24 hours. Streaming responses are not cached.
|
|
62
73
|
*
|
|
63
|
-
* **Use cases:**
|
|
64
|
-
*
|
|
65
|
-
* - Data analysis and processing
|
|
66
|
-
* - Content generation (with streaming for long outputs)
|
|
67
|
-
* - One-time operations that don't require conversation history
|
|
68
|
-
* - API-like operations
|
|
69
|
-
*
|
|
70
74
|
* **Streaming:** Set `stream: true` in the request body to receive Server-Sent
|
|
71
75
|
* Events (SSE) stream with incremental chunks. Useful for long-running tasks or
|
|
72
|
-
* real-time
|
|
76
|
+
* real-time chat interfaces.
|
|
73
77
|
*
|
|
74
78
|
* @example
|
|
75
79
|
* ```ts
|
|
76
|
-
* const response = await client.agents.
|
|
77
|
-
* input: {
|
|
78
|
-
* task: 'analyze this data',
|
|
79
|
-
* data: { value: 123, items: ['a', 'b', 'c'] },
|
|
80
|
-
* },
|
|
81
|
-
* });
|
|
80
|
+
* const response = await client.agents.execute('name');
|
|
82
81
|
* ```
|
|
83
82
|
*/
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
execute(name: string, body?: AgentExecuteParamsNonStreaming, options?: RequestOptions): APIPromise<AgentExecuteResponse>;
|
|
84
|
+
execute(name: string, body: AgentExecuteParamsStreaming, options?: RequestOptions): APIPromise<Stream<StreamChunk>>;
|
|
85
|
+
execute(name: string, body?: AgentExecuteParamsBase | undefined, options?: RequestOptions): APIPromise<Stream<StreamChunk> | AgentExecuteResponse>;
|
|
86
|
+
}
|
|
87
|
+
export type AgentsCursor = Cursor<Agent>;
|
|
88
|
+
export interface Agent {
|
|
89
|
+
/**
|
|
90
|
+
* Unique agent ID
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
* Whether agent supports chat interface
|
|
95
|
+
*/
|
|
96
|
+
canChat: boolean | null;
|
|
97
|
+
/**
|
|
98
|
+
* Whether agent supports streaming
|
|
99
|
+
*/
|
|
100
|
+
canStream: boolean | null;
|
|
101
|
+
/**
|
|
102
|
+
* Agent configuration (for managed agents)
|
|
103
|
+
*/
|
|
104
|
+
config: AgentConfig | null;
|
|
105
|
+
/**
|
|
106
|
+
* Creation timestamp
|
|
107
|
+
*/
|
|
108
|
+
createdAt: string;
|
|
109
|
+
/**
|
|
110
|
+
* User who created the agent
|
|
111
|
+
*/
|
|
112
|
+
createdBy: string | null;
|
|
113
|
+
/**
|
|
114
|
+
* Agent description
|
|
115
|
+
*/
|
|
116
|
+
description: string | null;
|
|
117
|
+
/**
|
|
118
|
+
* When the agent was discovered (for custom agents)
|
|
119
|
+
*/
|
|
120
|
+
discoveredAt: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* Agent name
|
|
123
|
+
*/
|
|
124
|
+
name: string;
|
|
125
|
+
/**
|
|
126
|
+
* JSON Schema for agent input parameters
|
|
127
|
+
*/
|
|
128
|
+
output: Agent.Output | null;
|
|
129
|
+
/**
|
|
130
|
+
* JSON Schema for agent input parameters
|
|
131
|
+
*/
|
|
132
|
+
parameters: Agent.Parameters | null;
|
|
133
|
+
/**
|
|
134
|
+
* Project ID
|
|
135
|
+
*/
|
|
136
|
+
projectId: string;
|
|
137
|
+
/**
|
|
138
|
+
* Top-level keys expected in request body
|
|
139
|
+
*/
|
|
140
|
+
requestKeys: Array<string> | null;
|
|
141
|
+
/**
|
|
142
|
+
* Top-level keys returned in response body
|
|
143
|
+
*/
|
|
144
|
+
responseKeys: Array<string> | null;
|
|
145
|
+
/**
|
|
146
|
+
* Agent status
|
|
147
|
+
*/
|
|
148
|
+
status: 'active' | 'inactive';
|
|
149
|
+
/**
|
|
150
|
+
* Agent type: "managed" for UI-created, "{language}" for custom agents (e.g.,
|
|
151
|
+
* "python"), or "{language}-{adapter}" for adapter-based (e.g.,
|
|
152
|
+
* "python-langchain")
|
|
153
|
+
*/
|
|
154
|
+
type: string;
|
|
155
|
+
/**
|
|
156
|
+
* Last update timestamp
|
|
157
|
+
*/
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
}
|
|
160
|
+
export declare namespace Agent {
|
|
161
|
+
/**
|
|
162
|
+
* JSON Schema for agent input parameters
|
|
163
|
+
*/
|
|
164
|
+
interface Output {
|
|
165
|
+
type: string;
|
|
166
|
+
properties?: {
|
|
167
|
+
[key: string]: unknown;
|
|
168
|
+
};
|
|
169
|
+
required?: Array<string>;
|
|
170
|
+
[k: string]: unknown;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* JSON Schema for agent input parameters
|
|
174
|
+
*/
|
|
175
|
+
interface Parameters {
|
|
176
|
+
type: string;
|
|
177
|
+
properties?: {
|
|
178
|
+
[key: string]: unknown;
|
|
179
|
+
};
|
|
180
|
+
required?: Array<string>;
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
}
|
|
87
183
|
}
|
|
88
184
|
/**
|
|
89
|
-
*
|
|
185
|
+
* Agent configuration (for managed agents)
|
|
90
186
|
*/
|
|
91
|
-
export interface
|
|
187
|
+
export interface AgentConfig {
|
|
92
188
|
/**
|
|
93
|
-
*
|
|
189
|
+
* Model identifier (e.g., "gpt-4o", "claude-sonnet-4-20250514")
|
|
94
190
|
*/
|
|
95
|
-
|
|
191
|
+
model: string;
|
|
96
192
|
/**
|
|
97
|
-
*
|
|
193
|
+
* LLM provider
|
|
98
194
|
*/
|
|
99
|
-
|
|
195
|
+
provider: 'openai' | 'anthropic';
|
|
196
|
+
/**
|
|
197
|
+
* System prompt for the agent
|
|
198
|
+
*/
|
|
199
|
+
systemPrompt: string;
|
|
200
|
+
/**
|
|
201
|
+
* List of tools available to the agent
|
|
202
|
+
*/
|
|
203
|
+
tools: Array<string>;
|
|
204
|
+
/**
|
|
205
|
+
* Maximum tool call iterations
|
|
206
|
+
*/
|
|
207
|
+
maxIterations?: number;
|
|
208
|
+
/**
|
|
209
|
+
* Whether to require approval for tool calls
|
|
210
|
+
*/
|
|
211
|
+
requireApproval?: boolean;
|
|
212
|
+
}
|
|
213
|
+
export interface ChatMessage {
|
|
214
|
+
/**
|
|
215
|
+
* Message content. Can be string, array (multimodal), object (tool), or null (when
|
|
216
|
+
* tool_calls present).
|
|
217
|
+
*/
|
|
218
|
+
content: string | Array<ChatMessage.MultimodalContent> | {
|
|
100
219
|
[key: string]: unknown;
|
|
101
|
-
};
|
|
220
|
+
} | null;
|
|
221
|
+
/**
|
|
222
|
+
* Message role
|
|
223
|
+
*/
|
|
224
|
+
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
225
|
+
/**
|
|
226
|
+
* Tool name (required when role is "tool")
|
|
227
|
+
*/
|
|
228
|
+
name?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Tool call ID (for tool role messages)
|
|
231
|
+
*/
|
|
232
|
+
tool_call_id?: string;
|
|
102
233
|
/**
|
|
103
|
-
*
|
|
234
|
+
* Tool calls requested by assistant (for assistant role messages)
|
|
104
235
|
*/
|
|
105
|
-
|
|
236
|
+
tool_calls?: Array<ChatMessage.ToolCall>;
|
|
237
|
+
}
|
|
238
|
+
export declare namespace ChatMessage {
|
|
239
|
+
interface MultimodalContent {
|
|
240
|
+
type: 'text' | 'image_url';
|
|
241
|
+
image_url?: MultimodalContent.ImageURL;
|
|
242
|
+
text?: string;
|
|
243
|
+
}
|
|
244
|
+
namespace MultimodalContent {
|
|
245
|
+
interface ImageURL {
|
|
246
|
+
url: string;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
interface ToolCall {
|
|
250
|
+
id: string;
|
|
251
|
+
function: ToolCall.Function;
|
|
252
|
+
type: 'function';
|
|
253
|
+
}
|
|
254
|
+
namespace ToolCall {
|
|
255
|
+
interface Function {
|
|
256
|
+
arguments: string;
|
|
257
|
+
name: string;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
106
260
|
}
|
|
107
261
|
export interface StreamChunk {
|
|
108
262
|
/**
|
|
109
263
|
* Text chunk from the stream
|
|
110
264
|
*/
|
|
111
265
|
chunk: string;
|
|
266
|
+
[k: string]: unknown;
|
|
112
267
|
}
|
|
113
268
|
export interface AgentChatResponse {
|
|
114
269
|
/**
|
|
115
|
-
*
|
|
270
|
+
* Array of assistant response messages
|
|
116
271
|
*/
|
|
117
|
-
messages: Array<
|
|
272
|
+
messages: Array<ChatMessage>;
|
|
118
273
|
/**
|
|
119
|
-
*
|
|
274
|
+
* Conversation ID (present when conversation persistence is enabled)
|
|
120
275
|
*/
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
export declare namespace AgentChatResponse {
|
|
124
|
-
interface Message {
|
|
125
|
-
/**
|
|
126
|
-
* Message content. Can be string, array (multimodal), or object (tool).
|
|
127
|
-
*/
|
|
128
|
-
content: string | Array<Message.UnionMember1> | {
|
|
129
|
-
[key: string]: unknown;
|
|
130
|
-
};
|
|
131
|
-
/**
|
|
132
|
-
* Message role
|
|
133
|
-
*/
|
|
134
|
-
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
135
|
-
/**
|
|
136
|
-
* Tool name (required when role is "tool")
|
|
137
|
-
*/
|
|
138
|
-
name?: string;
|
|
139
|
-
/**
|
|
140
|
-
* Tool call ID (for tool role)
|
|
141
|
-
*/
|
|
142
|
-
tool_call_id?: string;
|
|
143
|
-
}
|
|
144
|
-
namespace Message {
|
|
145
|
-
interface UnionMember1 {
|
|
146
|
-
type: 'text' | 'image_url';
|
|
147
|
-
image_url?: UnionMember1.ImageURL;
|
|
148
|
-
text?: string;
|
|
149
|
-
}
|
|
150
|
-
namespace UnionMember1 {
|
|
151
|
-
interface ImageURL {
|
|
152
|
-
url: string;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
276
|
+
conversation_id?: string;
|
|
156
277
|
}
|
|
157
|
-
|
|
278
|
+
/**
|
|
279
|
+
* Response with dynamic keys based on agent configuration. Regular agents return {
|
|
280
|
+
* output: ... }, chat agents return { messages: [...] }.
|
|
281
|
+
*/
|
|
282
|
+
export type AgentExecuteResponse = {
|
|
283
|
+
[key: string]: unknown;
|
|
284
|
+
};
|
|
285
|
+
export interface AgentListParams extends CursorParams {
|
|
286
|
+
/**
|
|
287
|
+
* Filter by agent status
|
|
288
|
+
*/
|
|
289
|
+
status?: 'active' | 'inactive';
|
|
158
290
|
/**
|
|
159
|
-
*
|
|
291
|
+
* Filter by agent type (managed, python, typescript, python-langchain, etc.)
|
|
160
292
|
*/
|
|
161
|
-
|
|
293
|
+
type?: string;
|
|
162
294
|
}
|
|
163
295
|
export type AgentChatParams = AgentChatParamsNonStreaming | AgentChatParamsStreaming;
|
|
164
296
|
export interface AgentChatParamsBase {
|
|
165
297
|
/**
|
|
166
|
-
*
|
|
298
|
+
* Array of chat messages
|
|
167
299
|
*/
|
|
168
|
-
messages: Array<
|
|
300
|
+
messages: Array<ChatMessage>;
|
|
169
301
|
/**
|
|
170
|
-
* Optional
|
|
302
|
+
* Optional context for the agent execution
|
|
171
303
|
*/
|
|
172
|
-
context?: Context;
|
|
304
|
+
context?: AgentChatParams.Context;
|
|
173
305
|
/**
|
|
174
|
-
*
|
|
306
|
+
* Conversation ID to continue an existing conversation
|
|
307
|
+
*/
|
|
308
|
+
conversation_id?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Enable streaming response
|
|
175
311
|
*/
|
|
176
312
|
stream?: boolean;
|
|
177
313
|
}
|
|
178
314
|
export declare namespace AgentChatParams {
|
|
179
|
-
|
|
315
|
+
/**
|
|
316
|
+
* Optional context for the agent execution
|
|
317
|
+
*/
|
|
318
|
+
interface Context {
|
|
180
319
|
/**
|
|
181
|
-
*
|
|
320
|
+
* Identity fields for conversation scoping (e.g., user_id, tenant_id)
|
|
182
321
|
*/
|
|
183
|
-
|
|
322
|
+
identity?: {
|
|
184
323
|
[key: string]: unknown;
|
|
185
324
|
};
|
|
186
|
-
|
|
187
|
-
* Message role
|
|
188
|
-
*/
|
|
189
|
-
role: 'system' | 'user' | 'assistant' | 'tool';
|
|
190
|
-
/**
|
|
191
|
-
* Tool name (required when role is "tool")
|
|
192
|
-
*/
|
|
193
|
-
name?: string;
|
|
194
|
-
/**
|
|
195
|
-
* Tool call ID (for tool role)
|
|
196
|
-
*/
|
|
197
|
-
tool_call_id?: string;
|
|
198
|
-
}
|
|
199
|
-
namespace Message {
|
|
200
|
-
interface UnionMember1 {
|
|
201
|
-
type: 'text' | 'image_url';
|
|
202
|
-
image_url?: UnionMember1.ImageURL;
|
|
203
|
-
text?: string;
|
|
204
|
-
}
|
|
205
|
-
namespace UnionMember1 {
|
|
206
|
-
interface ImageURL {
|
|
207
|
-
url: string;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
325
|
+
[k: string]: unknown;
|
|
210
326
|
}
|
|
211
327
|
type AgentChatParamsNonStreaming = AgentsAPI.AgentChatParamsNonStreaming;
|
|
212
328
|
type AgentChatParamsStreaming = AgentsAPI.AgentChatParamsStreaming;
|
|
213
329
|
}
|
|
214
330
|
export interface AgentChatParamsNonStreaming extends AgentChatParamsBase {
|
|
215
331
|
/**
|
|
216
|
-
*
|
|
332
|
+
* Enable streaming response
|
|
217
333
|
*/
|
|
218
334
|
stream?: false;
|
|
219
335
|
}
|
|
220
336
|
export interface AgentChatParamsStreaming extends AgentChatParamsBase {
|
|
221
337
|
/**
|
|
222
|
-
*
|
|
338
|
+
* Enable streaming response
|
|
223
339
|
*/
|
|
224
340
|
stream: true;
|
|
225
341
|
}
|
|
226
|
-
export type
|
|
227
|
-
export interface
|
|
228
|
-
/**
|
|
229
|
-
* Input data for the agent. Structure depends on agent implementation.
|
|
230
|
-
*/
|
|
231
|
-
input: {
|
|
232
|
-
[key: string]: unknown;
|
|
233
|
-
};
|
|
342
|
+
export type AgentExecuteParams = AgentExecuteParamsNonStreaming | AgentExecuteParamsStreaming;
|
|
343
|
+
export interface AgentExecuteParamsBase {
|
|
234
344
|
/**
|
|
235
|
-
* Optional
|
|
345
|
+
* Optional context for the agent execution
|
|
236
346
|
*/
|
|
237
|
-
context?: Context;
|
|
347
|
+
context?: AgentExecuteParams.Context;
|
|
238
348
|
/**
|
|
239
|
-
*
|
|
349
|
+
* Enable streaming response (SSE)
|
|
240
350
|
*/
|
|
241
351
|
stream?: boolean;
|
|
352
|
+
[k: string]: unknown;
|
|
242
353
|
}
|
|
243
|
-
export declare namespace
|
|
244
|
-
|
|
245
|
-
|
|
354
|
+
export declare namespace AgentExecuteParams {
|
|
355
|
+
/**
|
|
356
|
+
* Optional context for the agent execution
|
|
357
|
+
*/
|
|
358
|
+
interface Context {
|
|
359
|
+
/**
|
|
360
|
+
* Identity fields for conversation scoping (e.g., user_id, tenant_id)
|
|
361
|
+
*/
|
|
362
|
+
identity?: {
|
|
363
|
+
[key: string]: unknown;
|
|
364
|
+
};
|
|
365
|
+
[k: string]: unknown;
|
|
366
|
+
}
|
|
367
|
+
type AgentExecuteParamsNonStreaming = AgentsAPI.AgentExecuteParamsNonStreaming;
|
|
368
|
+
type AgentExecuteParamsStreaming = AgentsAPI.AgentExecuteParamsStreaming;
|
|
246
369
|
}
|
|
247
|
-
export interface
|
|
370
|
+
export interface AgentExecuteParamsNonStreaming extends AgentExecuteParamsBase {
|
|
248
371
|
/**
|
|
249
|
-
*
|
|
372
|
+
* Enable streaming response (SSE)
|
|
250
373
|
*/
|
|
251
374
|
stream?: false;
|
|
375
|
+
[k: string]: unknown;
|
|
252
376
|
}
|
|
253
|
-
export interface
|
|
377
|
+
export interface AgentExecuteParamsStreaming extends AgentExecuteParamsBase {
|
|
254
378
|
/**
|
|
255
|
-
*
|
|
379
|
+
* Enable streaming response (SSE)
|
|
256
380
|
*/
|
|
257
381
|
stream: true;
|
|
382
|
+
[k: string]: unknown;
|
|
258
383
|
}
|
|
259
384
|
export declare namespace Agents {
|
|
260
|
-
export { type
|
|
385
|
+
export { type Agent as Agent, type AgentConfig as AgentConfig, type ChatMessage as ChatMessage, type StreamChunk as StreamChunk, type AgentChatResponse as AgentChatResponse, type AgentExecuteResponse as AgentExecuteResponse, type AgentsCursor as AgentsCursor, type AgentListParams as AgentListParams, type AgentChatParams as AgentChatParams, type AgentChatParamsNonStreaming as AgentChatParamsNonStreaming, type AgentChatParamsStreaming as AgentChatParamsStreaming, type AgentExecuteParams as AgentExecuteParams, type AgentExecuteParamsNonStreaming as AgentExecuteParamsNonStreaming, type AgentExecuteParamsStreaming as AgentExecuteParamsStreaming, };
|
|
261
386
|
}
|
|
262
387
|
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,MAAM,EAAE;OACV,EAAE,cAAc,EAAE;AAGzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAInE;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE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C;IAC9B,OAAO,EACL,KAAK,KAAK,IAAI,KAAK,EACnB,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
package/resources/agents.js
CHANGED
|
@@ -3,8 +3,34 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Agents = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const path_1 = require("../internal/utils/path.js");
|
|
7
8
|
class Agents extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get details of a specific agent by name.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const agent = await client.agents.retrieve('x');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
retrieve(name, options) {
|
|
18
|
+
return this._client.get((0, path_1.path) `/agents/${name}`, options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List all agents in the project with optional filtering by type and status.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const agent of client.agents.list()) {
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
return this._client.getAPIList('/agents', (pagination_1.Cursor), { query, ...options });
|
|
33
|
+
}
|
|
8
34
|
chat(name, body, options) {
|
|
9
35
|
return this._client.post((0, path_1.path) `/agents/${name}/chat`, {
|
|
10
36
|
body,
|
|
@@ -12,11 +38,11 @@ class Agents extends resource_1.APIResource {
|
|
|
12
38
|
stream: body.stream ?? false,
|
|
13
39
|
});
|
|
14
40
|
}
|
|
15
|
-
|
|
16
|
-
return this._client.post((0, path_1.path) `/agents/${name}/
|
|
41
|
+
execute(name, body = {}, options) {
|
|
42
|
+
return this._client.post((0, path_1.path) `/agents/${name}/execute`, {
|
|
17
43
|
body,
|
|
18
44
|
...options,
|
|
19
|
-
stream: body
|
|
45
|
+
stream: body?.stream ?? false,
|
|
20
46
|
});
|
|
21
47
|
}
|
|
22
48
|
}
|
package/resources/agents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../src/resources/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,sDAA4E;AAG5E,oDAA8C;AAE9C,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,CAAA,mBAAa,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IA0CD,IAAI,CACF,IAAY,EACZ,IAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,IAAI,OAAO,EAAE;YACnD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,KAAK;SAC7B,CAAoE,CAAC;IACxE,CAAC;IA2CD,OAAO,CACL,IAAY,EACZ,OAAuC,EAAE,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,IAAI,UAAU,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,KAAK;SAC9B,CAAuE,CAAC;IAC3E,CAAC;CACF;AAvID,wBAuIC"}
|