Commit Graph

67 Commits

Author SHA1 Message Date
mlogclub 28913ad440 feat: add answerability runtime trace fields 2026-05-02 13:51:26 +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 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 9a677a6265 refactor(instruction): remove project instruction handling and related tests 2026-04-18 10:54:36 +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 ef73cf7e61 fix: guard runtime answers with knowledge retrieval 2026-04-15 14:57:14 +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 13903baf61 feat: add structured types for graph tool outcomes and enhance candidate extraction logic 2026-04-14 11:15:07 +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
mlogclub 7bdd462ed5 feat: refactor agent factory to use AgentHandlerService and add buildInstructionTraceSummary helper 2026-04-14 10:43:26 +08:00
mlogclub 5ebdf1cc8e feat: implement SkillMiddlewareService and helper functions for skill handling 2026-04-14 10:41:16 +08:00
mlogclub d0e2efab65 feat: remove unused buildInstructionAppendices function from tool_helpers 2026-04-14 10:40:56 +08:00
mlogclub 519d5fe1e1 feat: introduce InstructionService for improved instruction assembly and refactor AgentFactory 2026-04-14 10:24:35 +08:00
mlogclub 1683ed6ed5 feat: add governance and skill instruction providers, update instruction assembly logic 2026-04-14 10:24:13 +08:00
mlogclub bea080d23c feat: enhance ProjectInstructionProvider to read from AGENTS.md and update default instruction logic 2026-04-14 10:05:31 +08:00
mlogclub 65e65bd137 feat: add ProjectInstructionProvider and ToolAppendixProvider for enhanced instruction handling 2026-04-14 10:03:52 +08:00
mlogclub ceb5df87fd feat: implement ResolveToolMetadata function and update tool metadata resolution across the codebase 2026-04-14 09:51:03 +08:00
mlogclub d87253dddd feat: refactor agent factory and introduce helper functions for tool metadata and instruction assembly 2026-04-14 09:47:42 +08:00
mlogclub 164121836d Refactor runtime executor integration and introduce eino package
- Replaced the existing runtime executor with a new eino package for better modularity.
- Updated Service struct to use the new RuntimeExecutor from eino.
- Adjusted Run and Resume methods to accommodate changes in input types and execution logic.
- Introduced new types in the eino package to align with the previous executor's functionality.
- Refactored tooling preparation logic to streamline tool definitions and improve clarity.
- Added new context builders and event consumers to enhance runtime event handling.
- Removed legacy executor code and ensured all references are updated to the new eino package.
2026-04-14 09:33:49 +08:00
mlogclub 6fa2a465ed feat: implement tooling preparation and context building for enhanced execution flow 2026-04-13 19:42:32 +08:00
mlogclub f66b337016 feat: add StaticToolMetadata to ToolSet and update related logic for improved tool metadata handling 2026-04-13 19:23:53 +08:00
mlogclub e5448e00b3 Refactor execution logic into a new executor package
- Moved execution-related logic from the engine service to a new executor service.
- Created types for RunInput, ResumeInput, RunResult, and InterruptContextSummary in the executor package.
- Updated the engine service to utilize the new executor service for executing runs and resumes.
- Removed redundant code and improved organization by separating concerns between engine and executor.
2026-04-13 18:49:05 +08:00
mlogclub 93cda6ae82 feat: implement runtime reply service and refactor related components 2026-04-12 23:37:52 +08:00
mlogclub 6499126f40 feat: refactor tool metadata handling and simplify allowed tool code checks 2026-04-12 23:15:27 +08:00
mlogclub c5941e91e0 feat: enhance ToolSpec with Appendix field and refactor agent instruction assembly 2026-04-12 23:14:27 +08:00
mlogclub ef6815a3c6 feat: refactor tool metadata resolution to utilize ToolSpec and enhance tool catalog service 2026-04-12 22:30:00 +08:00
mlogclub 11252d31da feat: refactor tool definitions to use structured ToolSpec and update related references 2026-04-12 22:27:09 +08:00
mlogclub 37a713f3b8 feat: enhance graph tool handling by adding recommended action, risk level, and ticket draft readiness 2026-04-12 13:43:09 +08:00
mlogclub 89227c02c4 feat: add TriageServiceRequest tool and related graph for analyzing service requests and drafting tickets 2026-04-12 13:39:16 +08:00
mlogclub e42c77c8ae feat: add AnalyzeConversation tool and related graph for analyzing conversation risks and summaries 2026-04-12 13:36:01 +08:00
mlogclub a66b78eecc feat: add PrepareTicketDraft tool and related graph for drafting ticket information 2026-04-12 13:32:07 +08:00
mlogclub 5484384d89 feat: enhance tool result handling by adding reduction info parsing and updating trace item structure 2026-04-12 11:40:05 +08:00
mlogclub fb42101c10 feat: refactor tool result summary handling by introducing BuildReducedToolResultSummary and updating related methods 2026-04-12 11:36:36 +08:00
mlogclub 0db5f0d663 feat: enhance knowledge retrieval by adding MaxContextItems support and refactoring related methods 2026-04-12 11:02:08 +08:00
mlogclub 0b77d91dfe feat: enhance retriever trace summary by adding policies support and refactoring related methods 2026-04-12 10:59:59 +08:00
mlogclub 7f70614739 feat: enhance retriever summary handling by adding SetRetrieverSummary method and updating trace summary in knowledge retrieval 2026-04-12 10:49:43 +08:00
mlogclub 9ee3f3abbd feat: enhance knowledge retrieval by introducing RetrieveContextByOptions method and streamline context handling 2026-04-12 10:45:11 +08:00
mlogclub cf84693421 feat: refactor knowledge retrieval to introduce RetrieveContext method and streamline context handling 2026-04-12 10:34:24 +08:00
mlogclub 44b20813fe feat: rename AllowedToolCodes to ToolWhitelist across skill-related models and requests for consistency 2026-04-12 10:16:03 +08:00
mlogclub 560ebdbf13 feat: implement skill middleware and enhance tool handling for selected skills 2026-04-12 10:11:17 +08:00