Nhảy tới nội dung

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


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Source

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


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

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