Skip to main content

Class: OllamaAgentWorker

Worker will schedule tasks and handle the task execution

Extends

Constructors

new OllamaAgentWorker()

new OllamaAgentWorker(): OllamaAgentWorker

Returns

OllamaAgentWorker

Inherited from

LLMAgentWorker.constructor

Properties

[toStringTag]

[toStringTag]: string

Inherited from

LLMAgentWorker.[toStringTag]

Defined in

packages/core/agent/dist/index.d.ts:70


taskHandler

taskHandler: TaskHandler<LLM<object, object>, object, object, object>

Inherited from

LLMAgentWorker.taskHandler

Defined in

packages/core/agent/dist/index.d.ts:101

Methods

createTask()

createTask(query, context): ReadableStream<TaskStepOutput<LLM<object, object>, object, object, object>>

Parameters

query: MessageContent

context: AgentTaskContext<LLM<object, object>, object, object, object>

Returns

ReadableStream<TaskStepOutput<LLM<object, object>, object, object, object>>

Inherited from

LLMAgentWorker.createTask

Defined in

packages/core/agent/dist/index.d.ts:69