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

[toStringTag]

[toStringTag]: string

Inherited from

AgentWorker.[toStringTag]

Defined in

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


taskHandler

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

Overrides

AgentWorker.taskHandler

Defined in

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

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

Defined in

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