Skip to content

LLM

Defined in: .build/typescript/packages/core/src/llms/type.ts:28

Unified language model interface

AdditionalChatOptions extends object = object

AdditionalMessageOptions extends object = object

metadata: LLMMetadata

Defined in: .build/typescript/packages/core/src/llms/type.ts:32

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

LLMChatParamsStreaming<AdditionalChatOptions, AdditionalMessageOptions>

Promise<AsyncIterable<ChatResponseChunk<object>, any, any>>

originalMethod.__type

chat(params): Promise<ChatResponse<AdditionalMessageOptions>>

Defined in: .build/typescript/packages/core/src/llms/type.ts:42

LLMChatParamsNonStreaming<AdditionalChatOptions, AdditionalMessageOptions>

Promise<ChatResponse<AdditionalMessageOptions>>

originalMethod.__type


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

LLMCompletionParamsStreaming

Promise<AsyncIterable<CompletionResponse, any, any>>

complete(params): Promise<CompletionResponse>

Defined in: .build/typescript/packages/core/src/llms/type.ts:55

LLMCompletionParamsNonStreaming

Promise<CompletionResponse>