Skip to content

Commit e6da0c6

Browse files
committed
Improve AgentCall input type
1 parent 13475e7 commit e6da0c6

3 files changed

Lines changed: 12571 additions & 1931 deletions

File tree

app/api/trade/route.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff 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,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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",

0 commit comments

Comments
 (0)