Class: OpenAIAgentWorker
OpenAI agent worker. This class is responsible for running the agent.
Implements
Constructors
constructor
• new OpenAIAgentWorker(«destructured»
): OpenAIAgentWorker
Initialize.
Parameters
Name | Type |
---|---|
«destructured» | OpenAIAgentWorkerParams |
Returns
Defined in
packages/core/src/agent/openai/worker.ts:108
Properties
_getTools
• Private
_getTools: (input
: string
) => Promise
<BaseTool
[]>
Type declaration
▸ (input
): Promise
<BaseTool
[]>
Parameters
Name | Type |
---|---|
input | string |
Returns
Promise
<BaseTool
[]>
Defined in
packages/core/src/agent/openai/worker.ts:103
callbackManager
• callbackManager: undefined
| CallbackManager
Defined in
packages/core/src/agent/openai/worker.ts:101
llm
• Private
llm: OpenAI
Defined in
packages/core/src/agent/openai/worker.ts:96
maxFunctionCalls
• Private
maxFunctionCalls: number
Defined in
packages/core/src/agent/openai/worker.ts:98
prefixMessages
• prefixMessages: ChatMessage
[]
Defined in
packages/core/src/agent/openai/worker.ts:100
verbose
• Private
verbose: boolean
Defined in
packages/core/src/agent/openai/worker.ts:97