Aller au contenu principal

Class: OpenAIAgentWorker

Hierarchy

  • AgentWorker<OpenAI>

    OpenAIAgentWorker

Constructors

constructor

new OpenAIAgentWorker(): OpenAIAgentWorker

Returns

OpenAIAgentWorker

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


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Defined in

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


taskHandler

taskHandler: TaskHandler<OpenAI> = OpenAIAgent.taskHandler

Overrides

AgentWorker.taskHandler

Defined in

packages/core/src/agent/openai.ts:32

Methods

createTask

createTask(query, context): ReadableStream<TaskStepOutput<OpenAI, {}, ToolCallLLMMessageOptions>>

Parameters

NameType
querystring
contextAgentTaskContext<OpenAI, {}, ToolCallLLMMessageOptions>

Returns

ReadableStream<TaskStepOutput<OpenAI, {}, ToolCallLLMMessageOptions>>

Inherited from

AgentWorker.createTask

Defined in

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