Interface ToolRequest

interface ToolRequest {
    description?: string;
    handler: ((arg_string) => Promise<unknown>);
    id: string;
    name: string;
    parameters?: {
        properties: Record<string, {
            type: string;
            [key: string]: unknown;
        }>;
        type?: "object";
    };
}

Properties

description?: string
handler: ((arg_string) => Promise<unknown>)

Type declaration

    • (arg_string): Promise<unknown>
    • Parameters

      • arg_string: string

      Returns Promise<unknown>

id: string
name: string
parameters?: {
    properties: Record<string, {
        type: string;
        [key: string]: unknown;
    }>;
    type?: "object";
}

Type declaration

  • properties: Record<string, {
        type: string;
        [key: string]: unknown;
    }>
  • Optional type?: "object"