Skip to content
Snippets Groups Projects
Unverified Commit 22ecb7cb authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

Add RAG agent plugin to API agent (#2171)

parent 5507c352
No related branches found
No related tags found
No related merge requests found
......@@ -188,6 +188,7 @@ class EphemeralAgentHandler extends AgentHandler {
);
this.#funcsToLoad = [
AgentPlugins.memory.name,
AgentPlugins.docSummarizer.name,
AgentPlugins.webScraping.name,
...(await agentSkillsFromSystemSettings()),
......@@ -209,6 +210,10 @@ class EphemeralAgentHandler extends AgentHandler {
model: this.model ?? "gpt-4o",
chats: await this.#chatHistory(20),
handlerProps: {
invocation: {
workspace: this.#workspace,
workspace_id: this.#workspace.id,
},
log: this.log,
},
});
......
......@@ -166,7 +166,7 @@ class MetaGenerator {
}
async #fetchConfg() {
this.#log(`fetching custome meta tag settings...`);
this.#log(`fetching custom meta tag settings...`);
const { SystemSettings } = require("../../models/systemSettings");
const customTitle = await SystemSettings.getValueOrFallback(
{ label: "meta_page_title" },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment