Skip to main content

Interface: LLMChat<AdditionalChatOptions, AdditionalMessageOptions>

Internal

Extended by

Type Parameters

AdditionalChatOptions extends object = object

AdditionalMessageOptions extends object = object

Methods

chat()

chat(params): Promise<ChatResponse<AdditionalMessageOptions> | AsyncIterable<ChatResponseChunk<AdditionalMessageOptions>, any, any>>

Parameters

params: LLMChatParamsStreaming<AdditionalChatOptions, object> | LLMChatParamsNonStreaming<AdditionalChatOptions, object>

Returns

Promise<ChatResponse<AdditionalMessageOptions> | AsyncIterable<ChatResponseChunk<AdditionalMessageOptions>, any, any>>

Defined in

packages/core/llms/dist/llms/index.d.ts:14