reportify-sdk 0.3.18 → 0.3.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/index.d.mts +11 -2
- package/dist/index.d.ts +11 -2
- package/dist/index.js +11 -4
- package/dist/index.mjs +11 -4
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1281,19 +1281,28 @@ declare class AgentModule {
|
|
|
1281
1281
|
* Create a new agent conversation
|
|
1282
1282
|
*
|
|
1283
1283
|
* @param agentId - Agent ID
|
|
1284
|
-
* @param
|
|
1284
|
+
* @param options - Optional parameters
|
|
1285
|
+
* @param options.title - Conversation title
|
|
1286
|
+
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1285
1287
|
*/
|
|
1286
|
-
createConversation(agentId: number,
|
|
1288
|
+
createConversation(agentId: number, options?: {
|
|
1289
|
+
title?: string;
|
|
1290
|
+
conversationType?: string;
|
|
1291
|
+
}): Promise<AgentConversation>;
|
|
1287
1292
|
/**
|
|
1288
1293
|
* Chat with agent in a conversation
|
|
1289
1294
|
*
|
|
1290
1295
|
* @param conversationId - Conversation ID
|
|
1291
1296
|
* @param message - User message
|
|
1292
1297
|
* @param options - Chat options
|
|
1298
|
+
* @param options.documents - Related documents
|
|
1299
|
+
* @param options.stream - Whether to use streaming response (default: true)
|
|
1300
|
+
* @param options.background - Whether to run agent task in background (default: false). When true, returns immediately without waiting for events.
|
|
1293
1301
|
*/
|
|
1294
1302
|
chat(conversationId: number, message: string, options?: {
|
|
1295
1303
|
documents?: DocumentInput[];
|
|
1296
1304
|
stream?: boolean;
|
|
1305
|
+
background?: boolean;
|
|
1297
1306
|
}): Promise<unknown>;
|
|
1298
1307
|
/**
|
|
1299
1308
|
* Get conversation details
|
package/dist/index.d.ts
CHANGED
|
@@ -1281,19 +1281,28 @@ declare class AgentModule {
|
|
|
1281
1281
|
* Create a new agent conversation
|
|
1282
1282
|
*
|
|
1283
1283
|
* @param agentId - Agent ID
|
|
1284
|
-
* @param
|
|
1284
|
+
* @param options - Optional parameters
|
|
1285
|
+
* @param options.title - Conversation title
|
|
1286
|
+
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1285
1287
|
*/
|
|
1286
|
-
createConversation(agentId: number,
|
|
1288
|
+
createConversation(agentId: number, options?: {
|
|
1289
|
+
title?: string;
|
|
1290
|
+
conversationType?: string;
|
|
1291
|
+
}): Promise<AgentConversation>;
|
|
1287
1292
|
/**
|
|
1288
1293
|
* Chat with agent in a conversation
|
|
1289
1294
|
*
|
|
1290
1295
|
* @param conversationId - Conversation ID
|
|
1291
1296
|
* @param message - User message
|
|
1292
1297
|
* @param options - Chat options
|
|
1298
|
+
* @param options.documents - Related documents
|
|
1299
|
+
* @param options.stream - Whether to use streaming response (default: true)
|
|
1300
|
+
* @param options.background - Whether to run agent task in background (default: false). When true, returns immediately without waiting for events.
|
|
1293
1301
|
*/
|
|
1294
1302
|
chat(conversationId: number, message: string, options?: {
|
|
1295
1303
|
documents?: DocumentInput[];
|
|
1296
1304
|
stream?: boolean;
|
|
1305
|
+
background?: boolean;
|
|
1297
1306
|
}): Promise<unknown>;
|
|
1298
1307
|
/**
|
|
1299
1308
|
* Get conversation details
|
package/dist/index.js
CHANGED
|
@@ -1210,11 +1210,14 @@ var AgentModule = class {
|
|
|
1210
1210
|
* Create a new agent conversation
|
|
1211
1211
|
*
|
|
1212
1212
|
* @param agentId - Agent ID
|
|
1213
|
-
* @param
|
|
1213
|
+
* @param options - Optional parameters
|
|
1214
|
+
* @param options.title - Conversation title
|
|
1215
|
+
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1214
1216
|
*/
|
|
1215
|
-
async createConversation(agentId,
|
|
1217
|
+
async createConversation(agentId, options = {}) {
|
|
1216
1218
|
const body = { agent_id: agentId };
|
|
1217
|
-
if (title) body.title = title;
|
|
1219
|
+
if (options.title) body.title = options.title;
|
|
1220
|
+
if (options.conversationType) body.conversation_type = options.conversationType;
|
|
1218
1221
|
const response = await this.client.post("/v1/agent/conversations", body);
|
|
1219
1222
|
return {
|
|
1220
1223
|
id: response.id,
|
|
@@ -1233,11 +1236,15 @@ var AgentModule = class {
|
|
|
1233
1236
|
* @param conversationId - Conversation ID
|
|
1234
1237
|
* @param message - User message
|
|
1235
1238
|
* @param options - Chat options
|
|
1239
|
+
* @param options.documents - Related documents
|
|
1240
|
+
* @param options.stream - Whether to use streaming response (default: true)
|
|
1241
|
+
* @param options.background - Whether to run agent task in background (default: false). When true, returns immediately without waiting for events.
|
|
1236
1242
|
*/
|
|
1237
1243
|
async chat(conversationId, message, options = {}) {
|
|
1238
1244
|
const body = {
|
|
1239
1245
|
message,
|
|
1240
|
-
stream: options.stream ?? true
|
|
1246
|
+
stream: options.stream ?? true,
|
|
1247
|
+
background: options.background ?? false
|
|
1241
1248
|
};
|
|
1242
1249
|
if (options.documents) {
|
|
1243
1250
|
body.documents = options.documents.map((doc) => ({
|
package/dist/index.mjs
CHANGED
|
@@ -1168,11 +1168,14 @@ var AgentModule = class {
|
|
|
1168
1168
|
* Create a new agent conversation
|
|
1169
1169
|
*
|
|
1170
1170
|
* @param agentId - Agent ID
|
|
1171
|
-
* @param
|
|
1171
|
+
* @param options - Optional parameters
|
|
1172
|
+
* @param options.title - Conversation title
|
|
1173
|
+
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1172
1174
|
*/
|
|
1173
|
-
async createConversation(agentId,
|
|
1175
|
+
async createConversation(agentId, options = {}) {
|
|
1174
1176
|
const body = { agent_id: agentId };
|
|
1175
|
-
if (title) body.title = title;
|
|
1177
|
+
if (options.title) body.title = options.title;
|
|
1178
|
+
if (options.conversationType) body.conversation_type = options.conversationType;
|
|
1176
1179
|
const response = await this.client.post("/v1/agent/conversations", body);
|
|
1177
1180
|
return {
|
|
1178
1181
|
id: response.id,
|
|
@@ -1191,11 +1194,15 @@ var AgentModule = class {
|
|
|
1191
1194
|
* @param conversationId - Conversation ID
|
|
1192
1195
|
* @param message - User message
|
|
1193
1196
|
* @param options - Chat options
|
|
1197
|
+
* @param options.documents - Related documents
|
|
1198
|
+
* @param options.stream - Whether to use streaming response (default: true)
|
|
1199
|
+
* @param options.background - Whether to run agent task in background (default: false). When true, returns immediately without waiting for events.
|
|
1194
1200
|
*/
|
|
1195
1201
|
async chat(conversationId, message, options = {}) {
|
|
1196
1202
|
const body = {
|
|
1197
1203
|
message,
|
|
1198
|
-
stream: options.stream ?? true
|
|
1204
|
+
stream: options.stream ?? true,
|
|
1205
|
+
background: options.background ?? false
|
|
1199
1206
|
};
|
|
1200
1207
|
if (options.documents) {
|
|
1201
1208
|
body.documents = options.documents.map((doc) => ({
|