- 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 |
||
|---|---|---|
| .. | ||
| agent | ||
| application | ||
| common | ||
| config | ||
| container | ||
| database | ||
| errors | ||
| event | ||
| handler | ||
| im | ||
| infrastructure | ||
| logger | ||
| mcp | ||
| middleware | ||
| models | ||
| router | ||
| runtime | ||
| sandbox | ||
| searchutil | ||
| stream | ||
| tracing | ||
| types | ||
| utils | ||