Skip to main content

Class: OpenAIAgentWorker

Worker will schedule tasks and handle the task execution

Extends

Constructors

new OpenAIAgentWorker()

new OpenAIAgentWorker(): OpenAIAgentWorker

Returns

OpenAIAgentWorker

Inherited from

LLMAgentWorker . constructor

Properties

#taskSet

private #taskSet: Set<TaskStep <LLM<object, object>, object, object>>

Inherited from

LLMAgentWorker . #taskSet

Source

packages/llamaindex/src/agent/base.ts:149


[toStringTag]

[toStringTag]: string = "AgentWorker"

Inherited from

LLMAgentWorker . [toStringTag]

Source

packages/llamaindex/src/agent/base.ts:185


taskHandler

taskHandler: TaskHandler <LLM<object, object>> = AgentRunner.defaultTaskHandler

Inherited from

LLMAgentWorker . taskHandler

Source

packages/llamaindex/src/agent/llm.ts:20

Methods

createTask()

createTask(query, context): ReadableStream<TaskStepOutput <LLM<object, object>, object, object>>

Parameters

query: MessageContent

context: AgentTaskContext <LLM<object, object>, object, object>

Returns

ReadableStream<TaskStepOutput <LLM<object, object>, object, object>>

Inherited from

LLMAgentWorker . createTask

Source

packages/llamaindex/src/agent/base.ts:152