feat: enhance AI agent functionality with tool management and logging improvements
- Added AllowedToolCodes field to Context for managing tool access. - Introduced ResumeSource in aiReplyTraceData to track resume points. - Enhanced logging with additional fields: PlannedSkillName, SkillRouteTrace, InterruptType, ResumeSource, and FinalStatus. - Implemented functions to parse and resolve allowed tool codes for agents and skills. - Refactored skill definition creation and update logic to streamline request handling. - Updated MCP tool catalog to include source type and integrated built-in tools. - Improved UI components to display additional tool information and enhance user experience.
This commit is contained in:
@@ -333,6 +333,7 @@ export type MCPToolCatalogItem = {
|
||||
toolCode: string
|
||||
serverCode: string
|
||||
toolName: string
|
||||
sourceType: string
|
||||
title: string
|
||||
description: string
|
||||
inputSchema: unknown
|
||||
@@ -362,9 +363,14 @@ export type AgentRunLog = {
|
||||
userMessage: string
|
||||
plannedAction: string
|
||||
plannedSkillCode: string
|
||||
plannedSkillName: string
|
||||
skillRouteTrace: string
|
||||
plannedToolCode: string
|
||||
planReason: string
|
||||
interruptType: string
|
||||
resumeSource: string
|
||||
finalAction: string
|
||||
finalStatus: string
|
||||
replyText: string
|
||||
errorMessage: string
|
||||
latencyMs: number
|
||||
|
||||
Reference in New Issue
Block a user