@xuda.io/ai_module 1.1.5402 → 1.1.5403
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 +6 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -4724,7 +4724,12 @@ const ai_chat_conversation = async function (req, job_id, headers) {
|
|
|
4724
4724
|
if (eligible_agent) {
|
|
4725
4725
|
// allow read only agents if not ai_agent scope
|
|
4726
4726
|
if (!prompt_suggestion_activated) {
|
|
4727
|
-
init_agent_hooks(agent);
|
|
4727
|
+
// init_agent_hooks(agent);
|
|
4728
|
+
agent.on('agent_tool_start', (context, tool, details) => {
|
|
4729
|
+
debugger;
|
|
4730
|
+
// emitToDashboard('agent_tool_start', tool.name);
|
|
4731
|
+
emitToDashboard('stream_phase', `Starting ${tool.name} tool`);
|
|
4732
|
+
});
|
|
4728
4733
|
}
|
|
4729
4734
|
list.push(agent);
|
|
4730
4735
|
}
|