- Introduced new tests to ensure correct routing of reasoning and answer content during streaming, addressing UX issues where answers appeared under the Thinking phase before transitioning. - Implemented a ThinkStreamSplitter to separate inline reasoning from answer text, allowing for real-time updates to the UI without duplication. - Updated the event emission logic to prevent re-emission of answers that were already streamed live, ensuring a seamless user experience. - Enhanced the ChatResponse struct to include flags for streamed answers, improving the handling of final answer events. - Added comprehensive unit tests for the ThinkStreamSplitter to validate its functionality across various scenarios. |
||
|---|---|---|
| .. | ||
| approval | ||
| memory | ||
| skills | ||
| token | ||
| tools | ||
| act.go | ||
| const.go | ||
| engine.go | ||
| engine_image_test.go | ||
| engine_test.go | ||
| finalize.go | ||
| langfuse_test.go | ||
| observe.go | ||
| observe_test.go | ||
| prompts.go | ||
| prompts_wiki.go | ||
| prompts_wiki_test.go | ||
| think.go | ||