@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
description
description:
string
Inherited from
author?
optionalauthor?:string
Inherited from
instructions
instructions:
string
Inherited from
status
status:
SkillDraftStatus
error?
optionalerror?:string
Methods
patchManifest()
patchManifest(
patch):void
Parameters
| Parameter | Type |
|---|---|
patch | Partial<Pick<SkillDraft, "name" | "description" | "author">> |
Returns
void
setInstructions()
setInstructions(
markdown):void
Parameters
| Parameter | Type |
|---|---|
markdown | string |
Returns
void
setStatus()
setStatus(
status,error?):void
Parameters
| Parameter | Type |
|---|---|
status | SkillDraftStatus |
error? | string |
Returns
void
reset()
reset():
void
Returns
void
