Skip to content

Commit

Permalink
fix: merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Nov 23, 2024
1 parent 4f84331 commit b905ca1
Show file tree
Hide file tree
Showing 5 changed files with 579 additions and 569 deletions.
3 changes: 2 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import path from "path";
import { fileURLToPath } from "url";
import { character } from "./character.ts";
import type { DirectClient } from "@ai16z/client-direct";
import blobert from "./blobert.ts";

const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
const __dirname = path.dirname(__filename); // get the name of the directory
Expand Down Expand Up @@ -317,7 +318,7 @@ const startAgents = async () => {

let charactersArg = args.characters || args.character;

let characters = [character];
let characters = [blobert];

if (charactersArg) {
characters = await loadCharacters(charactersArg);
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter-postgres/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import pg, {
QueryConfigValues,
QueryResult,
QueryResultRow,
DatabaseError,
} from "pg";
import {
Account,
Expand All @@ -24,6 +23,8 @@ import fs from "fs";
import { fileURLToPath } from "url";
import path from "path";

const { DatabaseError } = pg;

const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
const __dirname = path.dirname(__filename); // get the name of the directory

Expand Down
3 changes: 3 additions & 0 deletions packages/plugin-bootstrap/src/evaluators/goal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ async function handler(
// get goals
let goalsData = await getGoals({
runtime,
agentId: runtime.agentId,
roomId: message.roomId,
onlyInProgress: options.onlyInProgress as boolean,
});
Expand All @@ -81,6 +82,7 @@ async function handler(
// get goals
goalsData = await getGoals({
runtime,
agentId: runtime.agentId,
roomId: message.roomId,
onlyInProgress: true,
});
Expand Down Expand Up @@ -146,6 +148,7 @@ export const goalEvaluator: Evaluator = {
// Check if there are active goals that could potentially be updated
const goals = await getGoals({
runtime,
agentId: runtime.agentId,
count: 1,
onlyInProgress: true,
roomId: message.roomId,
Expand Down
Empty file.
Loading

0 comments on commit b905ca1

Please sign in to comment.