Class: OpenAIAgentWorker
Extends
AgentWorker
<OpenAI
>
Constructors
new OpenAIAgentWorker()
new OpenAIAgentWorker():
OpenAIAgentWorker
Returns
Inherited from
AgentWorker<OpenAI>.constructor
Properties
#taskSet
private
#taskSet:Set
<TaskStep
<OpenAI
,object
,ToolCallLLMMessageOptions
>>
Inherited from
AgentWorker.#taskSet
Source
packages/llamaindex/src/agent/base.ts:148
[toStringTag]
[toStringTag]:
string
="AgentWorker"
Inherited from
AgentWorker.[toStringTag]
Source
packages/llamaindex/src/agent/base.ts:184
taskHandler
taskHandler:
TaskHandler
<OpenAI
> =OpenAIAgent.taskHandler
Overrides
AgentWorker.taskHandler
Source
packages/llamaindex/src/agent/openai.ts:32
Methods
createTask()
createTask(
query
,context
):ReadableStream
<TaskStepOutput
<OpenAI
,object
,ToolCallLLMMessageOptions
>>
Parameters
• query: MessageContent
• context: AgentTaskContext
<OpenAI
, object
, ToolCallLLMMessageOptions
>
Returns
ReadableStream
<TaskStepOutput
<OpenAI
, object
, ToolCallLLMMessageOptions
>>
Inherited from
AgentWorker.createTask