import { Tool } from 'openai-function-calling-tools'; | |
import { z } from 'zod'; | |
function createUrlSurfer() { | |
const paramsSchema = z.object({ | |
input: z.string(), | |
}); | |
const name = 'surfer'; | |
const description = 'A custom URL navigator. Useful when a URL is provided with a question. Input should be a prompt with a URL. Outputs a JSON array of relevant results.'; | |
return new Tool(paramsSchema, name, description, {} as any).tool; | |
} | |
export { createUrlSurfer }; | |