Skip to content

Commit 74dc2c2

Browse files
committed
docs-generation
1 parent aadf86c commit 74dc2c2

3 files changed

Lines changed: 22 additions & 9 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-swarm-kit",
3-
"version": "1.1.69",
3+
"version": "1.1.70",
44
"description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
55
"author": {
66
"name": "Petr Tripolsky",

src/lib/services/base/DocService.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -412,15 +412,28 @@ export class DocService {
412412
result.push("");
413413
}
414414

415-
if (agentSchema.systemStatic) {
415+
if (agentSchema.systemStatic || agentSchema.system) {
416416
result.push(`## System prompt`);
417417
result.push("");
418-
for (let i = 0; i !== agentSchema.system.length; i++) {
419-
if (!agentSchema.system[i]) {
420-
continue;
418+
let offset = 0;
419+
if (agentSchema.systemStatic) {
420+
for (let i = 0; i !== agentSchema.systemStatic.length; i++) {
421+
if (!agentSchema.systemStatic[i]) {
422+
continue;
423+
}
424+
result.push(`${i + 1}. \`${agentSchema.systemStatic[i]}\``);
425+
result.push("");
426+
offset = i;
427+
}
428+
}
429+
if (agentSchema.system) {
430+
for (let i = 0; i !== agentSchema.system.length; i++) {
431+
if (!agentSchema.system[i]) {
432+
continue;
433+
}
434+
result.push(`${i + offset + 1}. \`${agentSchema.system[i]}\``);
435+
result.push("");
421436
}
422-
result.push(`${i + 1}. \`${agentSchema.system[i]}\``);
423-
result.push("");
424437
}
425438
}
426439

0 commit comments

Comments
 (0)