File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/sui-agent/src/@types Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ export interface IntentAgentResponse {
44 response : null | string ;
55 needs_additional_info : boolean ;
66 additional_info_required : null | string [ ] ;
7- tool_arguments : any [ ] ;
7+ tool_arguments : ( string | number | boolean | bigint ) [ ] ;
88}
99export interface toolResponse {
1010 success : boolean ;
1111 selected_tool : null | string ;
1212 response : null | string ;
1313 needs_additional_info : boolean ;
1414 additional_info_required : null | string [ ] ;
15- tool_arguments : any [ ] ;
15+ tool_arguments : ( string | number | boolean | bigint ) [ ] ;
1616}
1717export interface ToolParameter {
1818 name : string ;
@@ -24,7 +24,7 @@ export interface Tool {
2424 name : string ;
2525 description : string ;
2626 parameters : ToolParameter [ ] ;
27- process : ( ...args : any [ ] ) => Promise < string > | string ;
27+ process : ( ...args : ( string | number | boolean | bigint ) [ ] ) => Promise < string > | string ;
2828}
2929export declare const COIN_SYNONYMS : Record < string , string > ;
3030export declare const COIN_ADDRESSES : {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export interface IntentAgentResponse {
55 response : null | string ; // Response message from the operation
66 needs_additional_info : boolean ; // Indicates if more information is needed
77 additional_info_required : null | string [ ] ; // List of additional information fields needed
8- tool_arguments : any [ ] ; // Arguments passed to the tool
8+ tool_arguments : ( string | number | boolean | bigint ) [ ] ; // Arguments passed to the tool
99}
1010
1111// Response interface for tool operations (similar to IntentAgentResponse)
@@ -15,7 +15,7 @@ export interface toolResponse {
1515 response : null | string ;
1616 needs_additional_info : boolean ;
1717 additional_info_required : null | string [ ] ;
18- tool_arguments : any [ ] ;
18+ tool_arguments : ( string | number | boolean | bigint ) [ ] ;
1919}
2020
2121// Defines the structure for tool parameters
@@ -31,7 +31,7 @@ export interface Tool {
3131 name : string ; // Name of the tool
3232 description : string ; // Description of what the tool does
3333 parameters : ToolParameter [ ] ; // List of parameters the tool accepts
34- process : ( ...args : any [ ] ) => Promise < string > | string ; // Function to execute the tool
34+ process : ( ...args : ( string | number | boolean | bigint ) [ ] ) => Promise < string > | string ; // Function to execute the tool
3535}
3636
3737// Mapping of different coin names/variants to their standardized symbol
You can’t perform that action at this time.
0 commit comments