reportify-sdk 0.3.20 → 0.3.21
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1284,10 +1284,12 @@ declare class AgentModule {
|
|
|
1284
1284
|
* @param options - Optional parameters
|
|
1285
1285
|
* @param options.title - Conversation title
|
|
1286
1286
|
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1287
|
+
* @param options.meta - Metadata dict (optional)
|
|
1287
1288
|
*/
|
|
1288
1289
|
createConversation(agentId: number, options?: {
|
|
1289
1290
|
title?: string;
|
|
1290
1291
|
conversationType?: string;
|
|
1292
|
+
meta?: Record<string, unknown>;
|
|
1291
1293
|
}): Promise<AgentConversation>;
|
|
1292
1294
|
/**
|
|
1293
1295
|
* Chat with agent in a conversation
|
package/dist/index.d.ts
CHANGED
|
@@ -1284,10 +1284,12 @@ declare class AgentModule {
|
|
|
1284
1284
|
* @param options - Optional parameters
|
|
1285
1285
|
* @param options.title - Conversation title
|
|
1286
1286
|
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1287
|
+
* @param options.meta - Metadata dict (optional)
|
|
1287
1288
|
*/
|
|
1288
1289
|
createConversation(agentId: number, options?: {
|
|
1289
1290
|
title?: string;
|
|
1290
1291
|
conversationType?: string;
|
|
1292
|
+
meta?: Record<string, unknown>;
|
|
1291
1293
|
}): Promise<AgentConversation>;
|
|
1292
1294
|
/**
|
|
1293
1295
|
* Chat with agent in a conversation
|
package/dist/index.js
CHANGED
|
@@ -1214,11 +1214,13 @@ var AgentModule = class {
|
|
|
1214
1214
|
* @param options - Optional parameters
|
|
1215
1215
|
* @param options.title - Conversation title
|
|
1216
1216
|
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1217
|
+
* @param options.meta - Metadata dict (optional)
|
|
1217
1218
|
*/
|
|
1218
1219
|
async createConversation(agentId, options = {}) {
|
|
1219
1220
|
const body = { agent_id: agentId };
|
|
1220
1221
|
if (options.title) body.title = options.title;
|
|
1221
1222
|
if (options.conversationType) body.conversation_type = options.conversationType;
|
|
1223
|
+
if (options.meta) body.meta = options.meta;
|
|
1222
1224
|
const response = await this.client.post("/v1/agent/conversations", body);
|
|
1223
1225
|
return {
|
|
1224
1226
|
id: response.id,
|
package/dist/index.mjs
CHANGED
|
@@ -1171,11 +1171,13 @@ var AgentModule = class {
|
|
|
1171
1171
|
* @param options - Optional parameters
|
|
1172
1172
|
* @param options.title - Conversation title
|
|
1173
1173
|
* @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
|
|
1174
|
+
* @param options.meta - Metadata dict (optional)
|
|
1174
1175
|
*/
|
|
1175
1176
|
async createConversation(agentId, options = {}) {
|
|
1176
1177
|
const body = { agent_id: agentId };
|
|
1177
1178
|
if (options.title) body.title = options.title;
|
|
1178
1179
|
if (options.conversationType) body.conversation_type = options.conversationType;
|
|
1180
|
+
if (options.meta) body.meta = options.meta;
|
|
1179
1181
|
const response = await this.client.post("/v1/agent/conversations", body);
|
|
1180
1182
|
return {
|
|
1181
1183
|
id: response.id,
|