-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from route06inc/reasoning-keywords
Reasoning keywords on Search Node
- Loading branch information
Showing
6 changed files
with
80 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/(playground)/p/[agentId]/beta-proto/web-search/schema.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { jsonSchema } from "ai"; | ||
|
||
export const webSearchSchema = jsonSchema<{ plan: string; keywords: string[] }>( | ||
{ | ||
$schema: "https://json-schema.org/draft/2020-12/schema", | ||
title: "keyword schema", | ||
type: "object", | ||
properties: { | ||
plan: { | ||
type: "string", | ||
description: "Describe the plan that you will archive user request", | ||
}, | ||
keywords: { | ||
type: "array", | ||
items: { | ||
type: "string", | ||
description: | ||
"Suggest appropriate search queries with relevant keywords at least 3-5 words long", | ||
}, | ||
description: "The keywords to search for user request", | ||
}, | ||
}, | ||
required: ["plan", "keywords"], | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters