WeKnora/internal/models/chat
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
..
chat.go feat(chat): add ParallelToolCalls option to ChatOptions and update related functionality 2026-03-25 22:08:29 +08:00
chat_provider_spec.go feat(chat): add Volcengine support and refactor thinking configuration 2026-03-25 22:08:29 +08:00
image_resolve.go feat: enhance multimodal support and image handling 2026-03-16 02:26:47 +08:00
json_field_extractor.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
json_field_extractor_test.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
ollama.go feat(prompt): enhance context and intent classification in templates 2026-03-26 18:57:12 +08:00
remote_api.go fix(agent): prevent empty response when no Knowledge Base is configured 2026-03-27 14:56:12 +08:00
remote_api_test.go feat(chat): add ParallelToolCalls option to ChatOptions and update related functionality 2026-03-25 22:08:29 +08:00
sse_reader.go feat: add thinking mode support for agents 2026-01-20 18:19:44 +08:00