ToolCallLLM
Defined in: .build/typescript/packages/core/src/llms/base.ts:324
Unified language model interface
Extends
Section titled “Extends”BaseLLM
<AdditionalChatOptions
,AdditionalMessageOptions
>
Type Parameters
Section titled “Type Parameters”AdditionalChatOptions
Section titled “AdditionalChatOptions”AdditionalChatOptions
extends object
= object
AdditionalMessageOptions
Section titled “AdditionalMessageOptions”AdditionalMessageOptions
extends ToolCallLLMMessageOptions
= ToolCallLLMMessageOptions
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ToolCallLLM<
AdditionalChatOptions
,AdditionalMessageOptions
>():ToolCallLLM
<AdditionalChatOptions
,AdditionalMessageOptions
>
Returns
Section titled “Returns”ToolCallLLM
<AdditionalChatOptions
, AdditionalMessageOptions
>
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”metadata
Section titled “metadata”
abstract
metadata:LLMMetadata
Defined in: .build/typescript/packages/core/src/llms/base.ts:41
Inherited from
Section titled “Inherited from”supportToolCall
Section titled “supportToolCall”
abstract
supportToolCall:boolean
Defined in: .build/typescript/packages/core/src/llms/base.ts:329
Methods
Section titled “Methods”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/base.ts:43
Get a prompt completion from the LLM
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise
<AsyncIterable
<CompletionResponse
, any
, any
>>
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”complete(
params
):Promise
<CompletionResponse
>
Defined in: .build/typescript/packages/core/src/llms/base.ts:46
Parameters
Section titled “Parameters”params
Section titled “params”LLMCompletionParamsNonStreaming
Returns
Section titled “Returns”Promise
<CompletionResponse
>
Inherited from
Section titled “Inherited from”chat()
Section titled “chat()”Call Signature
Section titled “Call Signature”
abstract
chat(params
):Promise
<AsyncIterable
<ChatResponseChunk
<AdditionalMessageOptions
>,any
,any
>>
Defined in: .build/typescript/packages/core/src/llms/base.ts:78
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
<AdditionalMessageOptions
>, any
, any
>>
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”
abstract
chat(params
):Promise
<ChatResponse
<AdditionalMessageOptions
>>
Defined in: .build/typescript/packages/core/src/llms/base.ts:84
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsNonStreaming
<AdditionalChatOptions
, AdditionalMessageOptions
>
Returns
Section titled “Returns”Promise
<ChatResponse
<AdditionalMessageOptions
>>
Inherited from
Section titled “Inherited from”exec()
Section titled “exec()”Call Signature
Section titled “Call Signature”exec<
Z
>(params
):Promise
<ExecStreamResponse
<AdditionalMessageOptions
,ZodInfer
<Z
>>>
Defined in: .build/typescript/packages/core/src/llms/base.ts:91
Type Parameters
Section titled “Type Parameters”Z
extends ZodSchema
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsStreaming
<AdditionalChatOptions
, AdditionalMessageOptions
, Z
>
Returns
Section titled “Returns”Promise
<ExecStreamResponse
<AdditionalMessageOptions
, ZodInfer
<Z
>>>
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”exec<
Z
>(params
):Promise
<ExecResponse
<AdditionalMessageOptions
,ZodInfer
<Z
>>>
Defined in: .build/typescript/packages/core/src/llms/base.ts:98
Type Parameters
Section titled “Type Parameters”Z
extends ZodSchema
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsNonStreaming
<AdditionalChatOptions
, AdditionalMessageOptions
, Z
>
Returns
Section titled “Returns”Promise
<ExecResponse
<AdditionalMessageOptions
, ZodInfer
<Z
>>>
Inherited from
Section titled “Inherited from”streamExec()
Section titled “streamExec()”streamExec<
Z
>(params
):Promise
<ExecStreamResponse
<AdditionalMessageOptions
,ZodInfer
<Z
>>>
Defined in: .build/typescript/packages/core/src/llms/base.ts:181
Type Parameters
Section titled “Type Parameters”Z
extends ZodSchema
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsStreaming
<AdditionalChatOptions
, AdditionalMessageOptions
, Z
>
Returns
Section titled “Returns”Promise
<ExecStreamResponse
<AdditionalMessageOptions
, ZodInfer
<Z
>>>