Add RAG agent plugin to API agent (#2171)

This commit is contained in:
Timothy Carambat 2024-08-23 09:32:19 -07:00 committed by GitHub
parent 5507c352af
commit 22ecb7cb39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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,
},
});

View File

@ -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" },