File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,16 +17,12 @@ async function tradeHandler(): Promise<NextResponse> {
1717
1818 const context = await buildAgentContext ( accountId , account ) ;
1919
20- const { content, toolResults } = await callAgent (
20+ const { content, toolResults } = await callAgent ( {
2121 accountId,
22- // WTF - Now we are passing the system prompt twice...
23- context . systemPrompt ,
22+ message : "TODO: Add message..." ,
2423 agentId,
25- "" , // evmAddress
26- "" , // suiAddress
27- "" , // nearAddress
28- context . systemPrompt ,
29- ) ;
24+ systemPrompt : context . systemPrompt ,
25+ } ) ;
3026
3127 const quoteResult = ( toolResults as ToolResult [ ] ) . find (
3228 ( callResult ) => callResult . result ?. data ?. data ?. quote ,
Original file line number Diff line number Diff line change 1414 "dependencies" : {
1515 "@ai-sdk/openai" : " ^1.3.24" ,
1616 "@ai-sdk/ui-utils" : " 1.2.11" ,
17- "@bitte-ai/agent-sdk" : " 0.4.2-beta.0 " ,
17+ "@bitte-ai/agent-sdk" : " 0.4.2-beta.1 " ,
1818 "@near-js/transactions" : " ^2.3.0" ,
1919 "ai" : " ^3.4.33" ,
2020 "clsx" : " ^2.1.1" ,
You can’t perform that action at this time.
0 commit comments