cr
This commit is contained in:
@@ -13,8 +13,7 @@ async function router(
|
|||||||
state: GenerativeUIState,
|
state: GenerativeUIState,
|
||||||
): Promise<Partial<GenerativeUIState>> {
|
): Promise<Partial<GenerativeUIState>> {
|
||||||
const routerDescription = `The route to take based on the user's input.
|
const routerDescription = `The route to take based on the user's input.
|
||||||
- stockbroker: can fetch the price of a ticker, purchase/sell a ticker, or get the user's portfolio
|
${allToolDescriptions}
|
||||||
- tripPlanner: helps the user plan their trip. it can suggest restaurants, and places to stay in any given location.
|
|
||||||
- generalInput: handles all other cases where the above tools don't apply
|
- generalInput: handles all other cases where the above tools don't apply
|
||||||
`;
|
`;
|
||||||
const routerSchema = z.object({
|
const routerSchema = z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user