@@ -17,7 +17,7 @@ import {
17
17
State ,
18
18
type Action ,
19
19
composeContext ,
20
- generateObject ,
20
+ generateObjectDEPRECATED ,
21
21
settings ,
22
22
} from "@ai16z/eliza" ;
23
23
import { TokenProvider } from "../providers/token.ts" ;
@@ -110,7 +110,7 @@ Example response:
110
110
\`\`\`json
111
111
{
112
112
"inputTokenSymbol": "SOL",
113
- "outputTokenSymbol": "USDC",
113
+ "outputTokenSymbol": "USDC",
114
114
"inputTokenCA": "So11111111111111111111111111111111111111112",
115
115
"outputTokenCA": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
116
116
"amount": 1.5
@@ -125,7 +125,7 @@ Given the recent messages and wallet information below:
125
125
126
126
Extract the following information about the requested token swap:
127
127
- Input token symbol (the token being sold)
128
- - Output token symbol (the token being bought)
128
+ - Output token symbol (the token being bought)
129
129
- Input token contract address if provided
130
130
- Output token contract address if provided
131
131
- Amount to swap
@@ -134,7 +134,7 @@ Respond with a JSON markdown block containing only the extracted values. Use nul
134
134
\`\`\`json
135
135
{
136
136
"inputTokenSymbol": string | null,
137
- "outputTokenSymbol": string | null,
137
+ "outputTokenSymbol": string | null,
138
138
"inputTokenCA": string | null,
139
139
"outputTokenCA": string | null,
140
140
"amount": number | string | null
@@ -209,7 +209,7 @@ export const executeSwap: Action = {
209
209
template : swapTemplate ,
210
210
} ) ;
211
211
212
- const response = await generateObject ( {
212
+ const response = await generateObjectDEPRECATED ( {
213
213
runtime,
214
214
context : swapContext ,
215
215
modelClass : ModelClass . LARGE ,
0 commit comments