From 6daa750f71d698e44e99e9588e6b09dd201b05bb Mon Sep 17 00:00:00 2001
From: thucpn <thucsh2@gmail.com>
Date: Mon, 17 Mar 2025 10:06:36 +0700
Subject: [PATCH] fix: typing

---
 examples/mistral/agent.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/mistral/agent.ts b/examples/mistral/agent.ts
index a8e4ee649..c923d6a18 100644
--- a/examples/mistral/agent.ts
+++ b/examples/mistral/agent.ts
@@ -1,7 +1,7 @@
 import { mistral } from "@llamaindex/mistral";
+import { wiki } from "@llamaindex/tools";
 import { agent, tool } from "llamaindex";
 import { z } from "zod";
-import { WikipediaTool } from "../wiki";
 
 const workflow = agent({
   tools: [
@@ -13,7 +13,7 @@ const workflow = agent({
       }),
       execute: ({ location }) => `The weather in ${location} is sunny`,
     }),
-    new WikipediaTool(),
+    wiki(),
   ],
   llm: mistral({
     apiKey: process.env.MISTRAL_API_KEY,
-- 
GitLab