yao/agent/assistant
Max 55c8635c2a Enhance chat buffer and streaming message handling
- Updated the `ChatBuffer` to support streaming messages, allowing for content to be appended and finalized with `SendStream` and `End` methods.
- Modified the `AddAssistantMessage` method to include a message ID, improving message tracking and retrieval.
- Implemented new methods for appending content to streaming messages and completing them, ensuring accurate message storage and event handling.
- Revised tests to validate the new streaming functionality and ensure proper integration with existing message handling processes.
- Updated `CHAT_STORAGE_DESIGN.md` to reflect changes in message storage and indexing, including unique constraints for message IDs within requests.
2025-12-09 18:08:12 +08:00
..
handlers Enhance chat buffer and streaming message handling 2025-12-09 18:08:12 +08:00
hook Implement authorized script execution and enhance context handling 2025-12-08 11:42:01 +08:00
agent.go Implement chat buffer management and step tracking in Assistant 2025-12-09 12:10:11 +08:00
agent_interrupt_test.go Refactor Assistant context handling to improve options management 2025-12-04 10:43:32 +08:00
agent_next_test.go Refactor Assistant's Stream method to support Next hook responses 2025-11-29 22:52:06 +08:00
assistant.go Refactor Assistant script handling to use HookScript 2025-12-05 14:45:09 +08:00
build.go Enhance content processing with forceUses configuration 2025-12-06 17:38:21 +08:00
build_content.go Enhance content processing with forceUses configuration 2025-12-06 17:38:21 +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 Refactor Assistant script handling to use HookScript 2025-12-05 14:45:09 +08:00
build_test.go Refactor Assistant script handling to use HookScript 2025-12-05 14:45:09 +08:00
cache.go Refactor Assistant cache tests and enhance cache functionality 2025-12-05 19:49:44 +08:00
cache_test.go Refactor Assistant cache tests and enhance cache functionality 2025-12-05 19:49:44 +08:00
chat.go Implement connector management in chat system 2025-12-09 17:01:03 +08:00
chat_test.go Enhance chat buffer and streaming message handling 2025-12-09 18:08:12 +08:00
llm.go Enhance Assistant methods with options parameter for improved context management 2025-12-04 12:03:00 +08:00
load.go Implement Knowledge Base configuration loading and enhance Assistant initialization 2025-12-08 17:08:32 +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 Refactor Assistant script handling to use HookScript 2025-12-05 14:45:09 +08:00
load_test.go Refactor Assistant script handling to use HookScript 2025-12-05 14:45:09 +08:00
mcp.go Implement context passing for MCP tool calls 2025-12-05 20:09:38 +08:00
mcp_test.go Enhance context handling in MCP tests and JS API 2025-12-05 20:20:21 +08:00
next.go Refactor Assistant context handling to improve options management 2025-12-04 10:43:32 +08:00
permission.go Enhance Assistant stream functionality and remove history handling 2025-12-08 10:28:26 +08:00
scripts.go Implement authorized script execution and enhance context handling 2025-12-08 11:42:01 +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
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 Refactor Assistant script loading and management 2025-12-05 18:10:07 +08:00
utils.go Refactor assistant handling and storage integration 2025-11-07 11:20:59 +08:00