Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/provider-llamacpp-node / / LlamaCppNodeRuntimeOverrides
Interface: LlamaCppNodeRuntimeOverrides
Defined in: src/runtime.ts:81
Stable
Test-only shape for injecting fixture-driven runtime behaviour.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
createSession? | readonly | (model, system?) => Promise<LlamaSessionInstance> | Build a streaming chat session against an already-loaded model instance. Used by the adapter to wire model.tokenize and session.promptStreamingResponse to the per-test fixture. | src/runtime.ts:89 |
getLlama? | readonly | () => Promise<LlamaInstance> | Returns a LlamaInstance (the result of getLlama()). | src/runtime.ts:83 |
LlamaChatSession? | readonly | LlamaChatSessionCtor | Override the LlamaChatSession constructor used by the REAL default session factory. Tests stub it; production loads it from the node-llama-cpp peer. | src/runtime.ts:98 |