Skip to content

Commit 2dd88a2

Browse files
authored
Merge pull request #36 from atoma-network/revert-35-smarter-tools
Revert "Add Smarter tool calling and ToolManager for multiple Tool calling"
2 parents 8d68f28 + 4250979 commit 2dd88a2

File tree

5 files changed

+3350
-804
lines changed

5 files changed

+3350
-804
lines changed

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

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export type ToolArgument = string | number | boolean | bigint;
1212

1313
// Response interface for tool operations (similar to IntentAgentResponse)
1414
export 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
3232
export 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-
}

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

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)