Commit Graph

119 Commits

Author SHA1 Message Date
mlogclub 59b3509ca9 fix: prevent repeated off-hours handoff notices 2026-05-09 23:46:56 +08:00
mlogclub af8ec71bb8 fix: continue agent flow on knowledge retrieval errors 2026-05-09 23:38:42 +08:00
mlogclub bce4c18c10 refactor: use controlled RAG no-context policy 2026-05-09 23:33:35 +08:00
mlogclub 664e418115 refactor: implement off-hours handoff logic and enhance related tests 2026-05-08 23:26:25 +08:00
mlogclub 6f4c026320 refactor: enhance event consumption logic and add graph tool completion test 2026-05-08 23:13:32 +08:00
mlogclub f2a7eb3295 refactor(ticket): simplify ticket number generation and remove SQLite lock 2026-05-06 17:40:11 +08:00
mlogclub 2f33783f7e fix(ticket): change description wrapper from div to span in TicketDetailDialog 2026-05-06 17:40:10 +08:00
mlogclub 7f867e1699 refactor(ticket): remove obsolete ai ticket fields 2026-05-02 20:09:12 +08:00
mlogclub fce0b5709d refactor(ticket): contract backend ticket core 2026-05-02 18:49:10 +08:00
mlogclub 0609ad758c fix: remove redundant human support suggestion in fallback reply 2026-05-02 15:37:04 +08:00
mlogclub a8f032d332 fix: bypass answerability gate for runtime actions 2026-05-02 15:04:17 +08:00
mlogclub 3eff8b5c3a fix: simplify fallback reply handling in knowledge guard 2026-05-02 14:51:39 +08:00
mlogclub 2737f660f7 fix: close answerability gate review gaps 2026-05-02 14:40:16 +08:00
mlogclub 8f968fe3ca feat: wire answerability gate into ai runtime 2026-05-02 14:21:49 +08:00
mlogclub 0230e05dce fix: harden rag answerability gate 2026-05-02 14:14:31 +08:00
mlogclub 9e30167eaf feat: implement rag answerability gate graph 2026-05-02 14:06:23 +08:00
mlogclub 269042b9d4 feat: add rag answerability gate types 2026-05-02 13:56:01 +08:00
mlogclub 28913ad440 feat: add answerability runtime trace fields 2026-05-02 13:51:26 +08:00
mlogclub a959477617 fix(knowledge-guard): enhance fallback logic for knowledge retrieval and add tests 2026-05-02 13:38:44 +08:00
mlogclub 3a9bc4914a refactor: remove Subject field from Conversation model and related logic, replace with CustomerName 2026-04-27 19:22:40 +08:00
mlogclub 700ec2a38b refactor(runtime): remove nil checks for receiver in RuntimeTraceCollector methods
refactor(factory): enforce skill middleware requirement in NewAgentHandlerService
refactor(reply_interrupt): improve error handling for pending interrupts
2026-04-19 11:40:17 +08:00
mlogclub 3e98e9379c refactor(runtime): update function signatures to use value receivers for models 2026-04-19 11:38:05 +08:00
mlogclub 680793f527 refactor(runtime): streamline request handling and improve tool preparation methods 2026-04-19 11:19:51 +08:00
mlogclub 92712d882a feat(tool-filter): implement runtime tool filtering middleware and associated tests 2026-04-19 10:28:18 +08:00
mlogclub 42077c1aab Refactor skill handling and improve runtime trace capabilities
- Removed the selectSkill method from prepareService and adjusted related logic in the Run method of Service.
- Updated tool catalog to parse agent allowed tool codes directly.
- Simplified Request and RunInput structures by removing unnecessary fields.
- Enhanced the RuntimeTraceCollector to manage skill activation and visibility.
- Introduced a new databaseSkillBackend to manage skill definitions and their metadata.
- Added tests for skill backend functionalities to ensure correct behavior.
- Updated various factory methods to accommodate changes in skill handling.
- Improved documentation and descriptions for better clarity.
2026-04-19 09:57:34 +08:00
mlogclub ad83d1dfda feat(utils): add BuildRuntimeMessageText function for message formatting 2026-04-18 22:24:30 +08:00
mlogclub c84870b968 feat: add fallback mode for AI agents and update knowledge base handling
- Introduced AIAgentFallbackMode with options for NoAnswer and SuggestRetry.
- Updated AI agent edit component to include fallback mode selection.
- Modified API types and payloads to accommodate fallback mode.
- Removed deprecated KnowledgeFallbackMode and related logic from knowledge base.
- Adjusted knowledge retrieval and response handling to utilize new fallback logic.
- Updated tests to reflect changes in fallback mode handling for AI agents.
2026-04-18 13:36:44 +08:00
mlogclub f166caa11c refactor(instruction): remove governance instruction handling and update related tests 2026-04-18 11:25:48 +08:00
mlogclub 9756780aec refactor(instruction): simplify NewService initialization and update import paths 2026-04-18 11:09:05 +08:00
mlogclub 023ec7373b refactor(instruction): remove default governance instruction and update related tests 2026-04-18 11:05:41 +08:00
mlogclub 9a677a6265 refactor(instruction): remove project instruction handling and related tests 2026-04-18 10:54:36 +08:00
mlogclub 19848d031b refactor(skills): update routeSkillWithLLM to use RuntimeContext and streamline user message handling 2026-04-17 18:57:34 +08:00
mlogclub 51884f1bdf refactor: change pointer receivers to value types for Conversation and UserMessage in various structs and functions 2026-04-17 18:48:45 +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 a601fa707f feat(instruction): enhance default governance instruction with additional rules and tests 2026-04-17 17:11:26 +08:00
mlogclub ef73cf7e61 fix: guard runtime answers with knowledge retrieval 2026-04-15 14:57:14 +08:00
mlogclub 3cdd31786a feat: enhance event consumption logic and add success reply handling 2026-04-14 19:05:05 +08:00
mlogclub 1766eadcf1 feat: implement buildResumeTargets function and update resume handling logic 2026-04-14 18:27:45 +08:00
mlogclub 8d560bb6bd feat: introduce ToolSourceType enum and refactor related code to use it 2026-04-14 15:05:38 +08:00
mlogclub 0ea493e536 feat: add test to ensure BuildMCPTools skips graph and builtin tools 2026-04-14 14:59:44 +08:00
mlogclub fcb2e11998 feat: refactor runtime to use application runtime executor and update related types 2026-04-14 12:13:33 +08:00
mlogclub 03fc405e4e feat: implement instruction assembly and project instruction providers with tests 2026-04-14 12:00:03 +08:00
mlogclub 9c7d70741a feat: refactor MCP tool definitions to use a new tooling package and update related references 2026-04-14 11:55:32 +08:00
mlogclub 2cb4866fce feat: update ResumeData type from map[string]any to map[string]string for consistency 2026-04-14 11:47:13 +08:00
mlogclub 48ad418f06 feat: enhance handoff reason extraction and improve trace data handling in run log service 2026-04-14 11:45:55 +08:00
mlogclub 13903baf61 feat: add structured types for graph tool outcomes and enhance candidate extraction logic 2026-04-14 11:15:07 +08:00
mlogclub 974f8a788b feat: remove unused helper functions for string and int64 value extraction 2026-04-14 11:13:19 +08:00
mlogclub a5b0ddc760 feat: refactor HandoffGraph to use structured arguments and add unit tests for buildReason method 2026-04-14 11:08:02 +08:00
mlogclub 2211f29da7 feat: remove deprecated service and types, and refactor tool search request handling 2026-04-14 11:07:26 +08:00
mlogclub c12e75b6a1 feat: add unit tests for AgentHandlerService and buildInstructionTraceSummary 2026-04-14 10:51:10 +08:00