NewFileSystemSource

class NewFileSystemSource(skillsBaseDir: String) : SkillSource

Constructors

Link copied to clipboard
constructor(skillsBaseDir: String)

Functions

Link copied to clipboard
open suspend override fun listFrontmatters(): <Error class: unknown class><List<Frontmatter>>

Returns the frontmatter for all available skills.

Link copied to clipboard
open suspend override fun listResources(skillName: String, resourceDirectoryPath: String): <Error class: unknown class><List<String>>

Returns a list of resource paths within a specific directory for a given skill.

Link copied to clipboard
open suspend override fun loadFrontmatter(skillName: String): <Error class: unknown class><Frontmatter>

Loads the frontmatter for a single skill by name.

Link copied to clipboard
open suspend override fun loadInstructions(skillName: String): <Error class: unknown class><String>

Loads the instruction body for a single skill by name.

Link copied to clipboard
open suspend override fun loadResource(skillName: String, resourcePath: String): <Error class: unknown class><ByteArray>

Loads a specific resource file for a given skill.