chore(types) - Fix type checks

This commit is contained in:
2026-04-14 16:47:20 +05:30
parent 5413f86d2b
commit 164747c255
10 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -13,8 +13,8 @@
import * as lancedbSdk from "@lancedb/lancedb";
import { OllamaEmbeddings } from "@langchain/ollama";
import { createSearchSpecSectionsTool } from "../../agent-tools";
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants";
import { createSearchSpecSectionsTool } from "../../agent-tools/index.js";
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants.js";
async function main() {
// Get query from command line or use default
@@ -43,7 +43,7 @@ async function main() {
console.log("✓ Tool created\n");
console.log("Executing tool...\n");
const result = await searchSpecSectionsTool.func({ query });
const result = await searchSpecSectionsTool({ query });
console.log("=== TOOL OUTPUT ===");
console.log(result);
+1 -1
View File
@@ -21,7 +21,7 @@ import type { Table } from "@lancedb/lancedb";
import * as lancedbSdk from "@lancedb/lancedb";
import { OllamaEmbeddings } from "@langchain/ollama";
import { Command } from "commander";
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants";
import { EMBEDDING_MODEL, STORAGE_DIR } from "../../constants.js";
const embeddings = new OllamaEmbeddings({
model: EMBEDDING_MODEL,