LlamaModel class
An AI model that can be used to complete prompts.
Constructors
Llama |
Properties
options |
Methods
complete |
Completes a prompt. |
Constructor Details
LlamaModel(LlamaModelOptions)
Property Details
options
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.