Interfaces

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?

readonly optional check?: GraphCheckMode

Defined in: src/lib/injection-engine/skillGraph.ts:95


skills

readonly skills: readonly Injection[]

Defined in: src/lib/injection-engine/skillGraph.ts:65

Every skill in the graph (wired or not).


start?

readonly optional start?: string | { use: string; } | { rules: readonly object[]; } | { byRelevance?: Embedder; entries: readonly string[]; 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?

readonly optional byRelevance?: Embedder

Sugar: rank the entries with an embedder (cosine/softmax). Omit both → the LLM reads the menu and picks (.entryByRead()) — no model call.

entries

readonly entries: readonly string[]

scoredBy?

readonly optional scoredBy?: EntryScorer

Rank the entries with a scorer strategy (keywordScorer(), embeddingScorer(e), or your own). Takes precedence over byRelevance.


steps?

readonly optional steps?: readonly object[]

Defined in: src/lib/injection-engine/skillGraph.ts:86

Tool-result transitions; from/to are skill ids resolved against skills.


tree?

readonly optional tree?: Injection | DecisionNode

Defined in: src/lib/injection-engine/skillGraph.ts:94

A decision tree (instead of start + steps).

On this page