@elizaos/core 1.6.5-alpha.13 → 1.6.5-alpha.14

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.
@@ -47159,7 +47159,16 @@ class AgentRuntime {
47159
47159
  this.logger.debug(`World ${id} created successfully.`);
47160
47160
  }
47161
47161
  }
47162
- async ensureRoomExists({ id, name, source, type, channelId, messageServerId, worldId, metadata }) {
47162
+ async ensureRoomExists({
47163
+ id,
47164
+ name,
47165
+ source,
47166
+ type,
47167
+ channelId,
47168
+ messageServerId,
47169
+ worldId,
47170
+ metadata
47171
+ }) {
47163
47172
  if (!worldId)
47164
47173
  throw new Error("worldId is required");
47165
47174
  const room = await this.getRoom(id);
@@ -47509,7 +47518,12 @@ class AgentRuntime {
47509
47518
  const errorMsg = `No handler found for delegate type: ${modelKey}`;
47510
47519
  throw new Error(errorMsg);
47511
47520
  }
47512
- const binaryModels = [ModelType.TRANSCRIPTION, ModelType.IMAGE, ModelType.AUDIO, ModelType.VIDEO];
47521
+ const binaryModels = [
47522
+ ModelType.TRANSCRIPTION,
47523
+ ModelType.IMAGE,
47524
+ ModelType.AUDIO,
47525
+ ModelType.VIDEO
47526
+ ];
47513
47527
  if (!binaryModels.includes(modelKey)) {
47514
47528
  this.logger.debug(`[useModel] ${modelKey} input: ` + JSON.stringify(params, safeReplacer(), 2).replace(/\\n/g, `
47515
47529
  `));
@@ -47573,6 +47587,7 @@ class AgentRuntime {
47573
47587
  prompt: promptContent
47574
47588
  },
47575
47589
  prompt: promptContent,
47590
+ systemPrompt: this.character?.system || null,
47576
47591
  runId: this.getCurrentRunId(),
47577
47592
  timestamp: Date.now(),
47578
47593
  executionTime: elapsedTime,
@@ -47967,7 +47982,15 @@ ${input}`;
47967
47982
  async getRoomsByIds(roomIds) {
47968
47983
  return await this.adapter.getRoomsByIds(roomIds);
47969
47984
  }
47970
- async createRoom({ id, name, source, type, channelId, messageServerId, worldId }) {
47985
+ async createRoom({
47986
+ id,
47987
+ name,
47988
+ source,
47989
+ type,
47990
+ channelId,
47991
+ messageServerId,
47992
+ worldId
47993
+ }) {
47971
47994
  if (!worldId)
47972
47995
  throw new Error("worldId is required");
47973
47996
  const res = await this.adapter.createRooms([
@@ -49457,5 +49480,5 @@ export {
49457
49480
  AgentRuntime
49458
49481
  };
49459
49482
 
49460
- //# debugId=721ECB1CAC8A6DEF64756E2164756E21
49483
+ //# debugId=A1412E5E5FDE737964756E2164756E21
49461
49484
  //# sourceMappingURL=index.node.js.map