Class: BaseAgent
BaseAgent is the base class for all agents.
Implements
BaseChatEngine
BaseQueryEngine
Constructors
constructor
• new BaseAgent(): BaseAgent
Returns
Methods
_getPromptModules
▸ _getPromptModules(): string
[]
Returns
string
[]
Defined in
packages/core/src/agent/types.ts:36
_getPrompts
▸ _getPrompts(): string
[]
Returns
string
[]
Defined in
packages/core/src/agent/types.ts:32
chat
▸ chat(params
): Promise
<AgentChatResponse
| StreamingAgentChatResponse
>
Parameters
Name | Type |
---|---|
params | ChatEngineAgentParams |
Returns
Promise
<AgentChatResponse
| StreamingAgentChatResponse
>
Implementation of
BaseChatEngine.chat
Defined in
packages/core/src/agent/types.ts:40