Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 12 additions & 22 deletions packages/sui-agent/src/@types/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ export type ToolArgument = string | number | boolean | bigint;

// Response interface for tool operations (similar to IntentAgentResponse)
export interface toolResponse {
tools: string[];
reasoning: string;
response: string;
status: "success" | "error";
query: string;
errors: string[];
success: boolean;
selected_tool: null | string;
response: null | string;
needs_additional_info: boolean;
additional_info_required: null | string[];
tool_arguments: (string | number | boolean | bigint)[];
}

// Defines the structure for tool parameters
Expand All @@ -30,15 +30,12 @@ export interface ToolParameter {

// Defines the structure for tools that can be used by the agent
export interface Tool {
name: string;
description: string;
parameters: {
name: string;
type: string;
description: string;
required: boolean;
}[];
process: (...args: (string | number | boolean | bigint)[]) => Promise<string> | string;
name: string; // Name of the tool
description: string; // Description of what the tool does
parameters: ToolParameter[]; // List of parameters the tool accepts
process: (
...args: (string | number | boolean | bigint)[]
) => Promise<string> | string; // Function to execute the tool
}

// Mapping of different coin names/variants to their standardized symbol
Expand Down Expand Up @@ -198,10 +195,3 @@ export const NETWORK_CONFIG: NetworkConfigs = {
faucet: 'https://faucet.testnet.sui.io/gas',
},
};

export interface Protocol {
name: string;
description: string;
version: string;
tools: Tool[];
}
65 changes: 0 additions & 65 deletions packages/sui-agent/src/@types/tool.ts

This file was deleted.

Loading