Skip to content

Commit 252d374

Browse files
committed
fix interface lints
1 parent dcd1fd4 commit 252d374

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/sui-agent/src/@types/interface.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}
99
export 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
}
1717
export 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
}
2929
export declare const COIN_SYNONYMS: Record<string, string>;
3030
export declare const COIN_ADDRESSES: {

packages/sui-agent/src/@types/interface.ts

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

0 commit comments

Comments
 (0)