Skip to content

Commit

Permalink
on handler skip
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Feb 10, 2024
1 parent 28fc0ca commit 44300cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/agent/src/agent/evaluation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const evaluate = async (
// TODO: does this evaluation interval make sense?
const modulo = Math.round(runtime.getRecentMessageCount() - 2);

// if (totalMessages % modulo !== 0) return;
if (totalMessages % modulo !== 0) return;

console.log('running evaluation')

Expand Down
2 changes: 1 addition & 1 deletion packages/agent/src/agent/evaluators/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const handler = async (
state: State,
) => {
//

console.log('running profile handler')
// TODO:
// get the target from the message

Expand Down
2 changes: 2 additions & 0 deletions packages/agent/src/lib/evaluators/reflect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ INSTRUCTIONS: Extract any claims from the conversation in the scene that are not
* @TODO - Rework moon's factual json reflection system (rolodex)
*/
async function handler(runtime: AgentRuntime, _message: Message, state: State) {
console.log('running reflect handler')

const { userIds, senderId, agentId, room_id } = state;

const actors =
Expand Down

0 comments on commit 44300cf

Please sign in to comment.