Skip to content

Commit

Permalink
fix social media action, roles, onboarding, other issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Mar 9, 2025
1 parent be8ab2e commit 1e9a42e
Show file tree
Hide file tree
Showing 38 changed files with 287 additions and 513 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
environment:
- OPENAI_API_KEY=
- REDPILL_API_KEY=
- ELEVENLABS_XI_API_KEY=
- ELEVENLABS_API_KEY=
- ELEVENLABS_MODEL_ID=eleven_multilingual_v2
- ELEVENLABS_VOICE_ID=21m00Tcm4TlvDq8ikWAM
- ELEVENLABS_VOICE_STABILITY=0.5
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"agent": "turbo run start --filter=@elizaos/the-org",
"dev": "turbo run build --filter=./packages/core && turbo run dev --filter=!./packages/core --filter=!./packages/docs --concurrency=20",
"release": "bun run build && bun lint && npx lerna publish --no-private --force-publish && bun lint",
"release:alpha": "bun run build && bun lint && npx lerna publish prerelease --preid alpha --dist-tag alpha --no-private --force-publish && bun lint",
"release:alpha": "npx lerna publish prerelease --preid alpha --dist-tag alpha --no-private --force-publish --loglevel verbose && bun lint",
"docker:build": "bash ./scripts/docker.sh build",
"docker:run": "bash ./scripts/docker.sh run",
"docker:bash": "bash ./scripts/docker.sh bash",
Expand Down
151 changes: 0 additions & 151 deletions packages/core/__tests__/evaluators/goal.test.ts

This file was deleted.

14 changes: 1 addition & 13 deletions packages/core/src/actions/choice.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { logger } from "../logger";
import { composePrompt } from "../prompts";
import { parseJSONObjectFromText } from "../prompts";
import { composePrompt, parseJSONObjectFromText } from "../prompts";
import { getUserServerRole } from "../roles";
import {
type Action,
Expand Down Expand Up @@ -258,29 +257,18 @@ export const choiceAction: Action = {
}

try {
console.log("selectedTask", JSON.stringify(selectedTask, null, 2));
const taskWorker = runtime.getTaskWorker(selectedTask.name);
// ignore
// @ts-ignore
console.log("taskWorkers is", runtime.taskWorkers);
console.log(
"*** TASK WORKER ***\n",
JSON.stringify(taskWorker, null, 2),
);
await taskWorker.execute(
runtime,
{ option: selectedOption },
selectedTask,
);
console.log("*** TASK WORKER EXECUTED ***\n");
await runtime.getDatabaseAdapter().deleteTask(selectedTask.id);
console.log("*** TASK DELETED ***\n");
await callback({
text: `Selected option: ${selectedOption} for task: ${selectedTask.name}`,
actions: ["CHOOSE_OPTION"],
source: message.content.source,
});
console.log("*** TASK CALLBACK ***\n");
return;
} catch (error) {
logger.error("Error executing task with option:", error);
Expand Down
Loading

0 comments on commit 1e9a42e

Please sign in to comment.