PromptCompletionModel interface

An AI model that can be used to complete prompts.

Properties

events

Optional. Events emitted by the model.

Methods

completePrompt(TurnContext, Memory, PromptFunctions, Tokenizer, PromptTemplate)

Completes a prompt.

Property Details

events

Optional. Events emitted by the model.

events?: PromptCompletionModelEmitter

Property Value

Method Details

completePrompt(TurnContext, Memory, PromptFunctions, Tokenizer, PromptTemplate)

Completes a prompt.

function completePrompt(context: TurnContext, memory: Memory, functions: PromptFunctions, tokenizer: Tokenizer, template: PromptTemplate): Promise<PromptResponse<string>>

Parameters

context

TurnContext

Current turn context.

memory
Memory

An interface for accessing state values.

functions
PromptFunctions

Functions to use when rendering the prompt.

tokenizer
Tokenizer

Tokenizer to use when rendering the prompt.

template
PromptTemplate

Prompt template to complete.

Returns

Promise<PromptResponse<string>>

A PromptResponse with the status and message.