@botbotgo/agent-harness 0.0.420 → 0.0.422

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.
@@ -19,7 +19,7 @@ const MODEL_EXPOSED_BUILTIN_MIDDLEWARE_TOOL_NAMES = new Set([
19
19
  "schedule_task",
20
20
  ]);
21
21
  export function materializeModelExposedBuiltinMiddlewareTools(input) {
22
- if (input.modelExposed === false) {
22
+ if (input.modelExposed === false || input.modelExposed === undefined) {
23
23
  return [];
24
24
  }
25
25
  const explicitToolNames = new Set(input.explicitToolNames ?? []);
@@ -114,7 +114,15 @@ export function buildRequestRuntimeSnapshot(binding, options) {
114
114
  description: tool.description,
115
115
  }));
116
116
  const builtinToolsConfig = getBindingBuiltinToolsConfig(binding);
117
- const builtinToolDescriptors = filterBuiltinMiddlewareToolDescriptors(builtinToolsConfig)
117
+ const effectiveBuiltinToolsConfig = builtinToolsConfig === undefined
118
+ ? isDeepAgentBinding(binding)
119
+ ? { modelExposed: false }
120
+ : undefined
121
+ : {
122
+ ...builtinToolsConfig,
123
+ modelExposed: builtinToolsConfig.modelExposed ?? false,
124
+ };
125
+ const builtinToolDescriptors = filterBuiltinMiddlewareToolDescriptors(effectiveBuiltinToolsConfig)
118
126
  .filter((descriptor) => !declaredTools.some((tool) => tool.name === descriptor.name));
119
127
  const tools = isDeepAgentBinding(binding)
120
128
  ? [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.420",
3
+ "version": "0.0.422",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "license": "MIT",
6
6
  "type": "module",