u
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node src/index.js",
|
"start": "node src/index.js",
|
||||||
"dev": "node --watch-path=./src --watch-path=./.env --watch-path=../dashdbschema/src src/index.js",
|
"dev": "node --watch-path=./src --watch-path=./.env --watch-path=../dashdbschema/src --watch-path=../llmorbiter/src src/index.js",
|
||||||
"manage-users": "node scripts/manageUsers.js",
|
"manage-users": "node scripts/manageUsers.js",
|
||||||
"docs:api": "node scripts/generateApiDocs.js",
|
"docs:api": "node scripts/generateApiDocs.js",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1"
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
|||||||
@@ -453,6 +453,7 @@ export class ConversationManager {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onToolError: async ({ name, error, id, callItem }) => {
|
onToolError: async ({ name, error, id, callItem }) => {
|
||||||
|
console.error(`[ConversationManager ${this.conversationId}] Tool "${name}" errored:`, error);
|
||||||
try {
|
try {
|
||||||
const errMsg = await db.addMessage(googleAuthId, this.conversationId, {
|
const errMsg = await db.addMessage(googleAuthId, this.conversationId, {
|
||||||
role: 'tool',
|
role: 'tool',
|
||||||
|
|||||||
Reference in New Issue
Block a user