goblin-agents 2.2.2 → 2.2.3
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/lib/llm/aiAgent.js +3 -3
- package/package.json +1 -1
package/lib/llm/aiAgent.js
CHANGED
|
@@ -22,7 +22,7 @@ class MessageShape {
|
|
|
22
22
|
images = option(array(string));
|
|
23
23
|
tool_calls = option(array(object));
|
|
24
24
|
tool_call_id = option(string);
|
|
25
|
-
|
|
25
|
+
tool_name = option(string);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
class OptionsShape {
|
|
@@ -279,7 +279,7 @@ class AiAgentLogic extends Elf.Archetype {
|
|
|
279
279
|
state.messages[contextId].push({
|
|
280
280
|
role: 'tool',
|
|
281
281
|
tool_call_id: toolCallId,
|
|
282
|
-
|
|
282
|
+
tool_name: toolName,
|
|
283
283
|
content: answer,
|
|
284
284
|
});
|
|
285
285
|
}
|
|
@@ -624,7 +624,7 @@ class AiAgent extends Elf {
|
|
|
624
624
|
result = await this.quest.cmd(toolCmd, payload);
|
|
625
625
|
await this.addToolMessage(contextId, id, name, result);
|
|
626
626
|
} catch (err) {
|
|
627
|
-
this.log.dbg(`🔧 Tool error : ${err}`);
|
|
627
|
+
this.log.dbg(`🔧 Tool error : ${err.message}`);
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
630
|
return true;
|