Interface: LLM<AdditionalChatOptions>
Unified language model interface
Type parameters
Name | Type |
---|---|
AdditionalChatOptions | extends Record <string , unknown > = Record <string , unknown > |
Hierarchy
-
LLMChat
<AdditionalChatOptions
>↳
LLM
Implemented by
Properties
metadata
• metadata: LLMMetadata
Defined in
packages/core/src/llm/types.ts:48
Methods
chat
▸ chat(params
): Promise
<AsyncIterable
<ChatResponseChunk
>>
Get a chat response from the LLM
Parameters
Name | Type |
---|---|
params | LLMChatParamsStreaming <AdditionalChatOptions > |
Returns
Promise
<AsyncIterable
<ChatResponseChunk
>>
Overrides
Defined in
packages/core/src/llm/types.ts:52
▸ chat(params
): Promise
<ChatResponse
>
Parameters
Name | Type |
---|---|
params | LLMChatParamsNonStreaming <AdditionalChatOptions > |
Returns
Promise
<ChatResponse
>
Overrides
LLMChat.chat
Defined in
packages/core/src/llm/types.ts:55
complete
▸ complete(params
): Promise
<AsyncIterable
<CompletionResponse
>>
Get a prompt completion from the LLM
Parameters
Name | Type |
---|---|
params | LLMCompletionParamsStreaming |
Returns
Promise
<AsyncIterable
<CompletionResponse
>>
Defined in
packages/core/src/llm/types.ts:62
▸ complete(params
): Promise
<CompletionResponse
>
Parameters
Name | Type |
---|---|
params | LLMCompletionParamsNonStreaming |
Returns
Promise
<CompletionResponse
>