mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-19 12:40:09 +01:00
Add RAG agent plugin to API agent (#2171)
This commit is contained in:
parent
5507c352af
commit
22ecb7cb39
@ -188,6 +188,7 @@ class EphemeralAgentHandler extends AgentHandler {
|
|||||||
);
|
);
|
||||||
|
|
||||||
this.#funcsToLoad = [
|
this.#funcsToLoad = [
|
||||||
|
AgentPlugins.memory.name,
|
||||||
AgentPlugins.docSummarizer.name,
|
AgentPlugins.docSummarizer.name,
|
||||||
AgentPlugins.webScraping.name,
|
AgentPlugins.webScraping.name,
|
||||||
...(await agentSkillsFromSystemSettings()),
|
...(await agentSkillsFromSystemSettings()),
|
||||||
@ -209,6 +210,10 @@ class EphemeralAgentHandler extends AgentHandler {
|
|||||||
model: this.model ?? "gpt-4o",
|
model: this.model ?? "gpt-4o",
|
||||||
chats: await this.#chatHistory(20),
|
chats: await this.#chatHistory(20),
|
||||||
handlerProps: {
|
handlerProps: {
|
||||||
|
invocation: {
|
||||||
|
workspace: this.#workspace,
|
||||||
|
workspace_id: this.#workspace.id,
|
||||||
|
},
|
||||||
log: this.log,
|
log: this.log,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
@ -166,7 +166,7 @@ class MetaGenerator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async #fetchConfg() {
|
async #fetchConfg() {
|
||||||
this.#log(`fetching custome meta tag settings...`);
|
this.#log(`fetching custom meta tag settings...`);
|
||||||
const { SystemSettings } = require("../../models/systemSettings");
|
const { SystemSettings } = require("../../models/systemSettings");
|
||||||
const customTitle = await SystemSettings.getValueOrFallback(
|
const customTitle = await SystemSettings.getValueOrFallback(
|
||||||
{ label: "meta_page_title" },
|
{ label: "meta_page_title" },
|
||||||
|
Loading…
Reference in New Issue
Block a user