Class: OpenAIAgentWorker
Implements
Constructors
constructor
• new OpenAIAgentWorker(«destructured»
): OpenAIAgentWorker
Parameters
Name | Type |
---|---|
«destructured» | OpenAIAgentWorkerParams |
Returns
Defined in
packages/core/src/agent/openai/worker.ts:95
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:93
llm
• Private
llm: OpenAI
Defined in
packages/core/src/agent/openai/worker.ts:88
maxFunctionCalls
• Private
maxFunctionCalls: number
= 5
Defined in
packages/core/src/agent/openai/worker.ts:89
prefixMessages
• prefixMessages: ChatMessage
[]
Defined in
packages/core/src/agent/openai/worker.ts:91
Methods
_getAgentResponse
▸ _getAgentResponse(task
, mode
, llmChatParams
): Promise
<AgentChatResponse
| StreamingAgentChatResponse
>
Parameters
Name | Type |
---|---|
task | Task |
mode | ChatResponseMode |
llmChatParams | LLMChatParamsBase <OpenAIAdditionalChatOptions > |