@probelabs/probe 0.6.0-rc329 → 0.6.0-rc330
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-rc329-aarch64-apple-darwin.tar.gz → probe-v0.6.0-rc330-aarch64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc329-aarch64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc330-aarch64-unknown-linux-musl.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc329-x86_64-apple-darwin.tar.gz → probe-v0.6.0-rc330-x86_64-apple-darwin.tar.gz} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc329-x86_64-pc-windows-msvc.zip → probe-v0.6.0-rc330-x86_64-pc-windows-msvc.zip} +0 -0
- package/bin/binaries/{probe-v0.6.0-rc329-x86_64-unknown-linux-musl.tar.gz → probe-v0.6.0-rc330-x86_64-unknown-linux-musl.tar.gz} +0 -0
- package/cjs/agent/ProbeAgent.cjs +9 -2
- package/cjs/index.cjs +9 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/cjs/agent/ProbeAgent.cjs
CHANGED
|
@@ -23099,6 +23099,13 @@ async function prepareTools({
|
|
|
23099
23099
|
const filteredFunctionTools = (toolChoice == null ? void 0 : toolChoice.type) === "tool" ? functionTools.filter((t) => t.name === toolChoice.toolName) : functionTools;
|
|
23100
23100
|
const supportsStrictOnTools = supportsStrictTools(modelId);
|
|
23101
23101
|
for (const tool6 of filteredFunctionTools) {
|
|
23102
|
+
if (!supportsStrictOnTools && tool6.strict != null) {
|
|
23103
|
+
toolWarnings.push({
|
|
23104
|
+
type: "unsupported",
|
|
23105
|
+
feature: "strict",
|
|
23106
|
+
details: `Tool '${tool6.name}' has strict: ${tool6.strict}, but strict mode is not supported by this model on Amazon Bedrock. The strict property will be ignored.`
|
|
23107
|
+
});
|
|
23108
|
+
}
|
|
23102
23109
|
bedrockTools.push({
|
|
23103
23110
|
toolSpec: {
|
|
23104
23111
|
name: tool6.name,
|
|
@@ -24091,7 +24098,7 @@ var init_dist3 = __esm({
|
|
|
24091
24098
|
const isThinkingEnabled = ((_b16 = bedrockOptions.reasoningConfig) == null ? void 0 : _b16.type) === "enabled" || ((_c = bedrockOptions.reasoningConfig) == null ? void 0 : _c.type) === "adaptive";
|
|
24092
24099
|
const { supportsStructuredOutput: modelSupportsStructuredOutput } = (0, import_internal2.getModelCapabilities)(this.modelId);
|
|
24093
24100
|
const useNativeStructuredOutput = isAnthropicModel && supportsNativeStructuredOutput(this.modelId) && (modelSupportsStructuredOutput || isThinkingEnabled) && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null;
|
|
24094
|
-
const useJsonInstructionForStructuredOutput = isAnthropicModel && (this.modelId
|
|
24101
|
+
const useJsonInstructionForStructuredOutput = isAnthropicModel && !supportsStrictTools(this.modelId) && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && tools2 != null && tools2.length > 0;
|
|
24095
24102
|
const jsonResponseTool = (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && !useNativeStructuredOutput && !useJsonInstructionForStructuredOutput ? {
|
|
24096
24103
|
type: "function",
|
|
24097
24104
|
name: "json",
|
|
@@ -25279,7 +25286,7 @@ var init_dist3 = __esm({
|
|
|
25279
25286
|
details: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
25280
25287
|
preview: external_exports.unknown().optional()
|
|
25281
25288
|
});
|
|
25282
|
-
VERSION2 = true ? "4.0.
|
|
25289
|
+
VERSION2 = true ? "4.0.145" : "0.0.0-test";
|
|
25283
25290
|
bedrockRerankingResponseSchema = lazySchema(
|
|
25284
25291
|
() => zodSchema(
|
|
25285
25292
|
external_exports.object({
|
package/cjs/index.cjs
CHANGED
|
@@ -25028,6 +25028,13 @@ async function prepareTools({
|
|
|
25028
25028
|
const filteredFunctionTools = (toolChoice == null ? void 0 : toolChoice.type) === "tool" ? functionTools.filter((t) => t.name === toolChoice.toolName) : functionTools;
|
|
25029
25029
|
const supportsStrictOnTools = supportsStrictTools(modelId);
|
|
25030
25030
|
for (const tool6 of filteredFunctionTools) {
|
|
25031
|
+
if (!supportsStrictOnTools && tool6.strict != null) {
|
|
25032
|
+
toolWarnings.push({
|
|
25033
|
+
type: "unsupported",
|
|
25034
|
+
feature: "strict",
|
|
25035
|
+
details: `Tool '${tool6.name}' has strict: ${tool6.strict}, but strict mode is not supported by this model on Amazon Bedrock. The strict property will be ignored.`
|
|
25036
|
+
});
|
|
25037
|
+
}
|
|
25031
25038
|
bedrockTools.push({
|
|
25032
25039
|
toolSpec: {
|
|
25033
25040
|
name: tool6.name,
|
|
@@ -26020,7 +26027,7 @@ var init_dist3 = __esm({
|
|
|
26020
26027
|
const isThinkingEnabled = ((_b16 = bedrockOptions.reasoningConfig) == null ? void 0 : _b16.type) === "enabled" || ((_c = bedrockOptions.reasoningConfig) == null ? void 0 : _c.type) === "adaptive";
|
|
26021
26028
|
const { supportsStructuredOutput: modelSupportsStructuredOutput } = (0, import_internal2.getModelCapabilities)(this.modelId);
|
|
26022
26029
|
const useNativeStructuredOutput = isAnthropicModel && supportsNativeStructuredOutput(this.modelId) && (modelSupportsStructuredOutput || isThinkingEnabled) && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null;
|
|
26023
|
-
const useJsonInstructionForStructuredOutput = isAnthropicModel && (this.modelId
|
|
26030
|
+
const useJsonInstructionForStructuredOutput = isAnthropicModel && !supportsStrictTools(this.modelId) && (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && tools2 != null && tools2.length > 0;
|
|
26024
26031
|
const jsonResponseTool = (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null && !useNativeStructuredOutput && !useJsonInstructionForStructuredOutput ? {
|
|
26025
26032
|
type: "function",
|
|
26026
26033
|
name: "json",
|
|
@@ -27208,7 +27215,7 @@ var init_dist3 = __esm({
|
|
|
27208
27215
|
details: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
27209
27216
|
preview: external_exports.unknown().optional()
|
|
27210
27217
|
});
|
|
27211
|
-
VERSION2 = true ? "4.0.
|
|
27218
|
+
VERSION2 = true ? "4.0.145" : "0.0.0-test";
|
|
27212
27219
|
bedrockRerankingResponseSchema = lazySchema(
|
|
27213
27220
|
() => zodSchema(
|
|
27214
27221
|
external_exports.object({
|