agent-swarm-kit 1.0.161 → 1.0.163
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 +7 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Unleash the power of collaborative AI with `agent-swarm-kit`! This library empowers you to create intelligent, modular agent networks that work together seamlessly—perfect for automating workflows, solving complex problems, or designing next-gen AI systems. With a simple API, robust validation, and flexible architecture, it’s your toolkit for building smarter solutions, faster.
|
|
6
6
|
|
|
7
|
-
📚 **[Full Documentation](https://github.
|
|
7
|
+
📚 **[Full Documentation](https://agent-swarm.github.io/documents/agent-swarm-kit.html)** | 🌟 **[Try It Now](#quick-example)**
|
|
8
8
|
|
|
9
9
|

|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ Unleash the power of collaborative AI with `agent-swarm-kit`! This library empow
|
|
|
14
14
|
|
|
15
15
|
- **Multi-Agent Collaboration**: Orchestrate multiple AI agents, each with unique roles—like triage, sales, or refunds—working as a team.
|
|
16
16
|
- **Lightweight & Flexible**: Unlike bulky frameworks, our API is simple and delegates prompt engineering to your team.
|
|
17
|
-
- **Framework-Agnostic**: Works with any AI
|
|
17
|
+
- **Framework-Agnostic**: Works with any AI provider—OpenAI, Ollama, LMStudio, Claude, Grok, YandexGPT, Gemini, you name it!
|
|
18
18
|
- **Robust Validation**: Built-in checks ensure tools, agents, and outputs are always on point.
|
|
19
19
|
- **Real-Time Interaction**: Supports message scheduling and WebSocket channels for dynamic user input.
|
|
20
20
|
|
|
@@ -43,6 +43,7 @@ import {
|
|
|
43
43
|
changeAgent,
|
|
44
44
|
execute,
|
|
45
45
|
session,
|
|
46
|
+
Adapter
|
|
46
47
|
} from "agent-swarm-kit";
|
|
47
48
|
|
|
48
49
|
const NAVIGATE_TOOL = addTool({
|
|
@@ -79,14 +80,7 @@ const MOCK_COMPLETION = addCompletion({
|
|
|
79
80
|
*
|
|
80
81
|
* @see https://github.com/tripolskypetr/agent-swarm-kit/tree/master/test
|
|
81
82
|
*/
|
|
82
|
-
getCompletion:
|
|
83
|
-
return await ollama.chat({
|
|
84
|
-
model: CC_OLLAMA_CHAT_MODEL,
|
|
85
|
-
keep_alive: "1h",
|
|
86
|
-
messages,
|
|
87
|
-
tools,
|
|
88
|
-
})
|
|
89
|
-
},
|
|
83
|
+
getCompletion: Adapter.fromOllama(ollama, "tripolskypetr/gemma3-tools:4b"), // "nemotron-mini:4b"
|
|
90
84
|
});
|
|
91
85
|
|
|
92
86
|
const TRIAGE_AGENT = addAgent({
|
|
@@ -176,6 +170,8 @@ addSwarm({
|
|
|
176
170
|
});
|
|
177
171
|
|
|
178
172
|
const { complete, dispose } = session(clientId, SwarmName.TestSwarm)
|
|
173
|
+
|
|
174
|
+
complete("I need a refund!").then(console.log);
|
|
179
175
|
```
|
|
180
176
|
|
|
181
177
|
---
|
|
@@ -268,7 +264,7 @@ const TEST_SWARM = addSwarm({
|
|
|
268
264
|
defaultAgent: TEST_AGENT,
|
|
269
265
|
});
|
|
270
266
|
|
|
271
|
-
//
|
|
267
|
+
// Talk with a client
|
|
272
268
|
const { complete } = session("client-123", TEST_SWARM);
|
|
273
269
|
complete("I need a refund!").then(console.log);
|
|
274
270
|
|