WeKnora/internal/agent
wizardchen 0429776e9f feat: Enhance knowledge base retrieval and runtime context handling
- Improved the `getKbIdForWiki` function to better handle multiple knowledge bases associated with a single slug, ensuring the most recent tool call's mapping is prioritized.
- Updated the `buildRuntimeContextBlock` function to include active knowledge bases and pinned documents, providing a clearer context for multi-turn interactions and preventing prompt injection.
- Added `registerLinkedSlugs` function to track outbound and inbound links for wiki pages, facilitating better resolution of slugs in the frontend without additional requests.

These enhancements significantly improve the accuracy and safety of knowledge base retrieval and context management in the agent system.
2026-04-22 21:18:11 +08:00
..
memory feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
skills feat: adapt preloaded skills to smart-reasoning agent 2026-02-04 20:08:49 +08:00
token feat(agent): enhance message consolidation and context management 2026-03-25 22:08:29 +08:00
tools feat: Enhance knowledge base retrieval and runtime context handling 2026-04-22 21:18:11 +08:00
act.go feat: support parallel tool calling 2026-03-30 10:41:08 +08:00
const.go feat: Implement wiki_config updates in knowledge base management 2026-04-22 21:17:21 +08:00
engine.go feat: Implement wiki_config updates in knowledge base management 2026-04-22 21:17:21 +08:00
engine_image_test.go feat: auto-describe MCP tool result images via VLM 2026-03-25 21:38:15 +08:00
engine_test.go fix(agent): prevent empty response when no Knowledge Base is configured 2026-03-27 14:56:12 +08:00
finalize.go feat(agent): enhance token management and context handling in AgentEngine 2026-03-25 22:08:29 +08:00
observe.go feat: Enhance knowledge base retrieval and runtime context handling 2026-04-22 21:18:11 +08:00
prompts.go feat(output): enhance output formatting to XML for various tools 2026-04-17 12:11:03 +08:00
prompts_wiki.go feat: Enhance wiki content processing with enriched image information and XML output 2026-04-22 21:18:09 +08:00
think.go fix(agent): prevent empty response when no Knowledge Base is configured 2026-03-27 14:56:12 +08:00