Refactor system prompt variables for clarity and consistency across agent setup and runner modules
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user