agent-swarm-kit 1.0.229 → 1.0.231

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/README.md CHANGED
@@ -346,6 +346,31 @@ See the **[Test Cases](https://github.com/tripolskypetr/agent-swarm-kit/blob/mas
346
346
 
347
347
  ---
348
348
 
349
+ ## 🌍 Ecosystem
350
+
351
+ The `agent-swarm-kit` ecosystem extends beyond the core library, offering complementary tools to enhance your multi-agent AI development experience. One such tool is:
352
+
353
+ ### Agent Tune Dataset Constructor
354
+
355
+ > **[Explore Agent Tune](https://agent-tune.github.io)**
356
+
357
+ The **Agent Tune Dataset Constructor** is a React-based tool designed for crafting fine-tuning datasets tailored for AI models, published on GitHub Pages at [agent-tune.github.io](https://agent-tune.github.io). It provides a dynamic, user-friendly interface with list and grid layouts, enabling you to define user inputs, preferred and non-preferred outputs, and multi-turn chat histories—complete with tool definitions and calls. Built with the `react-declarative` library and styled using Material-UI, it’s optimized for creating JSONL files compatible with OpenAI’s fine-tuning API.
358
+
359
+ #### Key Features
360
+ - **Dynamic Forms**: Build dataset entries with configurable user inputs, outputs, and tools (up to five per entry), featuring autocomplete for tool names and enum values.
361
+ - **Chat History**: Include conversational context with tool calls, supporting up to five messages per entry.
362
+ - **Data Management**: Import/export datasets as JSONL files (`SFT` and `DPO` both), with automatic `tool_call_id` generation, and persist changes to local storage.
363
+ - **Validation**: Ensures tool consistency, message order, and data integrity.
364
+ - **Ease of Use**: Navigate with breadcrumbs, save drafts, and export directly for fine-tuning with commands like `openai api fine_tunes.create`.
365
+
366
+ #### Use Case
367
+ Perfect for preparing training data to fine-tune agents within `agent-swarm-kit`, Agent Tune lets you define precise behaviors—like how a sales agent responds or a triage agent routes requests—before integrating them into your swarm. Export your dataset and fine-tune your models to enhance performance across your agent network.
368
+
369
+ #### Get Started
370
+ Visit [agent-tune.github.io](https://agent-tune.github.io) to try it out, or clone the repository to customize it further. Combine it with `agent-swarm-kit` for a seamless workflow from dataset creation to agent deployment.
371
+
372
+ ---
373
+
349
374
  ## 🤝 Contribute
350
375
 
351
376
  We’d love your input! Fork the repo, submit a PR, or open an issue on **[GitHub](https://github.com/tripolskypetr/agent-swarm-kit)**.
package/build/index.cjs CHANGED
@@ -8772,6 +8772,9 @@ const CREATE_EMBEDDING_FN = async (item, self) => {
8772
8772
  }
8773
8773
  else {
8774
8774
  for (const value of Object.values(index)) {
8775
+ if (typeof value !== "string") {
8776
+ continue;
8777
+ }
8775
8778
  const hash = createSHA256Hash(value);
8776
8779
  let embeddings = await self.params.readEmbeddingCache(self.params.embedding, hash);
8777
8780
  if (!embeddings) {
@@ -9018,6 +9021,9 @@ class ClientStorage {
9018
9021
  }
9019
9022
  maxScore = Math.max(score, maxScore);
9020
9023
  }
9024
+ if (maxScore === Number.NEGATIVE_INFINITY) {
9025
+ return;
9026
+ }
9021
9027
  indexed.push(item, maxScore);
9022
9028
  }, {
9023
9029
  delay: 10,
package/build/index.mjs CHANGED
@@ -8770,6 +8770,9 @@ const CREATE_EMBEDDING_FN = async (item, self) => {
8770
8770
  }
8771
8771
  else {
8772
8772
  for (const value of Object.values(index)) {
8773
+ if (typeof value !== "string") {
8774
+ continue;
8775
+ }
8773
8776
  const hash = createSHA256Hash(value);
8774
8777
  let embeddings = await self.params.readEmbeddingCache(self.params.embedding, hash);
8775
8778
  if (!embeddings) {
@@ -9016,6 +9019,9 @@ class ClientStorage {
9016
9019
  }
9017
9020
  maxScore = Math.max(score, maxScore);
9018
9021
  }
9022
+ if (maxScore === Number.NEGATIVE_INFINITY) {
9023
+ return;
9024
+ }
9019
9025
  indexed.push(item, maxScore);
9020
9026
  }, {
9021
9027
  delay: 10,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -72,6 +72,7 @@
72
72
  "rollup-plugin-peer-deps-external": "2.2.4",
73
73
  "tslib": "2.7.0",
74
74
  "typedoc": "0.27.9",
75
+ "undici": "6.21.2",
75
76
  "worker-testbed": "1.0.10"
76
77
  },
77
78
  "peerDependencies": {