Commit Graph

15 Commits

Author SHA1 Message Date
mlogclub 19848d031b refactor(skills): update routeSkillWithLLM to use RuntimeContext and streamline user message handling 2026-04-17 18:57:34 +08:00
mlogclub 976b9defde Refactor AI Agent and AI Config handling across multiple files
- Updated function signatures to accept AI Agent and AI Config as non-pointer types for better clarity and safety.
- Modified instances where AI Agent and AI Config were dereferenced to improve code readability.
- Removed unnecessary nil checks for AI Agent and AI Config, simplifying the logic.
- Adjusted related tests and services to align with the new function signatures.
- Cleaned up code in runtime, skills, and executor packages to ensure consistency in handling AI configurations.
2026-04-17 17:57:01 +08:00
mlogclub 3b062c327c feat(skill): refactor RuntimeContext to use AIAgent and AIConfig directly, removing contextLoader 2026-04-17 17:37:36 +08:00
mlogclub 81056a61a1 feat(skill): optimize loadCandidateSkills to use batch retrieval for skill definitions 2026-04-17 17:27:33 +08:00
mlogclub c396a4a5e3 feat(skill): refactor candidateLoader and update loadCandidateSkills to use getSkillByID 2026-04-17 17:23:29 +08:00
mlogclub 4b7c345d75 feat: refactor candidate loader to encapsulate skill definition retrieval and loading logic 2026-04-13 19:45:52 +08:00
mlogclub 1f0406ec91 feat: implement context loader for AI agent and refactor plan service to utilize it 2026-04-13 19:45:09 +08:00
mlogclub 102271ac84 feat: introduce prepare and plan services for improved skill execution handling 2026-04-13 19:15:12 +08:00
mlogclub 5c944a28c2 feat: refactor logging and execution plan handling, introducing RunLogService for improved structure 2026-04-13 17:27:32 +08:00
mlogclub 03021d5f69 feat: refactor skill matching and execution services, introducing RuntimeService for improved structure 2026-04-13 17:23:05 +08:00
mlogclub 3c0abaaedc Refactor AI skill routing and introduce reply handling services
- Moved the skill routing logic from matcher.go to a new router.go file for better organization.
- Implemented replyCommitService to handle sending AI replies and managing reply rounds.
- Added replyInterruptService to manage conversation interrupts and resume handling.
- Created replyRunLogService to log AI reply actions and their outcomes.
- Introduced helper functions for building conversation interrupts and resolving prompts.
- Added unit tests for the new services and functions to ensure correctness.
- Removed unused code and optimized imports in matcher.go.
2026-04-13 17:17:13 +08:00
mlogclub 03c1131006 Enhance skill debugging and response structure by adding skill name and allowed tool codes, and refactor related data handling 2026-04-09 13:38:34 +08:00
mlogclub 28d18ab6c0 Implement skill debugging functionality and refactor skill execution flow 2026-04-09 11:58:04 +08:00
mlogclub eb9cd78646 Refactor skill execution and definition handling to support content-based execution and enhance skill definition structure 2026-04-09 11:42:40 +08:00
mlogclub efe801b8bf Init 2026-04-09 10:01:23 +08:00