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.
@@ -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
- name = option(string);
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
- name: toolName,
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-agents",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "AI Agents framework",
5
5
  "author": "Epsitec SA",
6
6
  "contributors": [