Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tools): correct file search description #136

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/runs/execution/tools/file-search-tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ export class FileSearchTool extends Tool<FileSearchToolOutput, FileSearchToolOpt
description: string;
inputSchema() {
return z.object({
query: z.string({ description: 'Question to answer using file search.' }).min(1).max(128)
query: z
.string({
description: 'The search query or text for which similar data should be retrieved.'
})
.min(1)
.max(128)
});
}
vectorStores: Loaded<VectorStore>[];
Expand Down Expand Up @@ -128,8 +133,6 @@ export class FileSearchTool extends Tool<FileSearchToolOutput, FileSearchToolOpt
this.name = `FileSearch`;
this.maxNumResults = config.maxNumResults;
this.vectorStores = config.vectorStores;
this.description =
`Worker that searches results from content of files. ` +
`Use to find out single fact about the content. Input must be a short specific query.`;
this.description = 'Search in a vector store containing data from attached files.';
}
}
Loading