Skip to content

Class: LlamaChatSessionPromptCompletionEngine

Methods

dispose()

ts
dispose(): void

Returns

void

Defined in

evaluator/LlamaChatSession/utils/LlamaChatSessionPromptCompletionEngine.ts:76


complete()

ts
complete(prompt: string): string

Get completion for the prompt from the cache, and begin preloading this prompt into the context sequence and completing it.

On completion progress, onGeneration (configured for this engine instance) will be called.

Parameters

ParameterType
promptstring

Returns

string

Defined in

evaluator/LlamaChatSession/utils/LlamaChatSessionPromptCompletionEngine.ts:89