@botbotgo/agent-harness 0.0.420 → 0.0.421
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/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/dist/runtime/adapter/flow/invocation-flow.d.ts +10 -0
- package/dist/runtime/adapter/flow/invocation-flow.js +2 -0
- package/dist/runtime/adapter/flow/invoke-runtime.d.ts +10 -0
- package/dist/runtime/adapter/flow/invoke-runtime.js +2 -0
- package/dist/runtime/adapter/flow/stream-runtime.d.ts +20 -0
- package/dist/runtime/adapter/flow/stream-runtime.js +201 -3
- package/dist/runtime/adapter/local-tool-invocation.d.ts +11 -1
- package/dist/runtime/adapter/local-tool-invocation.js +221 -9
- package/dist/runtime/adapter/middleware-assembly.js +294 -20
- package/dist/runtime/agent-runtime-adapter.js +657 -48
- package/dist/runtime/agent-runtime-assembly.js +1 -1
- package/dist/runtime/harness/run/inspection.js +9 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
? [
|