Skip to content
1 min read · 134 words

Interface: SkillArtifactRegistry

Defined in: src/batteries/skills/artifacts.ts:9

Resolved artifact kinds plus the consumer-owned skill/tool binding table.

Properties

PropertyModifierTypeDescriptionDefined in
bindingsreadonlyReadonly<Record<string, Readonly<Record<string, string>>>>Explicit skill-to-tool-to-kind mappings; these override descriptor advice.src/batteries/skills/artifacts.ts:13
kindsreadonlyReadonlyMap<string, SpooledArtifactConstructor>Constructors keyed by the kind name accepted in bindings and descriptors.src/batteries/skills/artifacts.ts:11

Methods

resolve()

ts
resolve(
   skillId: string,
   toolName: string,
   descriptor?: Pick<SkillDescriptor, "artifactKind">): SpooledArtifactConstructor;

Defined in: src/batteries/skills/artifacts.ts:15

Selects the binding, then descriptor advice, then the raw built-in kind.

Parameters

ParameterType
skillIdstring
toolNamestring
descriptor?Pick<SkillDescriptor, "artifactKind">

Returns

SpooledArtifactConstructor