@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.
@@ -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.112";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.113";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.112";
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: deepAgentParams?.interruptOn ??
35
- binding.agent.langchainAgentConfig?.interruptOn,
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, deepAgentConfig].filter((config) => config !== undefined),
12
- deepagent: [deepAgentConfig, langchainConfig].filter((config) => config !== undefined),
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 { hasAgentSystemPrompt, isDelegationCapableAgent, isMemoryCapableAgent, } from "./support/agent-capabilities.js";
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.113",
3
+ "version": "0.0.114",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",