yao/agent/assistant
Max 31ce461162 Refactor Assistant Stream and Content Handling for Improved Context Management
- Updated the Stream method to include options for handling message history and context more effectively, ensuring original messages are preserved for autoSearch and delegation.
- Introduced a new buildContextMessage function to consolidate conversation context, filtering out system messages and limiting to the last five user messages for efficiency.
- Enhanced content processing by adding a convertToContentParts function to handle different content formats, improving compatibility with historical data.
- Improved logging and error handling in the executeLLMStream method to ensure clarity in LLM request tracing and response handling.
- Added new utility functions for extracting text content and building context messages, enhancing overall code clarity and maintainability.
2025-12-27 19:36:31 +08:00
..
handlers Enhance chat buffer and streaming message handling 2025-12-09 18:08:12 +08:00
hook Update Memory Leak Test Thresholds to 20KB 2025-12-22 11:42:08 +08:00
agent.go Refactor Assistant Stream and Content Handling for Improved Context Management 2025-12-27 19:36:31 +08:00
agent_interrupt_test.go Enhance assistant initialization and context management 2025-12-11 15:17:17 +08:00
agent_next_test.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
assistant.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
build.go Implement search configuration management and testing enhancements 2025-12-13 11:19:20 +08:00
build_content.go Refactor Assistant Stream and Content Handling for Improved Context Management 2025-12-27 19:36:31 +08:00
build_mcp_test.go Refactor Assistant script handling to use HookScript 2025-12-05 14:45:09 +08:00
build_prompts_test.go Enhance assistant initialization and context management 2025-12-11 15:17:17 +08:00
build_test.go Enhance assistant initialization and context management 2025-12-11 15:17:17 +08:00
cache.go Enhance Assistant Search Functionality and Cache Management 2025-12-16 16:44:35 +08:00
cache_test.go Refactor Assistant cache tests and enhance cache functionality 2025-12-05 19:49:44 +08:00
chat.go Enhance User Input Buffering Logic for Delegated Agents 2025-12-27 17:32:00 +08:00
chat_test.go Refactor Context Management to Use Memory Instead of Space 2025-12-22 11:19:00 +08:00
history.go Enhance assistant initialization and context management 2025-12-11 15:17:17 +08:00
history_test.go Refactor history loading tests and context management 2025-12-11 15:32:06 +08:00
llm.go Refactor Assistant Stream and Content Handling for Improved Context Management 2025-12-27 19:36:31 +08:00
load.go Update Assistant Package Descriptions and Configuration 2025-12-16 17:41:30 +08:00
load_merge_test.go Implement search configuration management and testing enhancements 2025-12-13 11:19:20 +08:00
load_process_test.go Refactor Assistant cache tests and enhance cache functionality 2025-12-05 19:49:44 +08:00
load_store_test.go Implement search configuration management and testing enhancements 2025-12-13 11:19:20 +08:00
load_system.go Enhance Assistant Search Functionality and Cache Management 2025-12-16 16:44:35 +08:00
load_test.go Update Test Assertions for System Agents Naming Consistency 2025-12-16 17:59:38 +08:00
mcp.go Enhance assistant initialization and context management 2025-12-11 15:17:17 +08:00
mcp_test.go Enhance context handling in MCP tests and JS API 2025-12-05 20:20:21 +08:00
next.go Enhance User Input Buffering Logic for Delegated Agents 2025-12-27 17:32:00 +08:00
permission.go Enhance Assistant stream functionality and remove history handling 2025-12-08 10:28:26 +08:00
scripts.go Implement Script Testing Framework and Enhance Test Context Management 2025-12-21 10:44:59 +08:00
scripts_process_test.go Refactor Assistant cache tests and enhance cache functionality 2025-12-05 19:49:44 +08:00
scripts_test.go Implement authorized script execution and enhance context handling 2025-12-08 11:42:01 +08:00
search.go Refactor Assistant Stream and Content Handling for Improved Context Management 2025-12-27 19:36:31 +08:00
search_auth_db.go Refactor Authorization Functions and Update Tests 2025-12-20 15:02:01 +08:00
search_auth_integration_test.go Refactor Context Management to Use Memory Instead of Space 2025-12-22 11:19:00 +08:00
search_auth_kb.go Refactor Authorization Functions and Update Tests 2025-12-20 15:02:01 +08:00
search_auto_disabled_test.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
search_auto_full_test.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
search_auto_hook_disable_test.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
search_auto_keyword_test.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
search_auto_web_test.go Refactor Agent Response Handling to Use Structured Response Types 2025-12-18 17:32:49 +08:00
source.go Add GetStorage function and enhance loadSource logic 2025-12-02 16:54:57 +08:00
trace.go Refactor model capabilities to use OpenAI struct 2025-12-02 11:33:09 +08:00
types.go Enhance Search Functionality with Keyword Extraction and Intent Detection 2025-12-18 20:16:56 +08:00
utils.go Refactor assistant handling and storage integration 2025-11-07 11:20:59 +08:00