agent-swarm-kit 1.0.125 → 1.0.127

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 CHANGED
@@ -2576,6 +2576,7 @@ var AgentConnectionService = /** @class */ (function () {
2576
2576
  this.sessionValidationService = inject(TYPES.sessionValidationService);
2577
2577
  this.historyConnectionService = inject(TYPES.historyConnectionService);
2578
2578
  this.storageConnectionService = inject(TYPES.storageConnectionService);
2579
+ this.stateConnectionService = inject(TYPES.stateConnectionService);
2579
2580
  this.agentSchemaService = inject(TYPES.agentSchemaService);
2580
2581
  this.toolSchemaService = inject(TYPES.toolSchemaService);
2581
2582
  this.completionSchemaService = inject(TYPES.completionSchemaService);
@@ -2597,9 +2598,9 @@ var AgentConnectionService = /** @class */ (function () {
2597
2598
  .getStorage(clientId, storageName)
2598
2599
  .waitForInit();
2599
2600
  });
2600
- states === null || states === void 0 ? void 0 : states.forEach(function (storageName) {
2601
- return _this.storageConnectionService
2602
- .getStorage(clientId, storageName)
2601
+ states === null || states === void 0 ? void 0 : states.forEach(function (stateName) {
2602
+ return _this.stateConnectionService
2603
+ .getStateRef(clientId, stateName)
2603
2604
  .waitForInit();
2604
2605
  });
2605
2606
  return new ClientAgent(__assign({ clientId: clientId, agentName: agentName, validate: validate, logger: _this.loggerService, bus: _this.busService, history: _this.historyConnectionService.getHistory(clientId, agentName), prompt: prompt, system: system, transform: transform, map: map, tools: tools === null || tools === void 0 ? void 0 : tools.map(_this.toolSchemaService.get), completion: completion }, callbacks));
package/build/index.mjs CHANGED
@@ -2574,6 +2574,7 @@ var AgentConnectionService = /** @class */ (function () {
2574
2574
  this.sessionValidationService = inject(TYPES.sessionValidationService);
2575
2575
  this.historyConnectionService = inject(TYPES.historyConnectionService);
2576
2576
  this.storageConnectionService = inject(TYPES.storageConnectionService);
2577
+ this.stateConnectionService = inject(TYPES.stateConnectionService);
2577
2578
  this.agentSchemaService = inject(TYPES.agentSchemaService);
2578
2579
  this.toolSchemaService = inject(TYPES.toolSchemaService);
2579
2580
  this.completionSchemaService = inject(TYPES.completionSchemaService);
@@ -2595,9 +2596,9 @@ var AgentConnectionService = /** @class */ (function () {
2595
2596
  .getStorage(clientId, storageName)
2596
2597
  .waitForInit();
2597
2598
  });
2598
- states === null || states === void 0 ? void 0 : states.forEach(function (storageName) {
2599
- return _this.storageConnectionService
2600
- .getStorage(clientId, storageName)
2599
+ states === null || states === void 0 ? void 0 : states.forEach(function (stateName) {
2600
+ return _this.stateConnectionService
2601
+ .getStateRef(clientId, stateName)
2601
2602
  .waitForInit();
2602
2603
  });
2603
2604
  return new ClientAgent(__assign({ clientId: clientId, agentName: agentName, validate: validate, logger: _this.loggerService, bus: _this.busService, history: _this.historyConnectionService.getHistory(clientId, agentName), prompt: prompt, system: system, transform: transform, map: map, tools: tools === null || tools === void 0 ? void 0 : tools.map(_this.toolSchemaService.get), completion: completion }, callbacks));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -12,7 +12,7 @@
12
12
  "url": "http://paypal.me/tripolskypetr"
13
13
  },
14
14
  "license": "MIT",
15
- "homepage": "https://react-declarative-playground.github.io",
15
+ "homepage": "https://agent-swarm.github.io",
16
16
  "keywords": [
17
17
  "NVIDIA NIM",
18
18
  "OpenAI",
@@ -43,6 +43,7 @@
43
43
  "build:docs": "rimraf docs && mkdir docs && node ./scripts/dts-docs.cjs ./types.d.ts ./docs",
44
44
  "docs:gpt": "npm run build && node ./scripts/gpt-docs.mjs",
45
45
  "docs:uml": "npm run build && node ./scripts/uml.mjs",
46
+ "docs:www": "typedoc",
46
47
  "repl": "dotenv -e .env -- npm run build && node -e \"import('./scripts/repl.mjs')\" --interactive"
47
48
  },
48
49
  "main": "build/index.cjs",
@@ -67,7 +68,8 @@
67
68
  "rollup-plugin-dts": "6.1.1",
68
69
  "rollup-plugin-peer-deps-external": "2.2.4",
69
70
  "tslib": "2.7.0",
70
- "worker-testbed": "1.0.10"
71
+ "worker-testbed": "1.0.10",
72
+ "typedoc": "0.27.9"
71
73
  },
72
74
  "peerDependencies": {
73
75
  "typescript": "^5.0.0"
package/types.d.ts CHANGED
@@ -1875,6 +1875,7 @@ declare class AgentConnectionService implements IAgent {
1875
1875
  private readonly sessionValidationService;
1876
1876
  private readonly historyConnectionService;
1877
1877
  private readonly storageConnectionService;
1878
+ private readonly stateConnectionService;
1878
1879
  private readonly agentSchemaService;
1879
1880
  private readonly toolSchemaService;
1880
1881
  private readonly completionSchemaService;
@@ -5664,4 +5665,4 @@ declare const Schema: SchemaUtils;
5664
5665
  */
5665
5666
  declare const beginContext: <T extends (...args: any[]) => any>(run: T) => ((...args: Parameters<T>) => ReturnType<T>);
5666
5667
 
5667
- export { type EventSource, ExecutionContextService, History, HistoryAdapter, HistoryInstance, type IAgentSchema, type IAgentTool, type IBaseEvent, type IBusEvent, type IBusEventContext, type ICompletionArgs, type ICompletionSchema, type ICustomEvent, type IEmbeddingSchema, type IHistoryAdapter, type IHistoryInstance, type IHistoryInstanceCallbacks, type IIncomingMessage, type ILoggerAdapter, type ILoggerInstance, type ILoggerInstanceCallbacks, type IMakeConnectionConfig, type IMakeDisposeParams, type IModelMessage, type IOutgoingMessage, type ISessionConfig, type IStateSchema, type IStorageSchema, type ISwarmSchema, type ITool, type IToolCall, Logger, LoggerAdapter, LoggerInstance, MethodContextService, Policy, type ReceiveMessageFn, Schema, type SendMessageFn$1 as SendMessageFn, SharedState, SharedStorage, State, Storage, addAgent, addCompletion, addEmbedding, addPolicy, addState, addStorage, addSwarm, addTool, beginContext, cancelOutput, cancelOutputForce, changeToAgent, changeToDefaultAgent, changeToPrevAgent, commitAssistantMessage, commitAssistantMessageForce, commitFlush, commitFlushForce, commitStopTools, commitStopToolsForce, commitSystemMessage, commitSystemMessageForce, commitToolOutput, commitToolOutputForce, commitUserMessage, commitUserMessageForce, complete, disposeConnection, dumpAgent, dumpClientPerformance, dumpDocs, dumpPerfomance, dumpSwarm, emit, emitForce, event, execute, executeForce, getAgentHistory, getAgentName, getAssistantHistory, getLastAssistantMessage, getLastSystemMessage, getLastUserMessage, getRawHistory, getSessionContext, getSessionMode, getUserHistory, listenAgentEvent, listenAgentEventOnce, listenEvent, listenEventOnce, listenExecutionEvent, listenExecutionEventOnce, listenHistoryEvent, listenHistoryEventOnce, listenPolicyEvent, listenPolicyEventOnce, listenSessionEvent, listenSessionEventOnce, listenStateEvent, listenStateEventOnce, listenStorageEvent, listenStorageEventOnce, listenSwarmEvent, listenSwarmEventOnce, makeAutoDispose, makeConnection, runStateless, runStatelessForce, session, setConfig, swarm };
5668
+ export { type EventSource, ExecutionContextService, History, HistoryAdapter, HistoryInstance, type IAgentSchema, type IAgentTool, type IBaseEvent, type IBusEvent, type IBusEventContext, type ICompletionArgs, type ICompletionSchema, type ICustomEvent, type IEmbeddingSchema, type IHistoryAdapter, type IHistoryInstance, type IHistoryInstanceCallbacks, type IIncomingMessage, type ILoggerAdapter, type ILoggerInstance, type ILoggerInstanceCallbacks, type IMakeConnectionConfig, type IMakeDisposeParams, type IModelMessage, type IOutgoingMessage, type IPolicySchema, type ISessionConfig, type IStateSchema, type IStorageSchema, type ISwarmSchema, type ITool, type IToolCall, Logger, LoggerAdapter, LoggerInstance, MethodContextService, Policy, type ReceiveMessageFn, Schema, type SendMessageFn$1 as SendMessageFn, SharedState, SharedStorage, State, Storage, addAgent, addCompletion, addEmbedding, addPolicy, addState, addStorage, addSwarm, addTool, beginContext, cancelOutput, cancelOutputForce, changeToAgent, changeToDefaultAgent, changeToPrevAgent, commitAssistantMessage, commitAssistantMessageForce, commitFlush, commitFlushForce, commitStopTools, commitStopToolsForce, commitSystemMessage, commitSystemMessageForce, commitToolOutput, commitToolOutputForce, commitUserMessage, commitUserMessageForce, complete, disposeConnection, dumpAgent, dumpClientPerformance, dumpDocs, dumpPerfomance, dumpSwarm, emit, emitForce, event, execute, executeForce, getAgentHistory, getAgentName, getAssistantHistory, getLastAssistantMessage, getLastSystemMessage, getLastUserMessage, getRawHistory, getSessionContext, getSessionMode, getUserHistory, listenAgentEvent, listenAgentEventOnce, listenEvent, listenEventOnce, listenExecutionEvent, listenExecutionEventOnce, listenHistoryEvent, listenHistoryEventOnce, listenPolicyEvent, listenPolicyEventOnce, listenSessionEvent, listenSessionEventOnce, listenStateEvent, listenStateEventOnce, listenStorageEvent, listenStorageEventOnce, listenSwarmEvent, listenSwarmEventOnce, makeAutoDispose, makeConnection, runStateless, runStatelessForce, session, setConfig, swarm };