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
Inherited from
Defined in
packages/core/agent/dist/agent/index.d.ts:67
taskHandler
taskHandler:
TaskHandler
<LLM
<object
,object
>,ReACTAgentStore
> =ReActAgent.taskHandler
Overrides
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
Defined in
packages/core/agent/dist/agent/index.d.ts:66