Class: ReACTAgentWorker
Worker will schedule tasks and handle the task execution
Extends
AgentWorker
<LLM
,ReACTAgentStore
>
Constructors
new ReACTAgentWorker()
new ReACTAgentWorker():
ReACTAgentWorker
Returns
Inherited from
Properties
[toStringTag]
[toStringTag]:
string
="AgentWorker"
Inherited from
Defined in
packages/llamaindex/src/agent/base.ts:195
taskHandler
taskHandler:
TaskHandler
<LLM
<object
,object
>,ReACTAgentStore
> =ReActAgent.taskHandler
Overrides
Defined in
packages/llamaindex/src/agent/react.ts:325
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
>>