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
#taskSet
private
#taskSet:Set
<TaskStep
<LLM
<object
,object
>,ReACTAgentStore
,object
>>
Inherited from
Source
packages/llamaindex/src/agent/base.ts:159
[toStringTag]
[toStringTag]:
string
="AgentWorker"
Inherited from
Source
packages/llamaindex/src/agent/base.ts:195
taskHandler
taskHandler:
TaskHandler
<LLM
<object
,object
>,ReACTAgentStore
> =ReActAgent.taskHandler
Overrides
Source
packages/llamaindex/src/agent/react.ts:324
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
>>