@botbotgo/agent-harness 0.0.113 → 0.0.114
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/contracts/workspace.d.ts +1 -0
- package/dist/package-version.d.ts +1 -1
- package/dist/package-version.js +1 -1
- package/dist/runtime/support/compiled-binding.js +2 -2
- package/dist/workspace/agent-binding-compiler.js +1 -0
- package/dist/workspace/support/agent-execution-config.js +2 -2
- package/dist/workspace/validate.js +1 -4
- package/package.json +1 -1
|
@@ -146,6 +146,7 @@ export type LangChainAgentParams = {
|
|
|
146
146
|
model: CompiledModel;
|
|
147
147
|
tools: CompiledTool[];
|
|
148
148
|
systemPrompt?: string;
|
|
149
|
+
interruptOn?: Record<string, boolean | object>;
|
|
149
150
|
stateSchema?: unknown;
|
|
150
151
|
responseFormat?: unknown;
|
|
151
152
|
contextSchema?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export declare const AGENT_HARNESS_VERSION = "0.0.113";
|
package/dist/package-version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const AGENT_HARNESS_VERSION = "0.0.
|
|
1
|
+
export const AGENT_HARNESS_VERSION = "0.0.113";
|
|
@@ -31,8 +31,8 @@ function deriveBindingExecutionView(binding) {
|
|
|
31
31
|
systemPrompt: langchainParams?.systemPrompt ?? deepAgentParams?.systemPrompt,
|
|
32
32
|
middlewareConfigs,
|
|
33
33
|
middlewareKinds,
|
|
34
|
-
interruptCompatibilityRules:
|
|
35
|
-
|
|
34
|
+
interruptCompatibilityRules: langchainParams?.interruptOn ??
|
|
35
|
+
deepAgentParams?.interruptOn,
|
|
36
36
|
storeConfig: deepAgentParams?.store ?? binding.harnessRuntime?.store,
|
|
37
37
|
langChainSubagentSupport: (langchainParams?.subagents?.length ?? 0) > 0 ||
|
|
38
38
|
langchainParams?.generalPurposeAgent === true ||
|
|
@@ -289,6 +289,7 @@ export function compileBinding(workspaceRoot, agent, agents, referencedSubagentI
|
|
|
289
289
|
model: execution.model,
|
|
290
290
|
tools: execution.tools,
|
|
291
291
|
systemPrompt: execution.systemPrompt,
|
|
292
|
+
interruptOn: resolveInterruptOn(agent),
|
|
292
293
|
stateSchema: getAgentExecutionConfigValue(agent, "stateSchema", { executionMode: "langchain-v1" }),
|
|
293
294
|
responseFormat: execution.responseFormat,
|
|
294
295
|
contextSchema: execution.contextSchema,
|
|
@@ -8,8 +8,8 @@ function deriveAgentExecutionViews(agent) {
|
|
|
8
8
|
const langchainConfig = asRecord(agent.langchainAgentConfig);
|
|
9
9
|
const deepAgentConfig = asRecord(agent.deepAgentConfig);
|
|
10
10
|
const views = {
|
|
11
|
-
"langchain-v1": [langchainConfig
|
|
12
|
-
deepagent: [deepAgentConfig
|
|
11
|
+
"langchain-v1": [langchainConfig ?? {}],
|
|
12
|
+
deepagent: [deepAgentConfig ?? {}],
|
|
13
13
|
};
|
|
14
14
|
agentExecutionViewsCache.set(agent, views);
|
|
15
15
|
return views;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isDelegationCapableAgent, isMemoryCapableAgent, } from "./support/agent-capabilities.js";
|
|
2
2
|
import { getAgentExecutionConfigValue, getAgentExecutionConfigs } from "./support/agent-execution-config.js";
|
|
3
3
|
const allowedExecutionModes = new Set(["deepagent", "langchain-v1"]);
|
|
4
4
|
function validateCheckpointerConfig(agent) {
|
|
@@ -88,8 +88,5 @@ export function validateTopology(agents) {
|
|
|
88
88
|
if (!isDelegationCapableAgent(agent)) {
|
|
89
89
|
throw new Error(`Subagent ${agent.id} must use a delegation-capable backend`);
|
|
90
90
|
}
|
|
91
|
-
if (!hasAgentSystemPrompt(agent)) {
|
|
92
|
-
throw new Error(`Subagent ${agent.id} requires systemPrompt`);
|
|
93
|
-
}
|
|
94
91
|
}
|
|
95
92
|
}
|