Skip to content

Commit

Permalink
Merge pull request elizaOS#2075 from elizaOS/tcm-revert-pizza-pr
Browse files Browse the repository at this point in the history
fix: Revert "feat: Proof of Pizza - Agentic Dominos Ordering"
  • Loading branch information
shakkernerd authored Jan 10, 2025
2 parents 78e9ee6 + 226db31 commit 82607be
Show file tree
Hide file tree
Showing 23 changed files with 7 additions and 3,392 deletions.
1 change: 0 additions & 1 deletion agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@elizaos/plugin-binance": "workspace:*",
"@elizaos/plugin-avail": "workspace:*",
"@elizaos/plugin-bootstrap": "workspace:*",
"@elizaos/plugin-dominos": "workspace:*",
"@elizaos/plugin-cosmos": "workspace:*",
"@elizaos/plugin-intiface": "workspace:*",
"@elizaos/plugin-coinbase": "workspace:*",
Expand Down
9 changes: 5 additions & 4 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { SlackClientInterface } from "@elizaos/client-slack";
import { TelegramClientInterface } from "@elizaos/client-telegram";
import { TwitterClientInterface } from "@elizaos/client-twitter";
// import { ReclaimAdapter } from "@elizaos/plugin-reclaim";
import { DirectClient } from "@elizaos/client-direct";
import {
AgentRuntime,
CacheManager,
Expand All @@ -32,6 +31,11 @@ import {
validateCharacterConfig,
} from "@elizaos/core";
import { zgPlugin } from "@elizaos/plugin-0g";

import { bootstrapPlugin } from "@elizaos/plugin-bootstrap";
import createGoatPlugin from "@elizaos/plugin-goat";
// import { intifacePlugin } from "@elizaos/plugin-intiface";
import { DirectClient } from "@elizaos/client-direct";
import { ThreeDGenerationPlugin } from "@elizaos/plugin-3d-generation";
import { abstractPlugin } from "@elizaos/plugin-abstract";
import { alloraPlugin } from "@elizaos/plugin-allora";
Expand All @@ -40,7 +44,6 @@ import { artheraPlugin } from "@elizaos/plugin-arthera";
import { availPlugin } from "@elizaos/plugin-avail";
import { avalanchePlugin } from "@elizaos/plugin-avalanche";
import { binancePlugin } from "@elizaos/plugin-binance";
import { bootstrapPlugin } from "@elizaos/plugin-bootstrap";
import {
advancedTradePlugin,
coinbaseCommercePlugin,
Expand All @@ -59,7 +62,6 @@ import { evmPlugin } from "@elizaos/plugin-evm";
import { flowPlugin } from "@elizaos/plugin-flow";
import { fuelPlugin } from "@elizaos/plugin-fuel";
import { genLayerPlugin } from "@elizaos/plugin-genlayer";
import createGoatPlugin from "@elizaos/plugin-goat";
import { imageGenerationPlugin } from "@elizaos/plugin-image-generation";
import { multiversxPlugin } from "@elizaos/plugin-multiversx";
import { nearPlugin } from "@elizaos/plugin-near";
Expand Down Expand Up @@ -602,7 +604,6 @@ export async function createAgent(
// character.plugins are handled when clients are added
plugins: [
bootstrapPlugin,
dominosPlugin,
getSecret(character, "CONFLUX_CORE_PRIVATE_KEY")
? confluxPlugin
: null,
Expand Down
49 changes: 0 additions & 49 deletions packages/client-twitter/src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,9 @@ import {
stringToUuid,
elizaLogger,
getEmbeddingZeroVector,
parsePizzaDecisionFromText,
pizzaDecisionFooter,
} from "@elizaos/core";
import { ClientBase } from "./base";
import { buildConversationThread, sendTweet, wait } from "./utils.ts";
import {
generateText
} from "@elizaos/core";
import { PizzaAPI } from "./pizza.ts";

export const twitterMessageHandlerTemplate =
`
Expand Down Expand Up @@ -386,49 +380,6 @@ export class TwitterInteractionClient {
this.client.saveRequestMessage(message, state);
}

const pizzaCheck =
`
You are checking to see if someone is asking you to order a pizza.
They should explicitly ask for a pizza order.
Here is the tweet they posted:
${currentPost}` + pizzaDecisionFooter;

const pizzaCheckResponse = await generateText({
runtime: this.runtime,
context: pizzaCheck,
modelClass: ModelClass.LARGE,
});

console.log(
"[PIZZA-GEN][INTERACTIONS CLIENT] PIZZA check response: ",
pizzaCheckResponse,
" ",
currentPost
);

const pizzaCheckResult = parsePizzaDecisionFromText(pizzaCheckResponse);

console.log(
"[PIZZA-GEN][INTERACTIONS CLIENT] PIZZA check result:",
pizzaCheckResult
);

if (pizzaCheckResult === "YES") {
console.log(
"[PIZZA-GEN][INTERACTIONS CLIENT] PIZZA check result is YES, generating pizza order"
);

const pizzaAPI = new PizzaAPI(this.runtime);

const result = await pizzaAPI.orderPizza();

console.log(
"[PIZZA-GEN][INTERACTIONS CLIENT] Order result: ",
result
);
}

// get usernames into str
const validTargetUsersStr =
this.client.twitterConfig.TWITTER_TARGET_USERS.join(",");
Expand Down
278 changes: 0 additions & 278 deletions packages/client-twitter/src/pizza.ts

This file was deleted.

Loading

0 comments on commit 82607be

Please sign in to comment.