Commit Graph

633 Commits

Author SHA1 Message Date
17e22ec4ef Enhance context handling by ensuring external context is appended to the last user message if not automatically applied during row processing. 2026-06-15 22:35:57 +02:00
a111624c36 Improve context block merging logic in WorkflowRuntime and synchronize session memory after execution 2026-06-15 22:35:25 +02:00
767b45d334 Pass dynamic memory blocks to workflow run payload and sync chat memory upon regeneration 2026-06-15 22:35:25 +02:00
c0904d78f6 Integrate explicit chat memory context into workflow run selection 2026-06-15 22:34:45 +02:00
3294de9471 Sync and clean up chat memory across session management functions 2026-06-15 22:34:45 +02:00
d0c69a4f96 Feat: Integrate persistent chat memory and enhance context management
Adds helper functions to retrieve historical chat memory context (`_chat_memory_context`) and merge enriched messages. Updates both the main chat endpoint and regeneration logic to utilize this context, ensuring conversation continuity and reliable source deduplication.
2026-06-15 22:34:05 +02:00
031588198d feat: Integrate chat memory schema setup and backfill on startup 2026-06-15 22:33:41 +02:00
d9e963ef74 auto-git:
[change] backend/chat_memory.py
2026-06-15 22:33:41 +02:00
d3e7ec56ee auto-git:
[add] backend/chat_memory.py
2026-06-15 22:33:41 +02:00
8616c077cc Improve line sampling deduplication and add robust tests for message digest and prompt construction in router logic 2026-06-15 22:05:23 +02:00
13cfd7518b Implement structured message digestion and attachment summarizing for improved long-context routing. 2026-06-15 22:05:03 +02:00
ec28cc9bff Update get_workflow_events call with specific parameters in tests 2026-06-15 21:54:25 +02:00
63d0937754 Add unit test for interrupted workflow event stream API endpoint 2026-06-15 21:52:57 +02:00
1f482810fb Handle run interruption state and errors across components 2026-06-15 21:52:57 +02:00
117a16aca5 Add explicit 'run_interrupted' event when streaming workflow events 2026-06-15 21:52:29 +02:00
d415dd7ead Test: Validate research evaluator follow-up query constraints 2026-06-15 21:49:59 +02:00
00fe48f04d Enhance evidence evaluation node with stricter guidelines and richer context 2026-06-15 21:48:44 +02:00
7916fbf242 Add test case to ensure limit node preserves sources from merged context 2026-06-15 21:48:25 +02:00
fafd358890 Clean up workflow runtime result by removing 'items' field 2026-06-15 21:48:25 +02:00
58cdc17341 Update tests to reflect refined built-in workflow routing logic 2026-06-15 21:39:32 +02:00
1609e39840 Refine routing descriptions for web-answer and research workflows 2026-06-15 21:39:32 +02:00
a66db9fe71 Refine agent routing instructions to distinguish between web-answer and research workflows 2026-06-15 21:39:02 +02:00
8d53590e95 Add unit tests for chat history cleanup logic 2026-06-15 21:39:02 +02:00
0e65dd3bd6 Update workflow router built-in test assertions for improved coverage of routing logic 2026-06-15 21:37:44 +02:00
c8930fdb70 Refine title generation prompt to enforce stricter constraints and extract concrete subject 2026-06-15 21:37:44 +02:00
bb08eb4a93 Refactor chat handler to drop superseded trailing user messages from history 2026-06-15 21:37:10 +02:00
e2d86ff96a Enhance workflow name detection by checking multiple event payload fields 2026-06-15 21:36:52 +02:00
564623fa91 Refine agent workflow definitions by updating routing descriptions for clarity and better differentiation between core capabilities (chat, RAG, web, research). 2026-06-15 21:36:41 +02:00
3ed74e7e8a Refactor router prompts and update workflow choice display format 2026-06-15 21:36:24 +02:00
36cd49d956 Refine usage guidelines and descriptions for core agent workflows 2026-06-15 21:35:39 +02:00
57ce5a4d1e Refactor router inputs: Remove complex keyword detection for 'fresh info' and simplify forced web manifest selection. 2026-06-15 21:35:27 +02:00
fb944223e9 Enhance router intelligence to detect requests for fresh information (weather, news) and improve web search forcing logic. 2026-06-15 21:34:50 +02:00
e35a29baef Enhance tests for workflow router builtins by validating specific instructional text in the generated prompt and removing cost assertions. 2026-06-15 21:28:38 +02:00
d8c6dc06c6 Update built-in workflow descriptions to clarify usage boundaries (Input->Output, Web Answer, Research) 2026-06-15 21:26:50 +02:00
631d632911 Refine router prompt rules and remove cost display from workflow choices 2026-06-15 21:26:50 +02:00
7e53c27115 Refactor workflow selection logic and abstract prompt generation; adds comprehensive test for follow-up context. 2026-06-15 21:23:34 +02:00
8d70f37d16 Enhance workflow routing logic by improving prompt structure and adding helpers for formatting conversation history and available workflows. 2026-06-15 21:23:22 +02:00
2c5f4f71a3 Feature: Force web answer selection if web search is enabled and primary workflow choice is weak 2026-06-15 21:06:44 +02:00
b3e1130f97 Update workflow run test case to pass None for session ID 2026-06-15 21:06:28 +02:00
8ced33552e Use direct workflow ID when testing workflow runs 2026-06-15 21:05:01 +02:00
32e9e4478e Update test URL in web tool tests 2026-06-15 21:05:01 +02:00
077bf71aa8 Refine query cleaning logic for web tools 2026-06-15 21:05:01 +02:00
d9d696c22c Add web search queries to reference fields 2026-06-15 21:05:01 +02:00
93387e6cec Test: Ensure automatic workflow runs persist router-supplied web search inputs 2026-06-15 21:04:11 +02:00
b3a33a9fb1 Improve assertions and mock checks in workflow router tests 2026-06-15 21:03:55 +02:00
3e0b285764 Refactor web tool unit tests to update query generation and search assertions 2026-06-15 21:03:28 +02:00
d6b8ee71f6 Refactor built-in workflows to use direct web search inputs instead of dedicated query generation nodes 2026-06-15 21:03:05 +02:00
8787c2cf65 Enhance workflow run input handling by merging router results and supporting web search parameters 2026-06-15 21:03:05 +02:00
4da9b7faef Add utilities to clean and resolve multiple web search queries from input samples 2026-06-15 21:02:25 +02:00
5857c0f60c Refine fast path logic in router by enabling early exit for web search and cleaning up text processing 2026-06-15 21:02:25 +02:00