Interface: LLMChat<AdditionalChatOptions, AdditionalMessageOptions>
Type parameters
Name | Type |
---|---|
AdditionalChatOptions | extends object = object |
AdditionalMessageOptions | extends object = object |
Hierarchy
-
LLMChat
↳
LLM
Methods
chat
▸ chat(params
): Promise
<ChatResponse
<AdditionalMessageOptions
> | AsyncIterable
<ChatResponseChunk
<AdditionalMessageOptions
>>>
Parameters
Name | Type |
---|---|
params | LLMChatParamsStreaming <AdditionalChatOptions , object > | LLMChatParamsNonStreaming <AdditionalChatOptions , object > |
Returns
Promise
<ChatResponse
<AdditionalMessageOptions
> | AsyncIterable
<ChatResponseChunk
<AdditionalMessageOptions
>>>