Zum Hauptinhalt springen

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/core/src/agent/base.ts:168


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Source

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


taskHandler

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

Overrides

AgentWorker.taskHandler

Source

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

Methods

createTask()

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

Parameters

query: string

context: AgentTaskContext <LLM<object, object>, ReACTAgentStore, object>

Returns

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

Inherited from

AgentWorker.createTask

Source

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