# loadResource

abstract suspend fun loadResource(skillName: String, resourcePath: String): Result<ByteArray>

Loads a specific resource file for a given skill.

#### Return

A Result wrapping the resource content as a ByteArray, or a SkillSourceException failure whose message identifies the specific cause (e.g. the skill does not exist, the path is malformed or invalid, or the resource does not exist within the skill).

#### Parameters

skillName

The name of the skill.

resourcePath

Relative path to the resource from the skill root.