mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-09 22:25:33 -05:00
13 lines
466 B
TypeScript
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>
|
|
}
|