@probelabs/probe 0.6.0-rc210 → 0.6.0-rc211
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.
- package/bin/binaries/probe-v0.6.0-rc211-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc211-x86_64-unknown-linux-musl.tar.gz +0 -0
- package/build/agent/ProbeAgent.js +15 -3
- package/build/agent/index.js +636 -75
- package/build/agent/probeTool.js +11 -2
- package/build/agent/tools.js +8 -0
- package/build/index.js +6 -1
- package/build/search.js +2 -2
- package/build/tools/analyzeAll.js +624 -0
- package/build/tools/common.js +149 -85
- package/build/tools/langchain.js +1 -1
- package/build/tools/vercel.js +61 -2
- package/cjs/agent/ProbeAgent.cjs +9695 -6756
- package/cjs/index.cjs +9699 -6754
- package/package.json +1 -1
- package/src/agent/ProbeAgent.js +15 -3
- package/src/agent/probeTool.js +11 -2
- package/src/agent/tools.js +8 -0
- package/src/index.js +6 -1
- package/src/search.js +2 -2
- package/src/tools/analyzeAll.js +624 -0
- package/src/tools/common.js +149 -85
- package/src/tools/langchain.js +1 -1
- package/src/tools/vercel.js +61 -2
- package/bin/binaries/probe-v0.6.0-rc210-aarch64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc210-aarch64-unknown-linux-musl.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc210-x86_64-apple-darwin.tar.gz +0 -0
- package/bin/binaries/probe-v0.6.0-rc210-x86_64-pc-windows-msvc.zip +0 -0
- package/bin/binaries/probe-v0.6.0-rc210-x86_64-unknown-linux-musl.tar.gz +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
queryToolDefinition,
|
|
25
25
|
extractToolDefinition,
|
|
26
26
|
delegateToolDefinition,
|
|
27
|
+
analyzeAllToolDefinition,
|
|
27
28
|
bashToolDefinition,
|
|
28
29
|
listFilesToolDefinition,
|
|
29
30
|
searchFilesToolDefinition,
|
|
@@ -561,6 +562,9 @@ export class ProbeAgent {
|
|
|
561
562
|
if (this.enableDelegate && wrappedTools.delegateToolInstance && isToolAllowed('delegate')) {
|
|
562
563
|
this.toolImplementations.delegate = wrappedTools.delegateToolInstance;
|
|
563
564
|
}
|
|
565
|
+
if (wrappedTools.analyzeAllToolInstance && isToolAllowed('analyze_all')) {
|
|
566
|
+
this.toolImplementations.analyze_all = wrappedTools.analyzeAllToolInstance;
|
|
567
|
+
}
|
|
564
568
|
|
|
565
569
|
// File browsing tools
|
|
566
570
|
if (isToolAllowed('listFiles')) {
|
|
@@ -2065,6 +2069,11 @@ ${extractGuidance}
|
|
|
2065
2069
|
toolDefinitions += `${delegateToolDefinition}\n`;
|
|
2066
2070
|
}
|
|
2067
2071
|
|
|
2072
|
+
// Analyze All tool for bulk data processing
|
|
2073
|
+
if (isToolAllowed('analyze_all')) {
|
|
2074
|
+
toolDefinitions += `${analyzeAllToolDefinition}\n`;
|
|
2075
|
+
}
|
|
2076
|
+
|
|
2068
2077
|
// Build XML tool guidelines with dynamic examples based on allowed tools
|
|
2069
2078
|
// Build examples only for allowed tools
|
|
2070
2079
|
let toolExamples = '';
|
|
@@ -2129,6 +2138,9 @@ The configuration is loaded from src/config.js lines 15-25 which contains the da
|
|
|
2129
2138
|
if (this.enableDelegate && isToolAllowed('delegate')) {
|
|
2130
2139
|
availableToolsList += '- delegate: Delegate big distinct tasks to specialized probe subagents.\n';
|
|
2131
2140
|
}
|
|
2141
|
+
if (isToolAllowed('analyze_all')) {
|
|
2142
|
+
availableToolsList += '- analyze_all: Process ALL data matching a query using map-reduce (for aggregate questions needing 100% coverage).\n';
|
|
2143
|
+
}
|
|
2132
2144
|
if (this.enableBash && isToolAllowed('bash')) {
|
|
2133
2145
|
availableToolsList += '- bash: Execute bash commands for system operations.\n';
|
|
2134
2146
|
}
|
|
@@ -2642,11 +2654,11 @@ Follow these instructions carefully:
|
|
|
2642
2654
|
if (!maxResponseTokens) {
|
|
2643
2655
|
// Use model-based defaults if not explicitly configured
|
|
2644
2656
|
maxResponseTokens = 4000;
|
|
2645
|
-
if (this.model.includes('opus') || this.model.includes('sonnet') || this.model.startsWith('gpt-4-')) {
|
|
2657
|
+
if (this.model && this.model.includes('opus') || this.model && this.model.includes('sonnet') || this.model && this.model.startsWith('gpt-4-')) {
|
|
2646
2658
|
maxResponseTokens = 8192;
|
|
2647
|
-
} else if (this.model.startsWith('gpt-4o')) {
|
|
2659
|
+
} else if (this.model && this.model.startsWith('gpt-4o')) {
|
|
2648
2660
|
maxResponseTokens = 8192;
|
|
2649
|
-
} else if (this.model.startsWith('gemini')) {
|
|
2661
|
+
} else if (this.model && this.model.startsWith('gemini')) {
|
|
2650
2662
|
maxResponseTokens = 32000;
|
|
2651
2663
|
}
|
|
2652
2664
|
}
|