Refactor system prompt variables for clarity and consistency across agent setup and runner modules

This commit is contained in:
Roberto Musso
2026-04-07 00:23:41 +02:00
parent 1ce1d492b0
commit aa8bcbf0d8
3 changed files with 17 additions and 17 deletions

View File

@@ -88,7 +88,7 @@ def get_journey_session(session_id: str, user_id: str) -> JourneySession | None:
# ── System prompt builder ─────────────────────────────────────────────────
_SYSTEM_PROMPT_TEMPLATE = """\
_JOURNEY_SYSTEM_PROMPT = """\
You are a friendly assistant helping a freelancer configure a data-extraction agent.
Your job is to understand exactly what data the user wants to extract from their
local directory and produce a detailed prompt_template that a separate AI will use
@@ -158,7 +158,7 @@ def _build_system_prompt(
else ""
)
template, prompt_obj = get_prompt_or_fallback(
"journey_system", _SYSTEM_PROMPT_TEMPLATE
"journey_system", _JOURNEY_SYSTEM_PROMPT
)
compiled = template.format(
directory=directory,