Files
sim/apps/sim/lib/copilot/tools/server/base-tool.ts
Siddharth Ganesan cee74f8eb5 v0
2026-01-28 15:02:41 -08:00

13 lines
466 B
TypeScript

/**
* Base interface for server-executed tools.
*
* @template TArgs - The type of arguments the tool accepts
* @template TResult - The type of result the tool returns
*/
export interface BaseServerTool<TArgs = unknown, TResult = unknown> {
/** The canonical name of the tool (must match the registry key) */
name: string
/** Execute the tool with the given arguments and context */
execute(args: TArgs, context?: { userId: string }): Promise<TResult>
}