goblin-agents 3.0.0 → 3.0.1

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.
@@ -613,9 +613,9 @@ class AiAgent extends Elf {
613
613
 
614
614
  await this._loadProvider();
615
615
  const contextMessages = this.state.messages[contextId] || [];
616
- const context = this.state.contexts[contextId];
617
- const reasoning = this.state.reasonings[contextId];
618
- const model = this.state.models[contextId];
616
+ const context = this.state.contexts[contextId] || null;
617
+ const reasoning = this.state.reasonings[contextId] || this.state.reasoning;
618
+ const model = this.state.models[contextId] || this.state.model;
619
619
 
620
620
  let systemPrompt = this.state.prompt || '';
621
621
  if (context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goblin-agents",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "AI Agents framework",
5
5
  "author": "Epsitec SA",
6
6
  "contributors": [