Class: LlamaChat
Defined in: evaluator/LlamaChat/LlamaChat.ts:515
Constructors
Constructor
ts
new LlamaChat(__namedParameters: LlamaChatOptions): LlamaChat;Defined in: evaluator/LlamaChat/LlamaChat.ts:523
Parameters
| Parameter | Type |
|---|---|
__namedParameters | LlamaChatOptions |
Returns
LlamaChat
Properties
onDispose
ts
readonly onDispose: EventRelay<void>;Defined in: evaluator/LlamaChat/LlamaChat.ts:521
Accessors
disposed
Get Signature
ts
get disposed(): boolean;Defined in: evaluator/LlamaChat/LlamaChat.ts:566
Returns
boolean
chatWrapper
Get Signature
ts
get chatWrapper(): ChatWrapper;Defined in: evaluator/LlamaChat/LlamaChat.ts:570
Returns
sequence
Get Signature
ts
get sequence(): LlamaContextSequence;Defined in: evaluator/LlamaChat/LlamaChat.ts:577
Returns
context
Get Signature
ts
get context(): LlamaContext;Defined in: evaluator/LlamaChat/LlamaChat.ts:584
Returns
model
Get Signature
ts
get model(): LlamaModel;Defined in: evaluator/LlamaChat/LlamaChat.ts:588
Returns
Methods
dispose()
ts
dispose(__namedParameters?: {
disposeSequence?: boolean;
}): void;Defined in: evaluator/LlamaChat/LlamaChat.ts:549
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:592
Type Parameters
| Type Parameter | Default type |
|---|---|
Functions extends | ChatModelFunctions | undefined | 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:799
Type Parameters
| Type Parameter | Default type |
|---|---|
Functions extends | ChatModelFunctions | undefined | undefined |
Parameters
| Parameter | Type |
|---|---|
history | ChatHistoryItem[] |
options | LLamaChatLoadAndCompleteUserMessageOptions<Functions> |