Commit Graph

8 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 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 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 efe801b8bf Init 2026-04-09 10:01:23 +08:00