@base44-preview/sdk 0.8.18-pr.120.baff2e3 → 0.8.18-pr.123.21fb51e
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.
|
@@ -171,7 +171,7 @@ export interface AgentsModuleConfig {
|
|
|
171
171
|
*
|
|
172
172
|
* This module is available to use with a client in all authentication modes:
|
|
173
173
|
*
|
|
174
|
-
* - **Anonymous or User authentication** (`base44.agents`): Access is scoped to the current user's permissions.
|
|
174
|
+
* - **Anonymous or User authentication** (`base44.agents`): Access is scoped to the current user's permissions. Users must be authenticated to create and access conversations.
|
|
175
175
|
* - **Service role authentication** (`base44.asServiceRole.agents`): Operations have elevated admin-level permissions. Can access all conversations that the app's admin role has access to.
|
|
176
176
|
*
|
|
177
177
|
*/
|
|
@@ -200,6 +200,8 @@ export interface AgentsModule {
|
|
|
200
200
|
* Retrieves a single conversation using its unique identifier. To retrieve
|
|
201
201
|
* all conversations, use {@linkcode getConversations | getConversations()} To filter, sort, or paginate conversations, use {@linkcode listConversations | listConversations()}.
|
|
202
202
|
*
|
|
203
|
+
* This function returns the complete stored conversation including full tool call results, even for large responses.
|
|
204
|
+
*
|
|
203
205
|
* @param conversationId - The unique identifier of the conversation.
|
|
204
206
|
* @returns Promise resolving to the conversation, or undefined if not found.
|
|
205
207
|
*
|
|
@@ -298,6 +300,10 @@ export interface AgentsModule {
|
|
|
298
300
|
* Establishes a WebSocket connection to receive instant updates when new
|
|
299
301
|
* messages are added to the conversation. Returns an unsubscribe function
|
|
300
302
|
* to clean up the connection.
|
|
303
|
+
*
|
|
304
|
+
* <Note>
|
|
305
|
+
When receiving messages through this function, tool call data is truncated for efficiency — `arguments_string` is limited to 500 characters and `results` to 50 characters. The complete tool call data is always saved in storage and can be retrieved by calling {@linkcode getConversation | getConversation()} after the message completes.
|
|
306
|
+
</Note>
|
|
301
307
|
*
|
|
302
308
|
* @param conversationId - The conversation ID to subscribe to.
|
|
303
309
|
* @param onUpdate - Callback function called when the conversation is updated. The callback receives a conversation object with the following properties:
|