@@ -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