@agentforge/patterns 0.10.4 → 0.10.5
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/index.cjs +13 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +13 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3113,6 +3113,19 @@ function registerWorkers(system, workers) {
|
|
|
3113
3113
|
return system._originalInvoke(mergedInput, config);
|
|
3114
3114
|
};
|
|
3115
3115
|
}
|
|
3116
|
+
if (!system._originalStream) {
|
|
3117
|
+
system._originalStream = system.stream.bind(system);
|
|
3118
|
+
system.stream = async function(input, config) {
|
|
3119
|
+
const mergedInput = {
|
|
3120
|
+
...input,
|
|
3121
|
+
workers: {
|
|
3122
|
+
...system._workerRegistry || {},
|
|
3123
|
+
...input.workers || {}
|
|
3124
|
+
}
|
|
3125
|
+
};
|
|
3126
|
+
return system._originalStream(mergedInput, config);
|
|
3127
|
+
};
|
|
3128
|
+
}
|
|
3116
3129
|
}
|
|
3117
3130
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3118
3131
|
0 && (module.exports = {
|
package/dist/index.d.cts
CHANGED
|
@@ -2968,6 +2968,7 @@ declare class MultiAgentSystemBuilder {
|
|
|
2968
2968
|
interface MultiAgentSystemWithRegistry extends CompiledStateGraph<MultiAgentStateType, Partial<MultiAgentStateType>, '__start__' | 'supervisor' | 'aggregator' | string> {
|
|
2969
2969
|
_workerRegistry?: Record<string, WorkerCapabilities>;
|
|
2970
2970
|
_originalInvoke?: typeof CompiledStateGraph.prototype.invoke;
|
|
2971
|
+
_originalStream?: typeof CompiledStateGraph.prototype.stream;
|
|
2971
2972
|
}
|
|
2972
2973
|
/**
|
|
2973
2974
|
* Register workers with a compiled multi-agent system
|
package/dist/index.d.ts
CHANGED
|
@@ -2968,6 +2968,7 @@ declare class MultiAgentSystemBuilder {
|
|
|
2968
2968
|
interface MultiAgentSystemWithRegistry extends CompiledStateGraph<MultiAgentStateType, Partial<MultiAgentStateType>, '__start__' | 'supervisor' | 'aggregator' | string> {
|
|
2969
2969
|
_workerRegistry?: Record<string, WorkerCapabilities>;
|
|
2970
2970
|
_originalInvoke?: typeof CompiledStateGraph.prototype.invoke;
|
|
2971
|
+
_originalStream?: typeof CompiledStateGraph.prototype.stream;
|
|
2971
2972
|
}
|
|
2972
2973
|
/**
|
|
2973
2974
|
* Register workers with a compiled multi-agent system
|
package/dist/index.js
CHANGED
|
@@ -3010,6 +3010,19 @@ function registerWorkers(system, workers) {
|
|
|
3010
3010
|
return system._originalInvoke(mergedInput, config);
|
|
3011
3011
|
};
|
|
3012
3012
|
}
|
|
3013
|
+
if (!system._originalStream) {
|
|
3014
|
+
system._originalStream = system.stream.bind(system);
|
|
3015
|
+
system.stream = async function(input, config) {
|
|
3016
|
+
const mergedInput = {
|
|
3017
|
+
...input,
|
|
3018
|
+
workers: {
|
|
3019
|
+
...system._workerRegistry || {},
|
|
3020
|
+
...input.workers || {}
|
|
3021
|
+
}
|
|
3022
|
+
};
|
|
3023
|
+
return system._originalStream(mergedInput, config);
|
|
3024
|
+
};
|
|
3025
|
+
}
|
|
3013
3026
|
}
|
|
3014
3027
|
export {
|
|
3015
3028
|
AgentMessageSchema,
|