@minded-ai/mindedjs 1.0.0-ec2-beta-176 → 1.0.0-ec2-beta-178

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.
@@ -211,11 +211,15 @@ class LogsCapture:
211
211
  print(f"model_output")
212
212
  if hasattr(model_output, 'current_state'):
213
213
  print(f"model_output.current_state")
214
- self.log_entries.append('💡 Thinking: ' + model_output.current_state.thinking)
215
- self.log_entries.append('🧠 Memory: ' + model_output.current_state.memory)
216
- self.log_entries.append('🎯 Next goal: ' + model_output.current_state.next_goal)
214
+ if model_output.current_state.thinking:
215
+ self.log_entries.append('💡 Thinking: ' + model_output.current_state.thinking)
216
+ if model_output.current_state.memory:
217
+ self.log_entries.append('🧠 Memory: ' + model_output.current_state.memory)
218
+ if model_output.current_state.next_goal:
219
+ self.log_entries.append('🎯 Next goal: ' + model_output.current_state.next_goal)
220
+ print("Finished adding log entries")
217
221
  except Exception as e:
218
- logger.debug(f"Could not extract model outputs: {e}")
222
+ logger.warning(f"Could not extract model outputs: {e}")
219
223
 
220
224
  print(f"self.log_entries count: {len(self.log_entries)}")
221
225
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minded-ai/mindedjs",
3
- "version": "1.0.0-ec2-beta-176",
3
+ "version": "1.0.0-ec2-beta-178",
4
4
  "description": "MindedJS is a TypeScript library for building agents.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -211,11 +211,15 @@ class LogsCapture:
211
211
  print(f"model_output")
212
212
  if hasattr(model_output, 'current_state'):
213
213
  print(f"model_output.current_state")
214
- self.log_entries.append('💡 Thinking: ' + model_output.current_state.thinking)
215
- self.log_entries.append('🧠 Memory: ' + model_output.current_state.memory)
216
- self.log_entries.append('🎯 Next goal: ' + model_output.current_state.next_goal)
214
+ if model_output.current_state.thinking:
215
+ self.log_entries.append('💡 Thinking: ' + model_output.current_state.thinking)
216
+ if model_output.current_state.memory:
217
+ self.log_entries.append('🧠 Memory: ' + model_output.current_state.memory)
218
+ if model_output.current_state.next_goal:
219
+ self.log_entries.append('🎯 Next goal: ' + model_output.current_state.next_goal)
220
+ print("Finished adding log entries")
217
221
  except Exception as e:
218
- logger.debug(f"Could not extract model outputs: {e}")
222
+ logger.warning(f"Could not extract model outputs: {e}")
219
223
 
220
224
  print(f"self.log_entries count: {len(self.log_entries)}")
221
225