WeKnora/internal/models/chat
wizardchen 0bb1a581de feat(agent): enhance token management and context handling in AgentEngine
- Added token usage tracking to the AgentEngine, allowing for better estimation of current context token counts.
- Implemented a new method to estimate current tokens based on previous usage and newly appended messages, improving context management.
- Updated context window management to utilize estimated token counts for more efficient message consolidation.
- Enhanced streaming methods to include token usage information, providing better insights into LLM interactions.
- Refactored the token estimator to support BPE tokenization, ensuring accurate token counts for messages.
- Added unit tests to validate new token estimation and context management functionalities.
2026-03-25 22:08:29 +08:00
..
chat.go feat(chat): introduce provider-specific request customizers and specs 2026-03-25 22:08:29 +08:00
chat_provider_spec.go feat(chat): introduce provider-specific request customizers and specs 2026-03-25 22:08:29 +08:00
image_resolve.go feat: enhance multimodal support and image handling 2026-03-16 02:26:47 +08:00
json_field_extractor.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
json_field_extractor_test.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
ollama.go feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
remote_api.go feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
remote_api_test.go refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability 2025-11-28 16:10:37 +08:00
sse_reader.go feat: add thinking mode support for agents 2026-01-20 18:19:44 +08:00