Passa al contenuto principale

Class: ReACTAgentWorker

Hierarchy

  • AgentWorker<LLM, ReACTAgentStore>

    ReACTAgentWorker

Constructors

constructor

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

Defined in

packages/core/src/agent/base.ts:166


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Defined in

packages/core/src/agent/base.ts:201


taskHandler

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

Overrides

AgentWorker.taskHandler

Defined in

packages/core/src/agent/react.ts:327

Methods

createTask

createTask(query, context): ReadableStream<TaskStepOutput<LLM<object, object>, ReACTAgentStore, object>>

Parameters

NameType
querystring
contextAgentTaskContext<LLM<object, object>, ReACTAgentStore, object>

Returns

ReadableStream<TaskStepOutput<LLM<object, object>, ReACTAgentStore, object>>

Inherited from

AgentWorker.createTask

Defined in

packages/core/src/agent/base.ts:169