Class: OpenAIAgent
Hierarchy
-
AgentRunner
<OpenAI
>↳
OpenAIAgent
Constructors
constructor
• new OpenAIAgent(params
): OpenAIAgent
Parameters
Name | Type |
---|---|
params | OpenAIAgentParams |
Returns
Overrides
AgentRunner<OpenAI>.constructor
Defined in
packages/core/src/agent/openai.ts:36
Properties
#chatHistory
• Private
#chatHistory: ChatMessage
<ToolCallLLMMessageOptions
>[]
Inherited from
AgentRunner.#chatHistory
Defined in
packages/core/src/agent/base.ts:230
#llm
• Private
Readonly
#llm: OpenAI
Inherited from
AgentRunner.#llm
Defined in
packages/core/src/agent/base.ts:225
#runner
• Private
Readonly
#runner: AgentWorker
<OpenAI
, {}, ToolCallLLMMessageOptions
>
Inherited from
AgentRunner.#runner
Defined in
packages/core/src/agent/base.ts:231
#systemPrompt
• Private
Readonly
#systemPrompt: null
| MessageContent
= null
Inherited from
AgentRunner.#systemPrompt
Defined in
packages/core/src/agent/base.ts:229
#tools
• Private
Readonly
#tools: BaseToolWithCall
[] | (query
: MessageContent
) => Promise
<BaseToolWithCall
[]>
Inherited from
AgentRunner.#tools
Defined in
packages/core/src/agent/base.ts:226
#verbose
• Private
Readonly
#verbose: boolean
Inherited from
AgentRunner.#verbose
Defined in
packages/core/src/agent/base.ts:232
createStore
• createStore: () => object
= AgentRunner.defaultCreateStore
Type declaration
▸ (): object
Returns
object
Overrides
AgentRunner.createStore
Defined in
packages/core/src/agent/openai.ts:53
taskHandler
▪ Static
taskHandler: TaskHandler
<OpenAI
>
Defined in
packages/core/src/agent/openai.ts:55