Aller au contenu principal

Interface: LLMChat<AdditionalChatOptions, AdditionalMessageOptions>

Type parameters

NameType
AdditionalChatOptionsextends Record<string, unknown> = Record<string, unknown>
AdditionalMessageOptionsextends Record<string, unknown> = Record<string, unknown>

Hierarchy

  • LLMChat

    LLM

Methods

chat

chat(params): Promise<ChatResponse<AdditionalMessageOptions> | AsyncIterable<{ delta: string ; options?: Record<string, unknown> }>>

Parameters

NameType
paramsLLMChatParamsStreaming<AdditionalChatOptions> | LLMChatParamsNonStreaming<AdditionalChatOptions>

Returns

Promise<ChatResponse<AdditionalMessageOptions> | AsyncIterable<{ delta: string ; options?: Record<string, unknown> }>>

Defined in

packages/core/src/llm/types.ts:39