agent-swarm-kit 1.0.161 → 1.0.162

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 (2) hide show
  1. package/README.md +3 -9
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -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: async ({ messages, tools }) => {
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({
@@ -268,7 +262,7 @@ const TEST_SWARM = addSwarm({
268
262
  defaultAgent: TEST_AGENT,
269
263
  });
270
264
 
271
- // Search with a client session
265
+ // Talk with a client
272
266
  const { complete } = session("client-123", TEST_SWARM);
273
267
  complete("I need a refund!").then(console.log);
274
268
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-swarm-kit",
3
- "version": "1.0.161",
3
+ "version": "1.0.162",
4
4
  "description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
5
5
  "author": {
6
6
  "name": "Petr Tripolsky",