Class: ReActAgent
An agent that uses OpenAI's API to generate text.
Hierarchy
-
AgentRunner
↳
ReActAgent
Constructors
constructor
• new ReActAgent(«destructured»
): ReActAgent
Parameters
Name | Type |
---|---|
«destructured» | Partial <ReActAgentParams > |
Returns
Overrides
AgentRunner.constructor
Defined in
packages/core/src/agent/react/base.ts:26
Properties
agentWorker
• agentWorker: AgentWorker
Inherited from
AgentRunner.agentWorker
Defined in
packages/core/src/agent/runner/base.ts:43
callbackManager
• callbackManager: CallbackManager
Inherited from
AgentRunner.callbackManager
Defined in
packages/core/src/agent/runner/base.ts:46
defaultToolChoice
• defaultToolChoice: string
Inherited from
AgentRunner.defaultToolChoice
Defined in
packages/core/src/agent/runner/base.ts:49
deleteTaskOnFinish
• deleteTaskOnFinish: boolean
Inherited from
AgentRunner.deleteTaskOnFinish
Defined in
packages/core/src/agent/runner/base.ts:48
initTaskStateKwargs
• initTaskStateKwargs: Record
<string
, any
>
Inherited from
AgentRunner.initTaskStateKwargs
Defined in
packages/core/src/agent/runner/base.ts:47
memory
• memory: BaseMemory
Inherited from
AgentRunner.memory
Defined in
packages/core/src/agent/runner/base.ts:45
state
• state: AgentState
Inherited from
AgentRunner.state
Defined in
packages/core/src/agent/runner/base.ts:44
Methods
_chat
▸ _chat(«destructured»
): Promise
<AgentChatResponse
>
Parameters
Name | Type |
---|---|
«destructured» | ChatEngineAgentParams & { mode : ChatResponseMode } |
Returns
Promise
<AgentChatResponse
>
Inherited from
AgentRunner._chat