Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
bentwnghk committed Oct 4, 2024
2 parents 8192ab4 + 5d372a8 commit e13bacc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/agents/tools/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const searchTool = ({ uiStream, fullResponse }: ToolProps) =>
: searxngSearch)(
filledQuery,
max_results,
effectiveSearchDepth,
effectiveSearchDepth === 'advanced' ? 'advanced' : 'basic',
include_domains,
exclude_domains
)
Expand Down
6 changes: 4 additions & 2 deletions lib/schema/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ export const searchSchema = z.object({
.number()
.describe('The maximum number of results to return'),
search_depth: z
.enum(['basic', 'advanced'])
.describe('The depth of the search'),
.string()
.describe(
'The depth of the search. Allowed values are "basic" or "advanced"'
),
include_domains: z
.array(z.string())
.optional()
Expand Down

0 comments on commit e13bacc

Please sign in to comment.