File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
packages/ai-sdk-provider/src Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @thirdweb-dev/ai-sdk-provider " : patch
3+ ---
4+
5+ Update sign swap action type
Original file line number Diff line number Diff line change @@ -453,6 +453,8 @@ class ThirdwebLanguageModel implements LanguageModelV2 {
453453 action : parsed . data . action ,
454454 intent : parsed . data . intent ,
455455 transaction : parsed . data . transaction ,
456+ from_token : parsed . data . from_token ,
457+ to_token : parsed . data . to_token ,
456458 } satisfies SignSwapInput ;
457459 break ;
458460
Original file line number Diff line number Diff line change @@ -21,10 +21,21 @@ const AgentActionSignSwapDataIntent = z.object({
2121 max_steps : z . number ( ) ,
2222} ) ;
2323
24+ const AgentActionSignSwapDataToken = z . object ( {
25+ address : z . string ( ) ,
26+ chain_id : z . number ( ) ,
27+ amount : z . string ( ) ,
28+ symbol : z . string ( ) ,
29+ decimals : z . number ( ) ,
30+ price : z . number ( ) . nullable ( ) ,
31+ } ) ;
32+
2433const AgentActionSignSwapData = z . object ( {
2534 action : z . string ( ) ,
2635 intent : AgentActionSignSwapDataIntent ,
2736 transaction : AgentActionSignTransactionData ,
37+ from_token : AgentActionSignSwapDataToken ,
38+ to_token : AgentActionSignSwapDataToken ,
2839} ) ;
2940
3041const AgentActionTransactionOutputData = z . object ( {
You can’t perform that action at this time.
0 commit comments