Skip to main content

Class: abstract ToolCallLLM<AdditionalChatOptions>

Unified language model interface

Extends

Extended by

Type parameters

AdditionalChatOptions extends object = object

Constructors

new ToolCallLLM()

new ToolCallLLM<AdditionalChatOptions>(): ToolCallLLM<AdditionalChatOptions>

Returns

ToolCallLLM<AdditionalChatOptions>

Inherited from

BaseLLM . constructor

Properties

metadata

abstract metadata: LLMMetadata

Inherited from

BaseLLM . metadata

Source

packages/core/dist/llms/index.d.ts:167


supportToolCall

abstract supportToolCall: boolean

Source

packages/core/dist/llms/index.d.ts:174

Methods

chat()

chat(params)

abstract chat(params): Promise<AsyncIterable <ChatResponseChunk<object>>>

Get a chat response from the LLM

Parameters

params: LLMChatParamsStreaming<AdditionalChatOptions, ToolCallLLMMessageOptions>

Returns

Promise<AsyncIterable <ChatResponseChunk<object>>>

Inherited from

BaseLLM . chat

Source

packages/core/dist/llms/index.d.ts:170

chat(params)

abstract chat(params): Promise <ChatResponse <ToolCallLLMMessageOptions>>

Parameters

params: LLMChatParamsNonStreaming<AdditionalChatOptions, ToolCallLLMMessageOptions>

Returns

Promise <ChatResponse <ToolCallLLMMessageOptions>>

Inherited from

BaseLLM . chat

Source

packages/core/dist/llms/index.d.ts:171


complete()

complete(params)

complete(params): Promise<AsyncIterable <CompletionResponse>>

Get a prompt completion from the LLM

Parameters

params: LLMCompletionParamsStreaming

Returns

Promise<AsyncIterable <CompletionResponse>>

Inherited from

BaseLLM . complete

Source

packages/core/dist/llms/index.d.ts:168

complete(params)

complete(params): Promise <CompletionResponse>

Parameters

params: LLMCompletionParamsNonStreaming

Returns

Promise <CompletionResponse>

Inherited from

BaseLLM . complete

Source

packages/core/dist/llms/index.d.ts:169