WeKnora/internal
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
..
agent feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
application feat(image): enhance image resolution handling for data URIs and remote images 2026-03-25 22:08:29 +08:00
common feat: add organization management features 2026-02-09 11:40:25 +08:00
config feat(agent): implement LLM call timeout and transient error handling 2026-03-25 22:08:29 +08:00
container feat(im): add AI card streaming for DingTalk and improve IM platform robustness 2026-03-24 22:12:08 +08:00
database feat: enhance system information display with database version 2026-03-02 21:21:49 +08:00
errors feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
event refactor(agent): remove query display from DatabaseQuery component and update tool result structure 2026-03-25 22:08:29 +08:00
handler feat(im): add DingTalk platform integration 2026-03-24 22:12:08 +08:00
im feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
infrastructure feat(image): enhance image resolution handling for data URIs and remote images 2026-03-25 22:08:29 +08:00
logger chore: update fallback templates 2026-03-17 22:23:24 +08:00
mcp fix: MCP Client connection state not marked as closed after connection loss in SSE transport type 2026-02-02 10:42:19 +08:00
middleware refactor: update session title generation and language context handling 2026-03-17 22:23:24 +08:00
models feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
router feat(knowledge): offload manual processing to async tasks 2026-03-18 21:56:34 +08:00
runtime init commit 2025-08-05 15:08:07 +08:00
sandbox feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
searchutil feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing init commit 2025-08-05 15:08:07 +08:00
types feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
utils refactor(agent): remove query display from DatabaseQuery component and update tool result structure 2026-03-25 22:08:29 +08:00