Class: ReACTAgentWorker
Hierarchy
-
AgentWorker
<LLM
,ReACTAgentStore
>↳
ReACTAgentWorker
Constructors
constructor
• 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
Defined in
packages/core/src/agent/base.ts:168
[toStringTag]
• [toStringTag]: string
= "AgentWorker"
Inherited from
AgentWorker.[toStringTag]
Defined in
packages/core/src/agent/base.ts:204
taskHandler
• taskHandler: TaskHandler
<LLM
<object
, object
>, ReACTAgentStore
> = ReActAgent.taskHandler
Overrides
AgentWorker.taskHandler
Defined in
packages/core/src/agent/react.ts:341
Methods
createTask
▸ createTask(query
, context
): ReadableStream
<TaskStepOutput
<LLM
<object
, object
>, ReACTAgentStore
, object
>>
Parameters
Name | Type |
---|---|
query | string |
context | AgentTaskContext <LLM <object , object >, ReACTAgentStore , object > |
Returns
ReadableStream
<TaskStepOutput
<LLM
<object
, object
>, ReACTAgentStore
, object
>>
Inherited from
AgentWorker.createTask