WeKnora/internal/agent/tools
wizardchen 2f7e3a8ac1 feat(agent): enhance tool execution and message sanitization
- Introduced a default timeout for tool execution to prevent indefinite hangs during long-running tasks.
- Implemented context cancellation handling in the execution loop to gracefully manage timeouts and user cancellations.
- Added a JSON repair utility to fix common malformations in tool arguments, improving robustness in argument parsing.
- Enhanced message sanitization to merge consecutive user messages and handle orphaned tool results, ensuring compatibility with LLM providers.
- Added unit tests for the new JSON repair and message sanitization functionalities to validate their effectiveness.
2026-03-25 22:08:29 +08:00
..
data_analysis.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
data_schema.go feat: add organization management features 2026-02-09 11:40:25 +08:00
database_query.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
definitions.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
final_answer.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
get_document_info.go refactor(agent): streamline document info retrieval and enhance chunk search logic 2026-03-19 18:20:09 +08:00
grep_chunks.go refactor(agent): streamline document info retrieval and enhance chunk search logic 2026-03-19 18:20:09 +08:00
json_repair.go feat(agent): enhance tool execution and message sanitization 2026-03-25 22:08:29 +08:00
json_repair_test.go feat(agent): enhance tool execution and message sanitization 2026-03-25 22:08:29 +08:00
knowledge_search.go feat: enhance knowledge search by resolving embedding model keys 2026-03-13 20:54:25 +08:00
list_knowledge_chunks.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
mcp_tool.go feat: auto-describe MCP tool result images via VLM 2026-03-25 21:38:15 +08:00
mcp_tool_image_test.go feat: auto-describe MCP tool result images via VLM 2026-03-25 21:38:15 +08:00
normalize_id.go feat(agent): enhance tool execution and message sanitization 2026-03-25 22:08:29 +08:00
normalize_id_test.go feat(agent): enhance tool execution and message sanitization 2026-03-25 22:08:29 +08:00
param_cast.go feat(agent): implement LLM call timeout and transient error handling 2026-03-25 22:08:29 +08:00
param_cast_test.go feat(agent): implement LLM call timeout and transient error handling 2026-03-25 22:08:29 +08:00
param_validate.go feat(agent): implement memory consolidation and context management 2026-03-25 22:08:29 +08:00
param_validate_test.go feat(agent): implement memory consolidation and context management 2026-03-25 22:08:29 +08:00
query_knowledge_graph.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
registry.go feat(agent): implement memory consolidation and context management 2026-03-25 22:08:29 +08:00
sanitize_messages.go feat(agent): enhance tool execution and message sanitization 2026-03-25 22:08:29 +08:00
sanitize_messages_test.go feat(agent): enhance tool execution and message sanitization 2026-03-25 22:08:29 +08:00
sequentialthinking.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
skill_execute.go feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
skill_read.go feat: support agent skills 2026-02-04 20:08:49 +08:00
todo_write.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
tool.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
truncate.go feat(agent): implement memory consolidation and context management 2026-03-25 22:08:29 +08:00
truncate_test.go feat(agent): implement memory consolidation and context management 2026-03-25 22:08:29 +08:00
web_fetch.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
web_search.go feat: Add DataSchema tool for retrieving schema information from CSV and Excel files 2025-12-29 20:03:51 +08:00