Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(agent): Move `in-app-agent-system-prompt.txt` to EE (#14445)

Ben Bacheme6044e533f55
diff --git a/web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt b/ee/src/in-app-agent/prompts/in-app-agent-system-prompt.txt
similarity index 100%
rename from web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt
rename to ee/src/in-app-agent/prompts/in-app-agent-system-prompt.txt
diff --git a/packages/shared/scripts/seeder/seed-postgres.ts b/packages/shared/scripts/seeder/seed-postgres.ts
index 755885ee2f..1ba94072ac 100644
--- a/packages/shared/scripts/seeder/seed-postgres.ts
+++ b/packages/shared/scripts/seeder/seed-postgres.ts
@@ -47,7 +47,7 @@ const IN_APP_AGENT_SYSTEM_PROMPT_NAME = "in-app-agent-system-prompt";
const IN_APP_AGENT_SYSTEM_PROMPT_PATH = resolve(
__dirname,
"../../../..",
- "web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt",
+ "ee/src/in-app-agent/prompts/in-app-agent-system-prompt.txt",
);
const inAppAgentSystemPrompt = readFileSync(
diff --git a/scripts/in-app-agent/README.md b/scripts/in-app-agent/README.md
index b4c3764fed..255ce6fcce 100644
--- a/scripts/in-app-agent/README.md
+++ b/scripts/in-app-agent/README.md
@@ -2,7 +2,7 @@
The canonical system prompt for the in-app agent lives at:
-`web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt`
+`ee/src/in-app-agent/prompts/in-app-agent-system-prompt.txt`
The local Postgres seeder reads this file and creates the text prompt named
`in-app-agent-system-prompt` in the seed project
diff --git a/scripts/in-app-agent/sync-prompt.sh b/scripts/in-app-agent/sync-prompt.sh
index 8ae0b78b3b..5d0d734bad 100755
--- a/scripts/in-app-agent/sync-prompt.sh
+++ b/scripts/in-app-agent/sync-prompt.sh
@@ -3,7 +3,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
-PROMPT_FILE="${REPO_ROOT}/web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt"
+PROMPT_FILE="${REPO_ROOT}/ee/src/in-app-agent/prompts/in-app-agent-system-prompt.txt"
PROMPT_NAME="in-app-agent-system-prompt"
REGIONS=(STAGING EU US JP HIPAA)
BASE_URLS=(
diff --git a/web/src/ee/features/in-app-agent/server/agent.ts b/web/src/ee/features/in-app-agent/server/agent.ts
index 5fd1a4b64d..29951ba09e 100644
--- a/web/src/ee/features/in-app-agent/server/agent.ts
+++ b/web/src/ee/features/in-app-agent/server/agent.ts
@@ -27,7 +27,8 @@ const ASSISTANT_TITLE = "Langfuse Assistant";
const IN_APP_AGENT_SYSTEM_PROMPT_NAME = "in-app-agent-system-prompt";
const LOCAL_IN_APP_AGENT_SYSTEM_PROMPT_DIR = path.join(
process.cwd(),
- "src/features/in-app-agent/prompts/",
+ "..",
+ "ee/src/in-app-agent/prompts/",
);
const MAX_AGENT_STEPS = 10;
const LANGFUSE_DOCS_MCP_URL = "https://langfuse.com/api/mcp";