File size: 472 Bytes
c2df9c2 1c1c1be c2df9c2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
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 };
|