Skip to main content

Class: LLMAgentWorker

Worker will schedule tasks and handle the task execution

Extends

Extended by

Constructors

new LLMAgentWorker()

new LLMAgentWorker(): LLMAgentWorker

Returns

LLMAgentWorker

Inherited from

AgentWorker . constructor

Properties

#taskSet

private #taskSet: Set<TaskStep <LLM<object, object>, object, object>>

Inherited from

AgentWorker . #taskSet

Source

packages/llamaindex/src/agent/base.ts:159


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker . [toStringTag]

Source

packages/llamaindex/src/agent/base.ts:195


taskHandler

taskHandler: TaskHandler <LLM<object, object>> = AgentRunner.defaultTaskHandler

Overrides

AgentWorker . taskHandler

Source

packages/llamaindex/src/agent/llm.ts:21

Methods

createTask()

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

Parameters

query: MessageContent

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

Returns

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

Inherited from

AgentWorker . createTask

Source

packages/llamaindex/src/agent/base.ts:162