@kuralle-agents/core 0.4.0 → 0.4.1
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/dist/flow/collectDigression.js +0 -5
- package/guides/AGENTS.md +2 -2
- package/guides/FLOWS.md +1 -1
- package/guides/GETTING_STARTED.md +1 -1
- package/guides/TOOLS.md +1 -1
- package/package.json +2 -2
|
@@ -76,11 +76,6 @@ export async function runCollectDigression(options) {
|
|
|
76
76
|
};
|
|
77
77
|
const turn = await driver.runAgentTurn(resolveReplyNode(replyNode, run.state, { freeConversation: true }), ctx);
|
|
78
78
|
if (turn.text.trim()) {
|
|
79
|
-
const id = crypto.randomUUID();
|
|
80
|
-
ctx.emit({ type: 'text-start', id });
|
|
81
|
-
ctx.emit({ type: 'text-delta', id, delta: turn.text });
|
|
82
|
-
ctx.emit({ type: 'text-end', id });
|
|
83
|
-
ctx.emit({ type: 'turn-end' });
|
|
84
79
|
appendAssistantMessage(run, turn.text);
|
|
85
80
|
}
|
|
86
81
|
if (turn.control?.type === 'handoff') {
|
package/guides/AGENTS.md
CHANGED
|
@@ -43,7 +43,7 @@ const runtime = createRuntime({
|
|
|
43
43
|
|
|
44
44
|
const handle = runtime.run({ input: 'Hello', sessionId: 'demo' });
|
|
45
45
|
for await (const part of handle.events) {
|
|
46
|
-
if (part.type === 'text-delta') process.stdout.write(part.
|
|
46
|
+
if (part.type === 'text-delta') process.stdout.write(part.delta);
|
|
47
47
|
}
|
|
48
48
|
await handle;
|
|
49
49
|
```
|
|
@@ -225,7 +225,7 @@ const handle = runtime.run({
|
|
|
225
225
|
sessionId: 'demo',
|
|
226
226
|
});
|
|
227
227
|
for await (const part of handle.events) {
|
|
228
|
-
if (part.type === 'text-delta') process.stdout.write(part.
|
|
228
|
+
if (part.type === 'text-delta') process.stdout.write(part.delta);
|
|
229
229
|
}
|
|
230
230
|
await handle;
|
|
231
231
|
```
|
package/guides/FLOWS.md
CHANGED
|
@@ -60,7 +60,7 @@ const agent = defineAgent({
|
|
|
60
60
|
const runtime = createRuntime({ agents: [agent], defaultAgentId: 'booking' });
|
|
61
61
|
const handle = runtime.run({ input: 'Hi', sessionId: 'demo' });
|
|
62
62
|
for await (const part of handle.events) {
|
|
63
|
-
if (part.type === 'text-delta') process.stdout.write(part.
|
|
63
|
+
if (part.type === 'text-delta') process.stdout.write(part.delta);
|
|
64
64
|
}
|
|
65
65
|
await handle;
|
|
66
66
|
```
|
|
@@ -52,7 +52,7 @@ const runtime = createRuntime({
|
|
|
52
52
|
|
|
53
53
|
const handle = runtime.run({ input: 'Hello there', sessionId: 'demo' });
|
|
54
54
|
for await (const part of handle.events) {
|
|
55
|
-
if (part.type === 'text-delta') process.stdout.write(part.
|
|
55
|
+
if (part.type === 'text-delta') process.stdout.write(part.delta);
|
|
56
56
|
}
|
|
57
57
|
await handle;
|
|
58
58
|
```
|
package/guides/TOOLS.md
CHANGED
|
@@ -85,7 +85,7 @@ const handle = runtime.run({
|
|
|
85
85
|
sessionId: 'demo',
|
|
86
86
|
});
|
|
87
87
|
for await (const part of handle.events) {
|
|
88
|
-
if (part.type === 'text-delta') process.stdout.write(part.
|
|
88
|
+
if (part.type === 'text-delta') process.stdout.write(part.delta);
|
|
89
89
|
}
|
|
90
90
|
await handle;
|
|
91
91
|
```
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"url": "git+https://github.com/kuralle/kuralle-agents.git",
|
|
7
7
|
"directory": "packages/kuralle-core"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.4.
|
|
9
|
+
"version": "0.4.1",
|
|
10
10
|
"description": "A framework for structured conversational AI agents",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"dotenv": "^16.4.0",
|
|
98
98
|
"typescript": "^5.3.0",
|
|
99
99
|
"zod": "^3.23.0",
|
|
100
|
-
"@kuralle-agents/realtime-audio": "0.4.
|
|
100
|
+
"@kuralle-agents/realtime-audio": "0.4.1"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
103
|
"chrono-node": "^2.6.0",
|