Interface: LLMChat<AdditionalChatOptions, AdditionalMessageOptions>
Type parameters
Name | Type |
---|---|
AdditionalChatOptions | extends Record <string , unknown > = Record <string , unknown > |
AdditionalMessageOptions | extends Record <string , unknown > = Record <string , unknown > |
Hierarchy
-
LLMChat
↳
LLM
Methods
chat
▸ chat(params
): Promise
<ChatResponse
<AdditionalMessageOptions
> | AsyncIterable
<{ delta
: string
; options?
: Record
<string
, unknown
> }>>
Parameters
Name | Type |
---|---|
params | LLMChatParamsStreaming <AdditionalChatOptions > | LLMChatParamsNonStreaming <AdditionalChatOptions > |
Returns
Promise
<ChatResponse
<AdditionalMessageOptions
> | AsyncIterable
<{ delta
: string
; options?
: Record
<string
, unknown
> }>>