cleaned logs

This commit is contained in:
MaxRobinsonTheGreat 2024-11-21 23:34:55 -06:00
parent 44c0526231
commit 4923083252
2 changed files with 1 additions and 3 deletions

View file

@ -172,7 +172,7 @@ async function _scheduleProcessInMessage(sender, recieved, convo) {
else if (!agent.isIdle()) {
// I'm busy but other bot isn't
let shouldRespond = await agent.prompter.promptShouldRespondToBot(recieved.message);
console.log(`${agent.name} decision to respond: ${shouldRespond}`);
console.log(`${agent.name} decided to ${shouldRespond?'respond':'not respond'} to ${sender}`);
if (shouldRespond)
scheduleResponse(fastDelay);
}

View file

@ -268,9 +268,7 @@ export class Prompter {
let messages = this.agent.history.getHistory();
messages.push({role: 'user', content: new_message});
prompt = await this.replaceStrings(prompt, null, null, messages);
console.log('Full bot responder prompt:', prompt);
let res = await this.chat_model.sendRequest([], prompt);
console.log('Bot responder response:', res);
return res.trim().toLowerCase() === 'respond';
}