Class: ReActAgent
Hierarchy
-
AgentRunner
<LLM
,ReACTAgentStore
>↳
ReActAgent
Constructors
constructor
• new ReActAgent(params
): ReActAgent
Parameters
Name | Type |
---|---|
params | ReACTAgentParamsWithTools | ReACTAgentParamsWithToolRetriever |
Returns
Overrides
AgentRunner<LLM, ReACTAgentStore>.constructor
Defined in
packages/core/src/agent/react.ts:345
Properties
#chatHistory
• Private
#chatHistory: ChatMessage
<object
>[]
Inherited from
AgentRunner.#chatHistory
Defined in
packages/core/src/agent/base.ts:230
#llm
• Private
Readonly
#llm: LLM
<object
, object
>
Inherited from
AgentRunner.#llm
Defined in
packages/core/src/agent/base.ts:225
#runner
• Private
Readonly
#runner: AgentWorker
<LLM
<object
, object
>, ReACTAgentStore
, object
>
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
taskHandler
▪ Static
taskHandler: TaskHandler
<LLM
<object
, object
>, ReACTAgentStore
>
Defined in
packages/core/src/agent/react.ts:367
Accessors
chatHistory
• get
chatHistory(): ChatMessage
<AdditionalMessageOptions
>[]
Returns
ChatMessage
<AdditionalMessageOptions
>[]
Inherited from
AgentRunner.chatHistory
Defined in
packages/core/src/agent/base.ts:259
llm
• get
llm(): AI