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:27
_getPrompts
▸ _getPrompts(): string
[]
Returns
string
[]
Defined in
packages/core/src/agent/types.ts:23
chat
▸ chat(params
): Promise
<AgentChatResponse
>
Parameters
Name | Type |
---|---|
params | ChatEngineAgentParams |
Returns
Promise
<AgentChatResponse
>
Implementation of
BaseChatEngine.chat
Defined in
packages/core/src/agent/types.ts:31
query
▸ query(params
): Promise
<AgentChatResponse
>
query is the main entrypoint for the agent. It takes a query and returns a response.
Parameters
Name | Type |
---|---|
params | QueryEngineParamsNonStreaming |
Returns
Promise
<AgentChatResponse
>
Implementation of
BaseQueryEngine.query
Defined in
packages/core/src/agent/types.ts:39
reset
▸ reset(): void
Returns
void