Skip to main content

Class: ReACTAgentWorker

Worker will schedule tasks and handle the task execution

Extends

Constructors

new ReACTAgentWorker()

new ReACTAgentWorker(): ReACTAgentWorker

Returns

ReACTAgentWorker

Inherited from

AgentWorker . constructor

Properties

#taskSet

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

Inherited from

AgentWorker . #taskSet

Source

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


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker . [toStringTag]

Source

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


taskHandler

taskHandler: TaskHandler <LLM<object, object>, ReACTAgentStore> = ReActAgent.taskHandler

Overrides

AgentWorker . taskHandler

Source

packages/llamaindex/src/agent/react.ts:341

Methods

createTask()

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

Parameters

query: MessageContent

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

Returns

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

Inherited from

AgentWorker . createTask

Source

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