LlamaModel class

An AI model that can be used to complete prompts.

Constructors

LlamaModel(LlamaModelOptions)

Properties

options

Methods

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

Completes a prompt.

Constructor Details

LlamaModel(LlamaModelOptions)

new LlamaModel(options: LlamaModelOptions)

Parameters

Property Details

options

options: LlamaModelOptions

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.