@@ -12,12 +12,12 @@ export type ToolArgument = string | number | boolean | bigint;
1212
1313// Response interface for tool operations (similar to IntentAgentResponse)
1414export interface toolResponse {
15- tools : string [ ] ;
16- reasoning : string ;
17- response : string ;
18- status : "success" | "error" ;
19- query : string ;
20- errors : string [ ] ;
15+ success : boolean ;
16+ selected_tool : null | string ;
17+ response : null | string ;
18+ needs_additional_info : boolean ;
19+ additional_info_required : null | string [ ] ;
20+ tool_arguments : ( string | number | boolean | bigint ) [ ] ;
2121}
2222
2323// Defines the structure for tool parameters
@@ -30,15 +30,12 @@ export interface ToolParameter {
3030
3131// Defines the structure for tools that can be used by the agent
3232export interface Tool {
33- name : string ;
34- description : string ;
35- parameters : {
36- name : string ;
37- type : string ;
38- description : string ;
39- required : boolean ;
40- } [ ] ;
41- process : ( ...args : ( string | number | boolean | bigint ) [ ] ) => Promise < string > | string ;
33+ name : string ; // Name of the tool
34+ description : string ; // Description of what the tool does
35+ parameters : ToolParameter [ ] ; // List of parameters the tool accepts
36+ process : (
37+ ...args : ( string | number | boolean | bigint ) [ ]
38+ ) => Promise < string > | string ; // Function to execute the tool
4239}
4340
4441// Mapping of different coin names/variants to their standardized symbol
@@ -198,10 +195,3 @@ export const NETWORK_CONFIG: NetworkConfigs = {
198195 faucet : 'https://faucet.testnet.sui.io/gas' ,
199196 } ,
200197} ;
201-
202- export interface Protocol {
203- name : string ;
204- description : string ;
205- version : string ;
206- tools : Tool [ ] ;
207- }
0 commit comments