@xuda.io/ai_module 1.1.5327 → 1.1.5328
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/index.mjs +7 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4180,7 +4180,7 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4180
4180
|
|
|
4181
4181
|
emitToDashboard('stream_start');
|
|
4182
4182
|
|
|
4183
|
-
emitToDashboard('stream_phase', '
|
|
4183
|
+
emitToDashboard('stream_phase', 'Initiating conversation');
|
|
4184
4184
|
let prompt_suggestions = [];
|
|
4185
4185
|
let prompt_selected_suggestion;
|
|
4186
4186
|
|
|
@@ -4224,7 +4224,8 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4224
4224
|
conversation_doc.job_id = job_id;
|
|
4225
4225
|
await db_module.save_app_couch_doc_native(account_profile_info.app_id, conversation_doc);
|
|
4226
4226
|
|
|
4227
|
-
await update_job('analyzing request');
|
|
4227
|
+
// await update_job('analyzing request');
|
|
4228
|
+
emitToDashboard('stream_phase', 'Analyzing request');
|
|
4228
4229
|
|
|
4229
4230
|
const init_agent_hooks = function (agent) {
|
|
4230
4231
|
agent.on('agent_start', (context, agent) => {
|
|
@@ -4780,12 +4781,14 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4780
4781
|
const runner = new Runner();
|
|
4781
4782
|
let _agent = [];
|
|
4782
4783
|
|
|
4783
|
-
await update_job('preparing tools');
|
|
4784
|
+
// await update_job('preparing tools');
|
|
4785
|
+
emitToDashboard('stream_phase', 'Preparing tools');
|
|
4784
4786
|
let agents = await get_agents();
|
|
4785
4787
|
|
|
4786
4788
|
/////////////
|
|
4787
4789
|
if (attachments?.length) {
|
|
4788
|
-
await update_job('analyzing attachments');
|
|
4790
|
+
// await update_job('analyzing attachments');
|
|
4791
|
+
emitToDashboard('stream_phase', 'Analyzing attachments');
|
|
4789
4792
|
await attachment_handler(uid, app_id, conversation_id, attachments, account_profile_info);
|
|
4790
4793
|
}
|
|
4791
4794
|
////////////
|