@@ -4,13 +4,11 @@ import {
4
4
Content ,
5
5
elizaLogger ,
6
6
generateObjectDeprecated ,
7
- getEmbeddingZeroVector ,
8
7
HandlerCallback ,
9
8
IAgentRuntime ,
10
9
Memory ,
11
10
ModelClass ,
12
11
State ,
13
- stringToUuid ,
14
12
} from "@ai16z/eliza" ;
15
13
import { createNFT } from "../handlers/createNFT.ts" ;
16
14
import { verifyNFT } from "../handlers/verifyNFT.ts" ;
@@ -34,8 +32,7 @@ Given the recent messages, extract the following information about the requested
34
32
35
33
Respond with a JSON markdown block containing only the extracted values.
36
34
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.` ;
39
36
40
37
export interface MintContent extends Content {
41
38
collectionAddress : string ;
@@ -86,24 +83,6 @@ const mintNFTAction: Action = {
86
83
) => {
87
84
try {
88
85
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
- // });
107
86
if ( ! state ) {
108
87
state = ( await runtime . composeState ( message ) ) as State ;
109
88
} else {
0 commit comments