chore: Type-check fixes

This commit is contained in:
2026-03-27 17:48:02 +05:30
parent 0f5a31137f
commit 28c26d319e
4 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import fs from "node:fs";
import { OllamaEmbedding } from "@llamaindex/ollama";
import { OpenAI } from "@llamaindex/openai";
import { Graph } from "graphology";
import Graph from "graphology";
import {
QueryEngineTool,
ReActAgent,
@@ -10,7 +10,7 @@ import {
VectorStoreIndex,
} from "llamaindex";
import { GRAPH_FILE, STORAGE_DIR } from "./constants.ts";
import { GRAPH_FILE, STORAGE_DIR } from "./constants";
// Configure Settings
Settings.embedModel = new OllamaEmbedding({
@@ -74,7 +74,7 @@ async function main() {
required: ["query"],
},
},
call: async ({ query }) => {
call: async ({ query }: { query: string }) => {
console.log(`[Tool: graph_explorer] Querying for: ${query}`);
let nodeId = query;
if (!graph.hasNode(nodeId)) {