Skip to content

Commit

Permalink
update news plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ileana-pr committed Dec 19, 2024
1 parent 54af42b commit 1d70ad7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 38 deletions.
2 changes: 1 addition & 1 deletion packages/plugin-news/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@ai16z/plugin-bootstrap",
"name": "@ai16z/plugin-news",
"version": "0.1.5-alpha.5",
"main": "dist/index.js",
"type": "module",
Expand Down
33 changes: 8 additions & 25 deletions packages/plugin-news/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
import { Plugin } from "@ai16z/eliza";
import { continueAction } from "./actions/continue.ts";
import { followRoomAction } from "./actions/followRoom.ts";
import { ignoreAction } from "./actions/ignore.ts";
import { muteRoomAction } from "./actions/muteRoom.ts";
import { noneAction } from "./actions/none.ts";
import { unfollowRoomAction } from "./actions/unfollowRoom.ts";
import { unmuteRoomAction } from "./actions/unmuteRoom.ts";
import { factEvaluator } from "./evaluators/fact.ts";
import { goalEvaluator } from "./evaluators/goal.ts";
import { boredomProvider } from "./providers/boredom.ts";
import { factsProvider } from "./providers/facts.ts";
import { currentNewsAction } from "./actions/news.ts";
import { timeProvider } from "./providers/time.ts";
import { factEvaluator } from "./evaluators/fact.ts";

export * as actions from "./actions";
export * as evaluators from "./evaluators";
export * as providers from "./providers";

export const bootstrapPlugin: Plugin = {
name: "bootstrap",
description: "Agent bootstrap with basic actions and evaluators",
actions: [
continueAction,
followRoomAction,
unfollowRoomAction,
ignoreAction,
noneAction,
muteRoomAction,
unmuteRoomAction,
],
evaluators: [factEvaluator, goalEvaluator],
providers: [boredomProvider, timeProvider, factsProvider],
export const newsPlugin: Plugin = {
name: "news",
description: "Get the latest news about a specific topic if asked by the user.",
actions: [currentNewsAction],
evaluators: [factEvaluator],
providers: [timeProvider],
};
17 changes: 5 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d70ad7

Please sign in to comment.