feat: introduce ToolSourceType enum and refactor related code to use it
This commit is contained in:
@@ -38,6 +38,7 @@ import {
|
||||
type CreateAIAgentPayload,
|
||||
type KnowledgeBase,
|
||||
type MCPToolCatalogItem,
|
||||
type MCPToolSourceType,
|
||||
type SkillDefinition,
|
||||
fetchAIAgent,
|
||||
fetchAIConfigsAll,
|
||||
@@ -63,7 +64,7 @@ type DirectToolOption = {
|
||||
value: string;
|
||||
label: string;
|
||||
meta: DirectToolItem;
|
||||
sourceType: string;
|
||||
sourceType: MCPToolSourceType;
|
||||
autoInjected: boolean;
|
||||
groupLabel: string;
|
||||
};
|
||||
|
||||
@@ -359,11 +359,13 @@ export type MCPToolInfo = {
|
||||
outputSchema?: unknown
|
||||
}
|
||||
|
||||
export type MCPToolSourceType = "mcp" | "graph" | "builtin"
|
||||
|
||||
export type MCPToolCatalogItem = {
|
||||
toolCode: string
|
||||
serverCode: string
|
||||
toolName: string
|
||||
sourceType: string
|
||||
sourceType: MCPToolSourceType
|
||||
autoInjected: boolean
|
||||
title: string
|
||||
description: string
|
||||
|
||||
Reference in New Issue
Block a user