@ricsam/r5d-api 0.0.17 → 0.0.19
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/dist/cjs/index.cjs +7 -2
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/index.mjs +7 -2
- package/dist/mjs/package.json +1 -1
- package/dist/types/index.d.ts +6 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -250,9 +250,14 @@ class R5dctlClient {
|
|
|
250
250
|
method: "DELETE",
|
|
251
251
|
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}`
|
|
252
252
|
}),
|
|
253
|
-
conversation: (sessionId) => this.request({
|
|
253
|
+
conversation: (sessionId, input = {}) => this.request({
|
|
254
254
|
method: "GET",
|
|
255
|
-
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation
|
|
255
|
+
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation`,
|
|
256
|
+
query: {
|
|
257
|
+
format: input.format,
|
|
258
|
+
tools: input.includeTools === void 0 ? void 0 : input.includeTools ? "include" : "exclude",
|
|
259
|
+
system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
|
|
260
|
+
}
|
|
256
261
|
}),
|
|
257
262
|
prompt: (sessionId, input) => this.request({
|
|
258
263
|
method: "POST",
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/index.mjs
CHANGED
|
@@ -226,9 +226,14 @@ class R5dctlClient {
|
|
|
226
226
|
method: "DELETE",
|
|
227
227
|
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}`
|
|
228
228
|
}),
|
|
229
|
-
conversation: (sessionId) => this.request({
|
|
229
|
+
conversation: (sessionId, input = {}) => this.request({
|
|
230
230
|
method: "GET",
|
|
231
|
-
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation
|
|
231
|
+
path: `/api/r5dctl/sessions/${encodeURIComponent(sessionId)}/conversation`,
|
|
232
|
+
query: {
|
|
233
|
+
format: input.format,
|
|
234
|
+
tools: input.includeTools === void 0 ? void 0 : input.includeTools ? "include" : "exclude",
|
|
235
|
+
system: input.includeSystem === void 0 ? void 0 : input.includeSystem ? "include" : "exclude"
|
|
236
|
+
}
|
|
232
237
|
}),
|
|
233
238
|
prompt: (sessionId, input) => this.request({
|
|
234
239
|
method: "POST",
|
package/dist/mjs/package.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -54,6 +54,11 @@ export type R5dctlRequiredEnv = {
|
|
|
54
54
|
optional: boolean;
|
|
55
55
|
description: string;
|
|
56
56
|
};
|
|
57
|
+
export type R5dctlConversationRenderOptions = {
|
|
58
|
+
format?: "human" | "raw";
|
|
59
|
+
includeTools?: boolean;
|
|
60
|
+
includeSystem?: boolean;
|
|
61
|
+
};
|
|
57
62
|
export type R5dctlConversationResponse = {
|
|
58
63
|
session: R5dctlSessionDescription;
|
|
59
64
|
conversation: unknown;
|
|
@@ -262,7 +267,7 @@ export declare class R5dctlClient {
|
|
|
262
267
|
delete: (sessionId: string) => Promise<{
|
|
263
268
|
success: boolean;
|
|
264
269
|
}>;
|
|
265
|
-
conversation: (sessionId: string) => Promise<R5dctlConversationResponse>;
|
|
270
|
+
conversation: (sessionId: string, input?: R5dctlConversationRenderOptions) => Promise<R5dctlConversationResponse>;
|
|
266
271
|
prompt: (sessionId: string, input: {
|
|
267
272
|
message: string;
|
|
268
273
|
mode: ChatMode;
|