@base44-preview/sdk 0.7.0-pr.26.ab75236 → 0.7.0-pr.26.fe973bb
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/modules/agents.js +5 -5
- package/package.json +1 -1
package/dist/modules/agents.js
CHANGED
|
@@ -156,28 +156,28 @@ export function createAgentsModule(axiosClient, appId, config = {}) {
|
|
|
156
156
|
const response = await axiosClient.get(`/apps/${appId}/agents/conversations`, {
|
|
157
157
|
params: filterParams,
|
|
158
158
|
});
|
|
159
|
-
return response
|
|
159
|
+
return response;
|
|
160
160
|
},
|
|
161
161
|
/**
|
|
162
162
|
* Get a specific conversation by ID
|
|
163
163
|
*/
|
|
164
164
|
async getConversation(conversationId) {
|
|
165
165
|
const response = await axiosClient.get(`/apps/${appId}/agents/conversations/${conversationId}`);
|
|
166
|
-
return response
|
|
166
|
+
return response;
|
|
167
167
|
},
|
|
168
168
|
/**
|
|
169
169
|
* Create a new agent conversation
|
|
170
170
|
*/
|
|
171
171
|
async createConversation(payload) {
|
|
172
172
|
const response = await axiosClient.post(`/apps/${appId}/agents/conversations`, payload);
|
|
173
|
-
return response
|
|
173
|
+
return response;
|
|
174
174
|
},
|
|
175
175
|
/**
|
|
176
176
|
* Update conversation metadata
|
|
177
177
|
*/
|
|
178
178
|
async updateConversation(conversationId, payload) {
|
|
179
179
|
const response = await axiosClient.put(`/apps/${appId}/agents/conversations/${conversationId}`, payload);
|
|
180
|
-
return response
|
|
180
|
+
return response;
|
|
181
181
|
},
|
|
182
182
|
/**
|
|
183
183
|
* Send a message to an agent and get response
|
|
@@ -191,7 +191,7 @@ export function createAgentsModule(axiosClient, appId, config = {}) {
|
|
|
191
191
|
];
|
|
192
192
|
}
|
|
193
193
|
const response = await axiosClient.post(`/apps/${appId}/agents/conversations/${conversationId}/messages`, message);
|
|
194
|
-
return response
|
|
194
|
+
return response;
|
|
195
195
|
},
|
|
196
196
|
/**
|
|
197
197
|
* Delete a message from a conversation
|