@ricsam/r5d-api 0.0.16 → 0.0.18
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 +6 -2
- package/dist/cjs/package.json +1 -1
- package/dist/mjs/index.mjs +6 -2
- package/dist/mjs/package.json +1 -1
- package/dist/types/index.d.ts +5 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -250,9 +250,13 @@ 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
|
+
}
|
|
256
260
|
}),
|
|
257
261
|
prompt: (sessionId, input) => this.request({
|
|
258
262
|
method: "POST",
|
package/dist/cjs/package.json
CHANGED
package/dist/mjs/index.mjs
CHANGED
|
@@ -226,9 +226,13 @@ 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
|
+
}
|
|
232
236
|
}),
|
|
233
237
|
prompt: (sessionId, input) => this.request({
|
|
234
238
|
method: "POST",
|
package/dist/mjs/package.json
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -54,6 +54,10 @@ 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
|
+
};
|
|
57
61
|
export type R5dctlConversationResponse = {
|
|
58
62
|
session: R5dctlSessionDescription;
|
|
59
63
|
conversation: unknown;
|
|
@@ -262,7 +266,7 @@ export declare class R5dctlClient {
|
|
|
262
266
|
delete: (sessionId: string) => Promise<{
|
|
263
267
|
success: boolean;
|
|
264
268
|
}>;
|
|
265
|
-
conversation: (sessionId: string) => Promise<R5dctlConversationResponse>;
|
|
269
|
+
conversation: (sessionId: string, input?: R5dctlConversationRenderOptions) => Promise<R5dctlConversationResponse>;
|
|
266
270
|
prompt: (sessionId: string, input: {
|
|
267
271
|
message: string;
|
|
268
272
|
mode: ChatMode;
|