Skip to content
Snippets Groups Projects
Commit 6daa750f authored by thucpn's avatar thucpn
Browse files

fix: typing

parent 4c131a55
No related branches found
No related tags found
No related merge requests found
import { mistral } from "@llamaindex/mistral"; import { mistral } from "@llamaindex/mistral";
import { wiki } from "@llamaindex/tools";
import { agent, tool } from "llamaindex"; import { agent, tool } from "llamaindex";
import { z } from "zod"; import { z } from "zod";
import { WikipediaTool } from "../wiki";
const workflow = agent({ const workflow = agent({
tools: [ tools: [
...@@ -13,7 +13,7 @@ const workflow = agent({ ...@@ -13,7 +13,7 @@ const workflow = agent({
}), }),
execute: ({ location }) => `The weather in ${location} is sunny`, execute: ({ location }) => `The weather in ${location} is sunny`,
}), }),
new WikipediaTool(), wiki(),
], ],
llm: mistral({ llm: mistral({
apiKey: process.env.MISTRAL_API_KEY, apiKey: process.env.MISTRAL_API_KEY,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment