@botbotgo/agent-harness 0.0.116 → 0.0.117

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.
@@ -170,6 +170,7 @@ export type DeepAgentParams = {
170
170
  responseFormat?: unknown;
171
171
  contextSchema?: unknown;
172
172
  middleware?: Array<Record<string, unknown>>;
173
+ passthrough?: Record<string, unknown>;
173
174
  description: string;
174
175
  subagents: CompiledSubAgent[];
175
176
  interruptOn?: Record<string, boolean | object>;
@@ -1 +1 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.115";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.116";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.115";
1
+ export const AGENT_HARNESS_VERSION = "0.0.116";
@@ -42,16 +42,12 @@ export function buildLangChainCreateParams(input) {
42
42
  if (!langchainParams) {
43
43
  throw new Error(`Agent ${input.binding.agent.id} has no langchain params`);
44
44
  }
45
+ const { model: _compiledModel, tools: _compiledTools, middleware: _compiledMiddleware, interruptOn: _compiledInterruptOn, filesystem: _filesystem, subagents: _subagents, memory: _memory, skills: _skills, generalPurposeAgent: _generalPurposeAgent, taskDescription: _taskDescription, passthrough, systemPrompt, ...upstreamParams } = langchainParams;
45
46
  return {
46
- ...(input.passthroughOverride ?? langchainParams.passthrough ?? {}),
47
- systemPrompt: input.systemPromptOverride ?? langchainParams.systemPrompt,
48
- stateSchema: langchainParams.stateSchema,
49
- responseFormat: langchainParams.responseFormat,
50
- contextSchema: langchainParams.contextSchema,
51
- includeAgentName: langchainParams.includeAgentName,
52
- version: langchainParams.version,
53
- name: langchainParams.name,
54
- description: langchainParams.description,
47
+ ...(passthrough ?? {}),
48
+ ...(input.passthroughOverride ?? {}),
49
+ ...upstreamParams,
50
+ systemPrompt: input.systemPromptOverride ?? systemPrompt,
55
51
  model: input.resolvedModel,
56
52
  tools: input.resolvedTools,
57
53
  middleware: input.resolvedMiddleware,
@@ -64,12 +60,11 @@ export function buildDeepAgentCreateParams(input) {
64
60
  if (!deepAgentParams) {
65
61
  throw new Error(`Agent ${input.binding.agent.id} has no runnable params`);
66
62
  }
63
+ const deepAgentParamsWithCompatFields = deepAgentParams;
64
+ const { model: _compiledModel, tools: _compiledTools, middleware: _compiledMiddleware, subagents: _compiledSubagents, interruptOn: _compiledInterruptOn, skills: _compiledSkills, backend: _compiledBackend, store: _compiledStore, generalPurposeAgent: _generalPurposeAgent, taskDescription: _taskDescription, passthrough, ...upstreamParams } = deepAgentParamsWithCompatFields;
67
65
  return {
68
- systemPrompt: deepAgentParams.systemPrompt,
69
- responseFormat: deepAgentParams.responseFormat,
70
- contextSchema: deepAgentParams.contextSchema,
71
- name: deepAgentParams.name,
72
- memory: deepAgentParams.memory,
66
+ ...(passthrough ?? {}),
67
+ ...upstreamParams,
73
68
  skills: input.resolvedSkills,
74
69
  model: input.resolvedModel,
75
70
  tools: input.resolvedTools,
@@ -310,6 +310,7 @@ export function compileBinding(workspaceRoot, agent, agents, referencedSubagentI
310
310
  responseFormat: execution.responseFormat,
311
311
  contextSchema: execution.contextSchema,
312
312
  middleware: execution.middleware,
313
+ passthrough: execution.passthrough,
313
314
  description: agent.description,
314
315
  subagents: compileSubagents(agent, agents, workspaceRoot, models, tools, compiledAgentSkills, compiledAgentModel),
315
316
  interruptOn: resolveInterruptOn(agent),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",