agent-swarm-kit 1.1.31 → 1.1.32
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/build/index.cjs +1 -1
- package/build/index.mjs +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -2
package/build/index.cjs
CHANGED
|
@@ -20059,7 +20059,7 @@ const startPipeline = beginContext(async (clientId, pipelineName, payload = {})
|
|
|
20059
20059
|
if (callbacks?.onStart) {
|
|
20060
20060
|
callbacks.onStart(clientId, pipelineName, payload);
|
|
20061
20061
|
}
|
|
20062
|
-
result = await execute(clientId,
|
|
20062
|
+
result = await execute(clientId, agentName, payload);
|
|
20063
20063
|
}
|
|
20064
20064
|
catch (error) {
|
|
20065
20065
|
if (callbacks?.onError) {
|
package/build/index.mjs
CHANGED
|
@@ -20057,7 +20057,7 @@ const startPipeline = beginContext(async (clientId, pipelineName, payload = {})
|
|
|
20057
20057
|
if (callbacks?.onStart) {
|
|
20058
20058
|
callbacks.onStart(clientId, pipelineName, payload);
|
|
20059
20059
|
}
|
|
20060
|
-
result = await execute(clientId,
|
|
20060
|
+
result = await execute(clientId, agentName, payload);
|
|
20061
20061
|
}
|
|
20062
20062
|
catch (error) {
|
|
20063
20063
|
if (callbacks?.onError) {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -9941,7 +9941,7 @@ interface IPipelineSchema<Payload extends object = any> {
|
|
|
9941
9941
|
* @param {AgentName} agentName - The name of the agent executing the pipeline.
|
|
9942
9942
|
* @returns {Promise<T>} The result of the pipeline execution.
|
|
9943
9943
|
*/
|
|
9944
|
-
execute: <T =
|
|
9944
|
+
execute: <T = any>(clientId: string, agentName: AgentName, payload: Payload) => Promise<T | void>;
|
|
9945
9945
|
/**
|
|
9946
9946
|
* @property {Partial<IPipelineCallbacks<Payload>>} [callbacks]
|
|
9947
9947
|
* @description Optional callbacks for pipeline lifecycle events.
|
|
@@ -11746,7 +11746,7 @@ interface ISessionConfig {
|
|
|
11746
11746
|
onDispose?: () => void;
|
|
11747
11747
|
}
|
|
11748
11748
|
|
|
11749
|
-
declare const startPipeline: <Payload extends object = any, T =
|
|
11749
|
+
declare const startPipeline: <Payload extends object = any, T = any>(clientId: string, pipelineName: PipelineName, payload?: Payload) => Promise<T>;
|
|
11750
11750
|
|
|
11751
11751
|
/**
|
|
11752
11752
|
* Disposes of a client session and all related resources within a swarm.
|