Skip to main content

Module validation

Module validation 

Source
Expand description

ultron/refinement-validation.ts: the content checks the worker’s refinement service runs when a refinement is activated (A32). A skill must be a loadable SKILL.md: YAML frontmatter with a kebab-case name and a description, then a nonempty body. An instruction is bounded plain text. Capability requests are refused separately by the refinement service itself.

Functions§

validate_refinement_content
validateRefinementContent(kind, content): Ok(true) for a valid skill or instruction, Ok(true) for the kinds it does not check (TS undefined), an error naming the problem otherwise.
worker_validator