@kuralle-agents/tools 0.8.5 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,9 +10,12 @@ import { z } from 'zod';
10
10
  export function createVectorRetrievalTool(options) {
11
11
  const { retriever, topK: defaultTopK = 10, enableAgenticFilters = false, filterableFields, staticFilter, reranker, rerankTopK, } = options;
12
12
  let toolDescription = options.description ??
13
- 'Search the knowledge base for relevant information. Use this when ' +
14
- 'you need to find specific facts, policies, or context to answer ' +
15
- 'the user\'s question accurately.';
13
+ 'Semantically search the knowledge base for relevant information. Use this for ' +
14
+ 'conceptual or paraphrased questions where you need facts, policies, or context ' +
15
+ 'to answer accurately. If a workspace tool with grep/find is available and the ' +
16
+ 'user mentioned an exact term, code, or identifier, prefer grep there first — ' +
17
+ 'it is cheaper and exact; use this tool when the question needs meaning, not ' +
18
+ 'exact matching.';
16
19
  if (enableAgenticFilters && filterableFields?.length) {
17
20
  const fieldDescriptions = filterableFields
18
21
  .map(f => {
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "git+https://github.com/kuralle/kuralle-agents.git",
7
7
  "directory": "packages/kuralle-tools"
8
8
  },
9
- "version": "0.8.5",
9
+ "version": "0.10.0",
10
10
  "description": "Kuralle tools (CAG)",
11
11
  "type": "module",
12
12
  "main": "dist/index.js",
@@ -18,14 +18,14 @@
18
18
  }
19
19
  },
20
20
  "dependencies": {
21
- "@kuralle-agents/core": "0.8.5",
22
- "@kuralle-agents/rag": "0.8.5"
21
+ "@kuralle-agents/core": "0.10.0",
22
+ "@kuralle-agents/rag": "0.10.0"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "ai": "^6.0.0",
26
26
  "zod": "^4.0.0",
27
- "@kuralle-agents/core": "0.8.5",
28
- "@kuralle-agents/rag": "0.8.5"
27
+ "@kuralle-agents/core": "0.10.0",
28
+ "@kuralle-agents/rag": "0.10.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^20.11.0",