@botbotgo/agent-harness 0.0.108 → 0.0.109
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/execution-context.d.ts +7 -0
- package/dist/runtime/adapter/execution-context.js +9 -2
- package/dist/runtime/adapter/middleware-assembly.js +2 -2
- package/dist/runtime/adapter/runnable-config.d.ts +44 -0
- package/dist/runtime/adapter/runnable-config.js +51 -0
- package/dist/runtime/adapter/runtime-adapter-support.d.ts +0 -1
- package/dist/runtime/adapter/runtime-adapter-support.js +1 -4
- package/dist/runtime/agent-runtime-adapter.js +3 -5
- package/dist/runtime/harness/events/listener-runtime.d.ts +18 -0
- package/dist/runtime/harness/events/listener-runtime.js +9 -0
- package/dist/runtime/harness/events/runtime-event-operations.d.ts +17 -0
- package/dist/runtime/harness/events/runtime-event-operations.js +9 -0
- package/dist/runtime/harness/run/recovery.d.ts +1 -1
- package/dist/runtime/harness/run/resume-runtime.d.ts +55 -0
- package/dist/runtime/harness/run/resume-runtime.js +26 -0
- package/dist/runtime/harness/run/routing.d.ts +8 -0
- package/dist/runtime/harness/run/routing.js +21 -0
- package/dist/runtime/harness/run/run-operations.d.ts +47 -0
- package/dist/runtime/harness/run/run-operations.js +67 -0
- package/dist/runtime/harness/run/start-run.d.ts +82 -0
- package/dist/runtime/harness/run/start-run.js +88 -0
- package/dist/runtime/harness/run/startup-runtime.d.ts +2 -1
- package/dist/runtime/harness/run/startup-runtime.js +38 -3
- package/dist/runtime/harness/run/stream-runtime.d.ts +48 -0
- package/dist/runtime/harness/run/stream-runtime.js +14 -0
- package/dist/runtime/harness.d.ts +4 -3
- package/dist/runtime/harness.js +177 -252
- package/dist/runtime/support/runtime-adapter-options.d.ts +17 -0
- package/dist/runtime/support/runtime-adapter-options.js +29 -0
- package/package.json +1 -1
- package/dist/runtime/adapter/deepagent-runnable-config.d.ts +0 -13
- package/dist/runtime/adapter/deepagent-runnable-config.js +0 -29
- package/dist/runtime/adapter/langchain-runnable-config.d.ts +0 -11
- package/dist/runtime/adapter/langchain-runnable-config.js +0 -24
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { DeepAgentParams } from "../../contracts/types.js";
|
|
2
|
-
export declare function buildDeepAgentRunnableConfig(params: {
|
|
3
|
-
compatibleParams: DeepAgentParams;
|
|
4
|
-
resolvedModel: unknown;
|
|
5
|
-
resolvedTools: unknown[];
|
|
6
|
-
resolvedMiddleware: unknown[];
|
|
7
|
-
resolvedSubagents: unknown[];
|
|
8
|
-
resolvedCheckpointer: unknown;
|
|
9
|
-
resolvedStore: unknown;
|
|
10
|
-
resolvedBackend: unknown;
|
|
11
|
-
resolvedInterruptOn: unknown;
|
|
12
|
-
resolvedSkills: string[];
|
|
13
|
-
}): Record<string, unknown>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { buildResolvedRunnableConfig } from "./runnable-config.js";
|
|
2
|
-
export function buildDeepAgentRunnableConfig(params) {
|
|
3
|
-
const { compatibleParams, resolvedModel, resolvedTools, resolvedMiddleware, resolvedSubagents, resolvedCheckpointer, resolvedStore, resolvedBackend, resolvedInterruptOn, resolvedSkills, } = params;
|
|
4
|
-
return buildResolvedRunnableConfig({
|
|
5
|
-
passthrough: compatibleParams.passthrough ?? {},
|
|
6
|
-
staticConfig: {
|
|
7
|
-
systemPrompt: compatibleParams.systemPrompt,
|
|
8
|
-
responseFormat: compatibleParams.responseFormat,
|
|
9
|
-
contextSchema: compatibleParams.contextSchema,
|
|
10
|
-
name: compatibleParams.name,
|
|
11
|
-
memory: compatibleParams.memory,
|
|
12
|
-
skills: resolvedSkills,
|
|
13
|
-
generalPurposeAgent: compatibleParams.generalPurposeAgent,
|
|
14
|
-
taskDescription: compatibleParams.taskDescription,
|
|
15
|
-
},
|
|
16
|
-
resolved: {
|
|
17
|
-
resolvedModel: resolvedModel,
|
|
18
|
-
resolvedTools: resolvedTools,
|
|
19
|
-
resolvedMiddleware: resolvedMiddleware,
|
|
20
|
-
resolvedCheckpointer: resolvedCheckpointer,
|
|
21
|
-
resolvedStore: resolvedStore,
|
|
22
|
-
},
|
|
23
|
-
extraConfig: {
|
|
24
|
-
subagents: resolvedSubagents,
|
|
25
|
-
backend: resolvedBackend,
|
|
26
|
-
interruptOn: resolvedInterruptOn,
|
|
27
|
-
},
|
|
28
|
-
});
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { LangChainAgentParams } from "../../contracts/types.js";
|
|
2
|
-
export declare function buildLangChainRunnableConfig(params: {
|
|
3
|
-
langchainParams: LangChainAgentParams;
|
|
4
|
-
resolvedModel: unknown;
|
|
5
|
-
resolvedTools: unknown[];
|
|
6
|
-
resolvedMiddleware: unknown[];
|
|
7
|
-
resolvedCheckpointer: unknown;
|
|
8
|
-
resolvedStore: unknown;
|
|
9
|
-
passthroughOverride?: Record<string, unknown>;
|
|
10
|
-
systemPromptOverride?: string;
|
|
11
|
-
}): Record<string, unknown>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { buildResolvedRunnableConfig } from "./runnable-config.js";
|
|
2
|
-
export function buildLangChainRunnableConfig(params) {
|
|
3
|
-
const { langchainParams, resolvedModel, resolvedTools, resolvedMiddleware, resolvedCheckpointer, resolvedStore, passthroughOverride, systemPromptOverride, } = params;
|
|
4
|
-
return buildResolvedRunnableConfig({
|
|
5
|
-
passthrough: (passthroughOverride ?? langchainParams.passthrough ?? {}),
|
|
6
|
-
staticConfig: {
|
|
7
|
-
systemPrompt: systemPromptOverride ?? langchainParams.systemPrompt,
|
|
8
|
-
stateSchema: langchainParams.stateSchema,
|
|
9
|
-
responseFormat: langchainParams.responseFormat,
|
|
10
|
-
contextSchema: langchainParams.contextSchema,
|
|
11
|
-
includeAgentName: langchainParams.includeAgentName,
|
|
12
|
-
version: langchainParams.version,
|
|
13
|
-
name: langchainParams.name,
|
|
14
|
-
description: langchainParams.description,
|
|
15
|
-
},
|
|
16
|
-
resolved: {
|
|
17
|
-
resolvedModel: resolvedModel,
|
|
18
|
-
resolvedTools: resolvedTools,
|
|
19
|
-
resolvedMiddleware: resolvedMiddleware,
|
|
20
|
-
resolvedCheckpointer: resolvedCheckpointer,
|
|
21
|
-
resolvedStore: resolvedStore,
|
|
22
|
-
},
|
|
23
|
-
});
|
|
24
|
-
}
|