Skip to content

@sqlrooms/ai / SkillDraftState

Interface: SkillDraftState

The serializable half of the draft — the parts the agent's tools fill in. id and version are deliberately omitted: the host derives them at save time (id from the name via slug + collision resolution; version defaulted).

Extends

Properties

name

name: string

Inherited from

SkillDraft.name


description

description: string

Inherited from

SkillDraft.description


author?

optional author?: string

Inherited from

SkillDraft.author


instructions

instructions: string

Inherited from

SkillDraft.instructions


status

status: SkillDraftStatus


error?

optional error?: string

Methods

patchManifest()

patchManifest(patch): void

Parameters

ParameterType
patchPartial<Pick<SkillDraft, "name" | "description" | "author">>

Returns

void


setInstructions()

setInstructions(markdown): void

Parameters

ParameterType
markdownstring

Returns

void


setStatus()

setStatus(status, error?): void

Parameters

ParameterType
statusSkillDraftStatus
error?string

Returns

void


reset()

reset(): void

Returns

void