Class: LlamaChat
Defined in: evaluator/LlamaChat/LlamaChat.ts:468
Constructors
Constructor
ts
new LlamaChat(__namedParameters: LlamaChatOptions): LlamaChat;Defined in: evaluator/LlamaChat/LlamaChat.ts:476
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LlamaChatOptions |
Returns
LlamaChat
Properties
onDispose
ts
readonly onDispose: EventRelay<void>;Defined in: evaluator/LlamaChat/LlamaChat.ts:474
Accessors
disposed
Get Signature
ts
get disposed(): boolean;Defined in: evaluator/LlamaChat/LlamaChat.ts:519
Returns
boolean
chatWrapper
Get Signature
ts
get chatWrapper(): ChatWrapper;Defined in: evaluator/LlamaChat/LlamaChat.ts:523
Returns
sequence
Get Signature
ts
get sequence(): LlamaContextSequence;Defined in: evaluator/LlamaChat/LlamaChat.ts:530
Returns
context
Get Signature
ts
get context(): LlamaContext;Defined in: evaluator/LlamaChat/LlamaChat.ts:537
Returns
model
Get Signature
ts
get model(): LlamaModel;Defined in: evaluator/LlamaChat/LlamaChat.ts:541
Returns
Methods
dispose()
ts
dispose(__namedParameters: {
disposeSequence?: boolean;
}): void;Defined in: evaluator/LlamaChat/LlamaChat.ts:502
Parameters
| Parameter | Type |
|---|---|
__namedParameters | { disposeSequence?: boolean; } |
__namedParameters.disposeSequence? | boolean |
Returns
void
generateResponse()
ts
generateResponse<Functions>(history: ChatHistoryItem[], options: LLamaChatGenerateResponseOptions<Functions>): Promise<LlamaChatResponse<Functions>>;Defined in: evaluator/LlamaChat/LlamaChat.ts:545
Type Parameters
| Type Parameter | Default type |
|---|---|
Functions extends | undefined | ChatModelFunctions | undefined |
Parameters
| Parameter | Type |
|---|---|
history | ChatHistoryItem[] |
options | LLamaChatGenerateResponseOptions<Functions> |
Returns
Promise<LlamaChatResponse<Functions>>
loadChatAndCompleteUserMessage()
ts
loadChatAndCompleteUserMessage<Functions>(history: ChatHistoryItem[], options: LLamaChatLoadAndCompleteUserMessageOptions<Functions>): Promise<LlamaChatLoadAndCompleteUserResponse>;Defined in: evaluator/LlamaChat/LlamaChat.ts:748
Type Parameters
| Type Parameter | Default type |
|---|---|
Functions extends | undefined | ChatModelFunctions | undefined |
Parameters
| Parameter | Type |
|---|---|
history | ChatHistoryItem[] |
options | LLamaChatLoadAndCompleteUserMessageOptions<Functions> |