LLM
Defined in: .build/typescript/packages/core/src/llms/type.ts:28
Unified language model interface
Extends
Section titled “Extends”LLMChat
<AdditionalChatOptions
>
Type Parameters
Section titled “Type Parameters”AdditionalChatOptions
Section titled “AdditionalChatOptions”AdditionalChatOptions
extends object
= object
AdditionalMessageOptions
Section titled “AdditionalMessageOptions”AdditionalMessageOptions
extends object
= object
Properties
Section titled “Properties”metadata
Section titled “metadata”metadata:
LLMMetadata
Defined in: .build/typescript/packages/core/src/llms/type.ts:32
Methods
Section titled “Methods”chat()
Section titled “chat()”Call Signature
Section titled “Call Signature”chat(
params
):Promise
<AsyncIterable
<ChatResponseChunk
<object
>,any
,any
>>
Defined in: .build/typescript/packages/core/src/llms/type.ts:36
Get a chat response from the LLM
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsStreaming
<AdditionalChatOptions
, AdditionalMessageOptions
>
Returns
Section titled “Returns”Promise
<AsyncIterable
<ChatResponseChunk
<object
>, any
, any
>>
Overrides
Section titled “Overrides”originalMethod
.__type
Call Signature
Section titled “Call Signature”chat(
params
):Promise
<ChatResponse
<AdditionalMessageOptions
>>
Defined in: .build/typescript/packages/core/src/llms/type.ts:42
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsNonStreaming
<AdditionalChatOptions
, AdditionalMessageOptions
>
Returns
Section titled “Returns”Promise
<ChatResponse
<AdditionalMessageOptions
>>
Overrides
Section titled “Overrides”originalMethod
.__type
complete()
Section titled “complete()”Call Signature
Section titled “Call Signature”complete(
params
):Promise
<AsyncIterable
<CompletionResponse
,any
,any
>>
Defined in: .build/typescript/packages/core/src/llms/type.ts:52
Get a prompt completion from the LLM
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise
<AsyncIterable
<CompletionResponse
, any
, any
>>
Call Signature
Section titled “Call Signature”complete(
params
):Promise
<CompletionResponse
>
Defined in: .build/typescript/packages/core/src/llms/type.ts:55
Parameters
Section titled “Parameters”params
Section titled “params”LLMCompletionParamsNonStreaming
Returns
Section titled “Returns”Promise
<CompletionResponse
>