Ollama
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:61
Extends
Section titled “Extends”ToolCallLLM
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new Ollama(
params):Ollama
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:75
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Ollama
Overrides
Section titled “Overrides”ToolCallLLM.constructor
Properties
Section titled “Properties”supportToolCall
Section titled “supportToolCall”supportToolCall:
boolean=true
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:62
Overrides
Section titled “Overrides”ToolCallLLM.supportToolCall
ollama
Section titled “ollama”
readonlyollama:Ollama
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:63
model:
string
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:66
options
Section titled “options”options:
Partial<Omit<Options,"num_ctx"|"top_p"|"temperature">> &Pick<Options,"num_ctx"|"top_p"|"temperature">
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:68
Accessors
Section titled “Accessors”metadata
Section titled “metadata”Get Signature
Section titled “Get Signature”get metadata():
LLMMetadata
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:87
Returns
Section titled “Returns”LLMMetadata
Overrides
Section titled “Overrides”ToolCallLLM.metadata
Methods
Section titled “Methods”chat()
Section titled “chat()”Call Signature
Section titled “Call Signature”chat(
params):Promise<AsyncIterable<ChatResponseChunk,any,any>>
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:100
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsStreaming<ToolCallLLMMessageOptions>
Returns
Section titled “Returns”Promise<AsyncIterable<ChatResponseChunk, any, any>>
Overrides
Section titled “Overrides”ToolCallLLM.chat
Call Signature
Section titled “Call Signature”chat(
params):Promise<ChatResponse<ToolCallLLMMessageOptions>>
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:103
Parameters
Section titled “Parameters”params
Section titled “params”LLMChatParamsNonStreaming<ToolCallLLMMessageOptions>
Returns
Section titled “Returns”Promise<ChatResponse<ToolCallLLMMessageOptions>>
Overrides
Section titled “Overrides”ToolCallLLM.chat
complete()
Section titled “complete()”Call Signature
Section titled “Call Signature”complete(
params):Promise<AsyncIterable<CompletionResponse,any,any>>
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:183
Parameters
Section titled “Parameters”params
Section titled “params”LLMCompletionParamsStreaming
Returns
Section titled “Returns”Promise<AsyncIterable<CompletionResponse, any, any>>
Overrides
Section titled “Overrides”ToolCallLLM.complete
Call Signature
Section titled “Call Signature”complete(
params):Promise<CompletionResponse>
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:186
Parameters
Section titled “Parameters”params
Section titled “params”LLMCompletionParamsNonStreaming
Returns
Section titled “Returns”Promise<CompletionResponse>
Overrides
Section titled “Overrides”ToolCallLLM.complete
toTool()
Section titled “toTool()”
statictoTool(tool):Tool
Defined in: .build/typescript/packages/providers/ollama/src/llm.ts:219
Parameters
Section titled “Parameters”BaseTool
Returns
Section titled “Returns”Tool