Skip to main content

SkillBodyLoader

@retinue/monorepo


@retinue/monorepo / backend/src / SkillBodyLoader

Interface: SkillBodyLoader

Defined in: backend/src/tools/registry.ts:196

Loads a skill body by name — the execution half of load_skill.

Kept structural (no skills import) so tools does not depend on skills. Returns null for a name the tenant does not have, so an unknown skill is a message rather than a throw.

Methods​

load()​

load(context, name): Promise<{ instructions: string; name: string; version: number; } | null>

Defined in: backend/src/tools/registry.ts:197

Parameters​

context​

ExecutionContext

name​

string

Returns​

Promise<{ instructions: string; name: string; version: number; } | null>