WeKnora/config/prompt_templates
ochan.kwon 380f5d9405 fix(agent): prevent empty response when no Knowledge Base is configured
- guard against empty content completion in analyzeResponse/executeLoop
  with retry (max 2), nudge message, and fallback response
- propagate actual finish_reason through streaming pipeline instead of
  hardcoding "stop" in streamThinkingToEventBus
- add FinishReason field to StreamResponse and streamLLMResult
- add finish marker chunk in processStreamDelta for empty content scenarios
- propagate lastFinishReason through EOF handler in processStream
- strengthen PureAgent system prompt with MCP tool guidelines and
  graceful fallback instructions for unanswerable questions
- add unit tests for empty response bug and finish_reason propagation
2026-03-27 14:56:12 +08:00
..
agent_system_prompt.yaml fix(agent): prevent empty response when no Knowledge Base is configured 2026-03-27 14:56:12 +08:00
context_template.yaml feat(prompt): enhance context and intent classification in templates 2026-03-26 18:57:12 +08:00
fallback.yaml feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
generate_questions.yaml feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
generate_session_title.yaml fix: update session title word count requirement 2026-03-17 22:23:24 +08:00
generate_summary.yaml feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
graph_extraction.yaml feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
intent_prompts.yaml feat(prompts): update assistant descriptions and add intent-specific templates 2026-03-25 22:08:29 +08:00
keywords_extraction.yaml feat: enhance localization and configuration support 2026-03-17 22:23:24 +08:00
rewrite.yaml feat(prompt): enhance context and intent classification in templates 2026-03-26 18:57:12 +08:00
system_prompt.yaml refactor(prompt): streamline context handling in templates 2026-03-25 22:08:29 +08:00