29 lines
890 B
TypeScript
29 lines
890 B
TypeScript
import { z } from 'zod';
|
|
import { ThreadManager } from '../core/thread-manager';
|
|
import { ToolDefinition } from '../types';
|
|
export declare const SearchMessagesInputSchema: z.ZodObject<{
|
|
query: z.ZodString;
|
|
threadId: z.ZodOptional<z.ZodString>;
|
|
topK: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
minScore: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
query: string;
|
|
topK?: number | undefined;
|
|
minScore?: number | undefined;
|
|
threadId?: string | undefined;
|
|
}, {
|
|
query: string;
|
|
topK?: number | undefined;
|
|
minScore?: number | undefined;
|
|
threadId?: string | undefined;
|
|
}>;
|
|
export declare const toolDefinition: ToolDefinition;
|
|
export declare function toolHandler(toolInvocation: {
|
|
toolName: string;
|
|
input: any;
|
|
}, threadManager: ThreadManager): Promise<{
|
|
message: string;
|
|
info?: any;
|
|
isError?: boolean;
|
|
}>;
|