Skip to content

Commit cdbfb6e

Browse files
committed
chore
1 parent 086429e commit cdbfb6e

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

packages/plugin-nft-generation/src/actions/mintNFTAction.ts

+1-22
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import {
44
Content,
55
elizaLogger,
66
generateObjectDeprecated,
7-
getEmbeddingZeroVector,
87
HandlerCallback,
98
IAgentRuntime,
109
Memory,
1110
ModelClass,
1211
State,
13-
stringToUuid,
1412
} from "@ai16z/eliza";
1513
import { createNFT } from "../handlers/createNFT.ts";
1614
import { verifyNFT } from "../handlers/verifyNFT.ts";
@@ -34,8 +32,7 @@ Given the recent messages, extract the following information about the requested
3432
3533
Respond with a JSON markdown block containing only the extracted values.
3634
37-
Note: Make sure to extract the collection address from the most recent messages whenever possible.`
38-
35+
Note: Make sure to extract the collection address from the most recent messages whenever possible.`;
3936

4037
export interface MintContent extends Content {
4138
collectionAddress: string;
@@ -86,24 +83,6 @@ const mintNFTAction: Action = {
8683
) => {
8784
try {
8885
elizaLogger.log("Composing state for message:", message);
89-
const userId = runtime.agentId;
90-
const agentName = runtime.character.name;
91-
const roomId = stringToUuid("nft_generate_room-" + agentName);
92-
93-
// const memory: Memory = {
94-
// agentId: userId,
95-
// userId,
96-
// roomId,
97-
// content: {
98-
// text: message.content.text,
99-
// source: "nft-generator",
100-
// },
101-
// createdAt: Date.now(),
102-
// embedding: getEmbeddingZeroVector(),
103-
// };
104-
// const state = await runtime.composeState(memory, {
105-
// message: message.content.text,
106-
// });
10786
if (!state) {
10887
state = (await runtime.composeState(message)) as State;
10988
} else {

0 commit comments

Comments
 (0)