Ana içeriğe geç

Class: ReACTAgentWorker

Extends

  • AgentWorker <LLM, ReACTAgentStore>

Constructors

new ReACTAgentWorker()

new ReACTAgentWorker(): ReACTAgentWorker

Returns

ReACTAgentWorker

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:158


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Source

packages/llamaindex/src/agent/base.ts:194


taskHandler

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

Overrides

AgentWorker.taskHandler

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>>

Inherited from

AgentWorker.createTask

Source

packages/llamaindex/src/agent/base.ts:161