跳到主要内容

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


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

AgentWorker.[toStringTag]

Defined in

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


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