Class: ReACTAgentWorker
Extends
AgentWorker
<LLM
,ReACTAgentStore
>
Constructors
new ReACTAgentWorker()
new ReACTAgentWorker():
ReACTAgentWorker
Returns
Inherited from
AgentWorker<LLM, ReACTAgentStore>.constructor
Properties
#taskSet
private
#taskSet:Set
<TaskStep
<LLM
<object
,object
>,ReACTAgentStore
,object
>>
Inherited from
AgentWorker.#taskSet
Source
packages/llamaindex/src/agent/base.ts:148
[toStringTag]
[toStringTag]:
string
="AgentWorker"
Inherited from
AgentWorker.[toStringTag]
Source
packages/llamaindex/src/agent/base.ts:184
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