@voltagent/core 0.1.33 → 0.1.35

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/dist/index.js CHANGED
@@ -3362,6 +3362,7 @@ var LibSQLStorage = class {
3362
3362
  yield this.initialized;
3363
3363
  yield debugDelay();
3364
3364
  const tableName = `${this.options.tablePrefix}_messages`;
3365
+ const contentString = JSON.stringify(message.content);
3365
3366
  try {
3366
3367
  yield this.client.execute({
3367
3368
  sql: `INSERT INTO ${tableName} (conversation_id, message_id, role, content, type, created_at)
@@ -3370,7 +3371,7 @@ var LibSQLStorage = class {
3370
3371
  conversationId,
3371
3372
  message.id,
3372
3373
  message.role,
3373
- message.content,
3374
+ contentString,
3374
3375
  message.type,
3375
3376
  message.createdAt
3376
3377
  ]
@@ -6309,7 +6310,7 @@ var SubAgentManager = class {
6309
6310
  return `- ${agent.name}: ${(_a = agent.purpose) != null ? _a : agent.instructions}`;
6310
6311
  }).join("\n");
6311
6312
  return `
6312
- You are a supervisor agent that coordinates between specialized agents:
6313
+ You are a supervisor agent that coordinates between specialized agents:
6313
6314
 
6314
6315
  <specialized_agents>
6315
6316
  ${subAgentList}
@@ -6343,7 +6344,7 @@ ${baseInstructions}
6343
6344
  <agents_memory>
6344
6345
  ${agentsMemory || "No previous agent interactions available."}
6345
6346
  </agents_memory>
6346
- `;
6347
+ `.trim();
6347
6348
  }
6348
6349
  /**
6349
6350
  * Check if the agent has sub-agents