@ideascol/agents-generator-sdk 0.2.1 → 0.2.2
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/bin/cli.js +6 -2
- package/dist/index.js +6 -2
- package/dist/lib/index.d.ts +8 -4
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -2178,8 +2178,12 @@ var init_lib = __esm(() => {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
};
|
|
2180
2180
|
PublicConversationsServiceExtended = class PublicConversationsServiceExtended extends PublicConversationsService {
|
|
2181
|
-
static sendMessageWithStreaming
|
|
2182
|
-
|
|
2181
|
+
static sendMessageWithStreaming(conversationId, requestBody, callbacks) {
|
|
2182
|
+
return ConversationsServiceStream.addMessageConversationsConversationIdMessagesPostStream(conversationId, requestBody, callbacks);
|
|
2183
|
+
}
|
|
2184
|
+
static sendMessage(conversationId, requestBody) {
|
|
2185
|
+
return ConversationsServiceStream.addMessage(conversationId, requestBody);
|
|
2186
|
+
}
|
|
2183
2187
|
};
|
|
2184
2188
|
lib_default = AgentClient;
|
|
2185
2189
|
});
|
package/dist/index.js
CHANGED
|
@@ -1746,8 +1746,12 @@ var init_lib = __esm(() => {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
};
|
|
1748
1748
|
PublicConversationsServiceExtended = class PublicConversationsServiceExtended extends PublicConversationsService {
|
|
1749
|
-
static sendMessageWithStreaming
|
|
1750
|
-
|
|
1749
|
+
static sendMessageWithStreaming(conversationId, requestBody, callbacks) {
|
|
1750
|
+
return ConversationsServiceStream.addMessageConversationsConversationIdMessagesPostStream(conversationId, requestBody, callbacks);
|
|
1751
|
+
}
|
|
1752
|
+
static sendMessage(conversationId, requestBody) {
|
|
1753
|
+
return ConversationsServiceStream.addMessage(conversationId, requestBody);
|
|
1754
|
+
}
|
|
1751
1755
|
};
|
|
1752
1756
|
lib_default = AgentClient;
|
|
1753
1757
|
});
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -22,8 +22,12 @@ declare class ConversationsServiceStream extends ConversationsService {
|
|
|
22
22
|
static addMessageConversationsConversationIdMessagesPostStream(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
|
|
23
23
|
}
|
|
24
24
|
declare class PublicConversationsServiceExtended extends PublicConversationsService {
|
|
25
|
-
static sendMessageWithStreaming:
|
|
26
|
-
static sendMessage:
|
|
25
|
+
static sendMessageWithStreaming(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
|
|
26
|
+
static sendMessage(conversationId: string, requestBody: MessageCreate): CancelablePromise<{
|
|
27
|
+
status: string;
|
|
28
|
+
message: string;
|
|
29
|
+
message_id?: string;
|
|
30
|
+
}>;
|
|
27
31
|
}
|
|
28
32
|
export declare class AgentClient {
|
|
29
33
|
admin: {
|
|
@@ -73,13 +77,13 @@ export declare class AgentClient {
|
|
|
73
77
|
});
|
|
74
78
|
/**
|
|
75
79
|
* sendMessageWithStreaming: Sent a message with streaming support to a conversation
|
|
76
|
-
*
|
|
80
|
+
* Use client.public.conversations.sendMessageWithStreaming instead
|
|
77
81
|
*/
|
|
78
82
|
sendMessageWithStreaming(conversationId: string, requestBody: MessageCreate, callbacks: StreamCallbacks): () => void;
|
|
79
83
|
/**
|
|
80
84
|
* sendMessage: Sends a message to a conversation without streaming
|
|
81
85
|
* @returns CancelablePromise with the response
|
|
82
|
-
*
|
|
86
|
+
* Use client.public.conversations.sendMessage instead
|
|
83
87
|
*/
|
|
84
88
|
sendMessage(conversationId: string, requestBody: MessageCreate): CancelablePromise<{
|
|
85
89
|
status: string;
|