agent-swarm-kit 1.3.2 → 1.5.0

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.
Files changed (3) hide show
  1. package/README.md +60 -10
  2. package/package.json +2 -2
  3. package/types.d.ts +1 -1
package/README.md CHANGED
@@ -528,29 +528,54 @@ See the **[Test Cases](https://github.com/tripolskypetr/agent-swarm-kit/blob/mas
528
528
 
529
529
  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:
530
530
 
531
- ### Agent Tune Dataset Constructor
532
531
 
533
- > **[Explore Agent Tune](https://agent-tune.github.io)** 🌟
532
+ ### AI Fundamental Analysis Backtester
534
533
 
535
- 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. 🛠️
534
+ > **[Explore node-ccxt-backtest](https://github.com/tripolskypetr/node-ccxt-backtest)** 🧿
536
535
 
536
+ The **node-ccxt-backtest** is an AI-driven trading strategy framework built on the ReAct (Reason + Act) pattern. Instead of hardcoded indicators, it replaces rule-based logic with reasoning: 8 specialist LLM agents independently research the market via iterative web search, covering on-chain reserves, capital flows, network fundamentals, smart money activity, macro environment, and price history — then a portfolio manager synthesises all findings into a single BUY/SELL/WAIT signal.
537
537
 
538
538
  #### Key Features
539
- - 📝 **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. 💻
539
+ - 🕵️ **8 Specialist Agents**: Each covers a distinct analytical angle (balance sheet, cash flow, valuation, income, insider transactions, news, macro, technical) with no context overlap between them.
540
540
 
541
- - 💬 **Chat History**: Include conversational context with tool calls, supporting up to five messages per entry. 🗂️
541
+ - 🔒 **Anti-Bias Prompting**: Agents are instructed to reject undated sources, avoid look-ahead bias, bias toward negative signals, and require multiple queries before concluding.
542
542
 
543
- - 💾 **Data Management**: Import/export datasets as JSONL files (`SFT` and `DPO` both), with automatic `tool_call_id` generation, and persist changes to local storage. 📥
543
+ - 🔬 **Two-Stage Pipeline**: Stage 1 produces a daily fundamental signal (cached to disk); Stage 2 applies an hourly technical entry filter using the last 240 one-minute candles before placing any order.
544
544
 
545
- - **Validation**: Ensures tool consistency, message order, and data integrity. 🛡️
545
+ - 🏗️ **Structured Output via Tool-Call Forcing**: JSON schema compliance is enforced by wrapping the schema into a `provide_answer` tool, with automatic retry and `jsonrepair` for malformed responses.
546
546
 
547
- - 🚀 **Ease of Use**: Navigate with breadcrumbs, save drafts, and export directly for fine-tuning with commands like openai api [fine_tunes.create](https://platform.openai.com/docs/api-reference/fine-tuning). 📤
547
+ - 📋 **Multiple Run Modes**: Supports `--backtest`, `--paper`, `--live`, `--pine`, and `--dump` CLI flags via CCXT.
548
548
 
549
549
  #### Use Case
550
- 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. 🌐
550
+ Ideal for researchers and quant developers who want to evaluate LLM-based fundamental analysis as a trading signal source. Use it standalone or combine with `agent-swarm-kit` to embed the research pipeline into a broader multi-agent system.
551
551
 
552
552
  #### Get Started
553
- 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. 🚀
553
+ Clone the repository and set the `OLLAMA_TOKEN` environment variable. Optionally configure Telegram notifications and run with the desired CLI mode.
554
+
555
+
556
+ ### Multi-User Telegram Agent Swarm
557
+
558
+ > **[Explore node-ollama-telegram-agent-swarm](https://github.com/tripolskypetr/node-ollama-telegram-agent-swarm)** 🐝
559
+
560
+ The **node-ollama-telegram-agent-swarm** is a production-ready reference implementation of a multi-user Telegram chatbot powered by Ollama and `agent-swarm-kit`. It demonstrates how to handle concurrent chat sessions with isolated per-user history, agent navigation, and tool call integration — with a detailed walkthrough of the library's core API.
561
+
562
+ #### Key Features
563
+ - 💬 **Multi-User Sessions**: Each Telegram user gets an independent swarm session with its own conversation history and active agent state.
564
+
565
+ - 🔄 **Agent Navigation**: A triage agent routes users to a pharma sales agent via tool calls, with automatic greeting injection on agent switch.
566
+
567
+ - 🛠️ **Runtime System Prompt Injection**: Uses `commitSystemMessage` to dynamically supplement agent context mid-conversation (e.g., suppressing recursive tool calls after a successful search).
568
+
569
+ - 📖 **Comprehensive API Walkthrough**: Covers `addAgent`, `addCompletion`, `addTool`, `changeAgent`, `execute`, `commitToolOutput`, `commitSystemMessage`, `commitFlush`, `getLastUserMessage`, and more.
570
+
571
+ - 🔌 **Provider-Agnostic**: Completion interface works identically with Ollama, OpenAI, DeepSeek, or any other provider without changing business logic.
572
+
573
+ #### Use Case
574
+ A practical starting point for anyone building a Telegram bot with `agent-swarm-kit`. The codebase is intentionally readable and serves as living documentation for the library's orchestration model.
575
+
576
+ #### Get Started
577
+ Clone the repository, configure Ollama, and connect a Telegram bot token. The swarm handles session lifecycle, message routing, and agent recovery automatically.
578
+
554
579
 
555
580
  ### Trading Signals MCP Server
556
581
 
@@ -577,6 +602,31 @@ Ideal for integrating trading intelligence into AI agents within `agent-swarm-ki
577
602
  #### Get Started
578
603
  Install via NPX with no setup required, or clone the repository for local deployment. Perfect for combining with `agent-swarm-kit` to create sophisticated trading analysis agents.
579
604
 
605
+
606
+ ### Agent Tune Dataset Constructor
607
+
608
+ > **[Explore Agent Tune](https://agent-tune.github.io)** 🌟
609
+
610
+ 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. 🛠️
611
+
612
+
613
+ #### Key Features
614
+ - 📝 **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. 💻
615
+
616
+ - 💬 **Chat History**: Include conversational context with tool calls, supporting up to five messages per entry. 🗂️
617
+
618
+ - 💾 **Data Management**: Import/export datasets as JSONL files (`SFT` and `DPO` both), with automatic `tool_call_id` generation, and persist changes to local storage. 📥
619
+
620
+ - ✅ **Validation**: Ensures tool consistency, message order, and data integrity. 🛡️
621
+
622
+ - 🚀 **Ease of Use**: Navigate with breadcrumbs, save drafts, and export directly for fine-tuning with commands like openai api [fine_tunes.create](https://platform.openai.com/docs/api-reference/fine-tuning). 📤
623
+
624
+ #### Use Case
625
+ 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. 🌐
626
+
627
+ #### Get Started
628
+ 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. 🚀
629
+
580
630
  ---
581
631
 
582
632
  ## 🤝 Contribute
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.3.2",
3
+ "version": "1.5.0",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",
@@ -81,7 +81,7 @@
81
81
  "dependencies": {
82
82
  "di-kit": "^1.1.1",
83
83
  "di-scoped": "^1.0.21",
84
- "functools-kit": "^1.0.95",
84
+ "functools-kit": "^1.1.0",
85
85
  "get-moment-stamp": "^1.1.1",
86
86
  "lodash-es": "4.17.21",
87
87
  "xml2js": "0.6.2"
package/types.d.ts CHANGED
@@ -4113,7 +4113,7 @@ interface IOutlineSchema<Data extends IOutlineData = IOutlineData, Params extend
4113
4113
  * Optional set of callbacks for outline lifecycle events.
4114
4114
  * Allows customization of attempt, document, and validation handling.
4115
4115
  */
4116
- callbacks?: IOutlineCallbacks;
4116
+ callbacks?: IOutlineCallbacks<Data, Params>;
4117
4117
  }
4118
4118
  /**
4119
4119
  * Type representing the unique name of an outline within the system.