SkillGraphConfig
Interface: SkillGraphConfig
Defined in: src/lib/injection-engine/skillGraph.ts:63
Object-literal form of a skill graph — an alternative to the fluent builder.
Listing skills INDEPENDENTLY of the wiring is the point: the check-up can then
flag a skill that was listed but never wired (the fluent builder only ever sees
skills that appear in an edge). Compiles to the SAME SkillGraph. check
defaults to 'throw' here (a new surface, fail-loud).
Properties
check?
readonlyoptionalcheck?:GraphCheckMode
Defined in: src/lib/injection-engine/skillGraph.ts:95
skills
readonlyskills: readonlyInjection[]
Defined in: src/lib/injection-engine/skillGraph.ts:65
Every skill in the graph (wired or not).
start?
readonlyoptionalstart?:string| {use:string; } | {rules: readonlyobject[]; } | {byRelevance?:Embedder;entries: readonlystring[];scoredBy?:EntryScorer; }
Defined in: src/lib/injection-engine/skillGraph.ts:67
Where a turn starts. Omit when using tree.
Union Members
string
Type Literal
{ use: string; }
Type Literal
{ rules: readonly object[]; }
Type Literal
{ byRelevance?: Embedder; entries: readonly string[]; scoredBy?: EntryScorer; }
byRelevance?
readonlyoptionalbyRelevance?:Embedder
Sugar: rank the entries with an embedder (cosine/softmax). Omit both → the
LLM reads the menu and picks (.entryByRead()) — no model call.
entries
readonlyentries: readonlystring[]
scoredBy?
readonlyoptionalscoredBy?:EntryScorer
Rank the entries with a scorer strategy (keywordScorer(),
embeddingScorer(e), or your own). Takes precedence over byRelevance.
steps?
readonlyoptionalsteps?: readonlyobject[]
Defined in: src/lib/injection-engine/skillGraph.ts:86
Tool-result transitions; from/to are skill ids resolved against skills.
tree?
readonlyoptionaltree?:Injection|DecisionNode
Defined in: src/lib/injection-engine/skillGraph.ts:94
A decision tree (instead of start + steps).
