본문으로 건너뛰기

Interface: LLMChat<AdditionalChatOptions, AdditionalMessageOptions>

Type parameters

NameType
AdditionalChatOptionsextends object = object
AdditionalMessageOptionsextends object = object

Hierarchy

  • LLMChat

    LLM

Methods

chat

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

Parameters

NameType
paramsLLMChatParamsStreaming<AdditionalChatOptions, object> | LLMChatParamsNonStreaming<AdditionalChatOptions, object>

Returns

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

Defined in

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