We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b838b53 commit e36b7f0Copy full SHA for e36b7f0
1 file changed
packages/ai-native/src/common/utils.ts
@@ -51,7 +51,8 @@ export const extractCodeBlocks = (content: string): string => {
51
return newContents.join('\n');
52
};
53
54
-export const getToolName = (toolName: string, serverName = BUILTIN_MCP_SERVER_NAME) => `mcp_${serverName}_${toolName}`;
+export const getToolName = (toolName: string, serverName: string) =>
55
+ serverName === BUILTIN_MCP_SERVER_NAME ? toolName : `mcp_${serverName}_${toolName}`;
56
57
export const cleanAttachedTextWrapper = (text: string) => {
58
const rgAttachedFile = /`<attached_file>(.*)`/g;
0 commit comments