Skip to content

Commit 4680288

Browse files
committed
patch
1 parent b4408d9 commit 4680288

3 files changed

Lines changed: 22 additions & 19 deletions

File tree

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-swarm-kit",
3-
"version": "1.1.146",
3+
"version": "1.1.147",
44
"description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
55
"author": {
66
"name": "Petr Tripolsky",
@@ -81,7 +81,7 @@
8181
"dependencies": {
8282
"di-kit": "^1.0.18",
8383
"di-scoped": "^1.0.20",
84-
"functools-kit": "^1.0.89",
84+
"functools-kit": "^1.0.90",
8585
"get-moment-stamp": "^1.1.1",
8686
"lodash-es": "4.17.21",
8787
"xml2js": "0.6.2"

src/lib/services/base/DocService.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ export class DocService {
311311
result.push("## Default agent");
312312
result.push("");
313313
result.push(
314-
` - [${sanitizeMarkdown(swarmSchema.defaultAgent)}](./agent/${
315-
swarmSchema.defaultAgent
314+
` - [${sanitizeMarkdown(swarmSchema.defaultAgent)}](./agent/${swarmSchema.defaultAgent
316315
}.md)`
317316
);
318317
const { docDescription } = this.agentSchemaService.get(
@@ -448,7 +447,7 @@ export class DocService {
448447
result.push("");
449448
}
450449

451-
450+
452451
if (outlineSchema.completion) {
453452
const { flags = [] } = this.completionSchemaService.get(
454453
outlineSchema.completion
@@ -478,7 +477,8 @@ export class DocService {
478477
return await outlineSchema.prompt(outlineSchema.outlineName);
479478
}
480479
return null;
481-
} catch {
480+
} catch (error) {
481+
console.error(`Error while resolving outline prompt outlineName=${outlineSchema.outlineName}`, error);
482482
return null;
483483
}
484484
};
@@ -500,7 +500,8 @@ export class DocService {
500500
return await outlineSchema.system(outlineSchema.outlineName);
501501
}
502502
return outlineSchema.system;
503-
} catch {
503+
} catch (error) {
504+
console.error(`Error while resolving outline system prompt outlineName=${outlineSchema.outlineName}`, error);
504505
return null;
505506
}
506507
};
@@ -735,7 +736,8 @@ export class DocService {
735736
return await agentSchema.prompt("docs", agentSchema.agentName);
736737
}
737738
return null;
738-
} catch {
739+
} catch (error) {
740+
console.error(`Error while resolving agent prompt agentName=${agentSchema.agentName}`, error);
739741
return null;
740742
}
741743
};
@@ -765,6 +767,8 @@ export class DocService {
765767
await agentSchema.systemDynamic("docs", agentSchema.agentName)
766768
);
767769
}
770+
} catch (error) {
771+
console.error(`Error while resolving agent system prompt agentName=${agentSchema.agentName}`, error);
768772
} finally {
769773
return system;
770774
}
@@ -792,8 +796,7 @@ export class DocService {
792796
continue;
793797
}
794798
result.push(
795-
`${i + 1}. [${sanitizeMarkdown(agentSchema.dependsOn[i])}](./${
796-
agentSchema.dependsOn[i]
799+
`${i + 1}. [${sanitizeMarkdown(agentSchema.dependsOn[i])}](./${agentSchema.dependsOn[i]
797800
}.md)`
798801
);
799802
const { docDescription } = this.agentSchemaService.get(
@@ -846,7 +849,8 @@ export class DocService {
846849
};
847850
})
848851
);
849-
} catch {
852+
} catch (error) {
853+
console.error(`Error while resolving agent tools agentName=${agentSchema.agentName}`, error);
850854
return null;
851855
}
852856
};
@@ -906,8 +910,7 @@ export class DocService {
906910
{
907911
result.push("");
908912
result.push(
909-
`*Required:* [${
910-
fn.parameters.required.includes(key) ? "x" : " "
913+
`*Required:* [${fn.parameters.required.includes(key) ? "x" : " "
911914
}]`
912915
);
913916
}

0 commit comments

Comments
 (0)