Skip to content

Commit 22acb79

Browse files
authored
Merge pull request elizaOS#1918 from bentatum/fix/runtime-evaluate-null
fix(core): check evaluators for null
2 parents e94dd1e + d3f20d3 commit 22acb79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/runtime.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ export class AgentRuntime implements IAgentRuntime {
680680
) as unknown as string[];
681681

682682
for (const evaluator of this.evaluators) {
683-
if (!evaluators.includes(evaluator.name)) continue;
683+
if (!evaluators?.includes(evaluator.name)) continue;
684684

685685
if (evaluator.handler)
686686
await evaluator.handler(this, message, state, {}, callback);

0 commit comments

Comments
 (0)