Download app/tools/surfer.ts from matthoffner/chat-with-internet: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/spaces/matthoffner/chat-with-internet/resolve/6480c62d981c11698be0a792ce307050f3c7e7a2/app/tools/surfer.ts
- Command line
-
hf download hf://spaces/matthoffner/chat-with-internet@6480c62d981c11698be0a792ce307050f3c7e7a2/app/tools/surfer.ts
-
curl -L -o surfer.ts https://huggingface.co/spaces/matthoffner/chat-with-internet/resolve/6480c62d981c11698be0a792ce307050f3c7e7a2/app/tools/surfer.ts
472 Bytes
| 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 }; | |