mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-12-14 15:48:15 +00:00
Create fileSearch.ts
This commit is contained in:
10
src/lib/agents/search/researcher/actions/fileSearch.ts
Normal file
10
src/lib/agents/search/researcher/actions/fileSearch.ts
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import z from "zod";
|
||||||
|
import { ResearchAction } from "../../types";
|
||||||
|
|
||||||
|
const schema = z.object({
|
||||||
|
queries: z.array(z.string()).describe("A list of queries to search in files."),
|
||||||
|
})
|
||||||
|
|
||||||
|
const fileSearhAction: ResearchAction<typeof schema> = {
|
||||||
|
name: "file_search",
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user