Class: OpenAIAgentWorker
Hierarchy
-
AgentWorker
<OpenAI
>↳
OpenAIAgentWorker
Constructors
constructor
• new OpenAIAgentWorker(): OpenAIAgentWorker
Returns
Inherited from
AgentWorker<OpenAI>.constructor
Properties
#taskSet
• Private
#taskSet: Set
<TaskStep
<OpenAI
, {}, ToolCallLLMMessageOptions
>>
Inherited from
AgentWorker.#taskSet
Defined in
packages/core/src/agent/base.ts:231
[toStringTag]
• [toStringTag]: string
= "AgentWorker"
Inherited from
AgentWorker.[toStringTag]
Defined in
packages/core/src/agent/base.ts:266
taskHandler
• taskHandler: TaskHandler
<OpenAI
> = OpenAIAgent.taskHandler
Overrides
AgentWorker.taskHandler
Defined in
packages/core/src/agent/openai.ts:35
Methods
createTask
▸ createTask(query
, context
): ReadableStream
<TaskStepOutput
<OpenAI
, {}, ToolCallLLMMessageOptions
>>
Parameters
Name | Type |
---|---|
query | string |
context | AgentTaskContext <OpenAI , {}, ToolCallLLMMessageOptions > |
Returns
ReadableStream
<TaskStepOutput
<OpenAI
, {}, ToolCallLLMMessageOptions
>>