Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix: inject skill instruction into tool system role (#14342)

LiJian5fc7eea7541f
diff --git a/package.json b/package.json
index 954531b7fec..808028bc481 100644
--- a/package.json
+++ b/package.json
@@ -275,7 +275,7 @@
"@lobehub/desktop-ipc-typings": "workspace:*",
"@lobehub/editor": "^4.9.3",
"@lobehub/icons": "^5.0.0",
- "@lobehub/market-sdk": "0.32.2",
+ "@lobehub/market-sdk": "0.33.3",
"@lobehub/tts": "^5.1.2",
"@lobehub/ui": "^5.9.6",
"@modelcontextprotocol/sdk": "^1.26.0",
diff --git a/packages/types/package.json b/packages/types/package.json
index 5ecf9d39569..b8d2cd75935 100644
--- a/packages/types/package.json
+++ b/packages/types/package.json
@@ -7,7 +7,7 @@
"dependencies": {
"@lobechat/python-interpreter": "workspace:*",
"@lobechat/web-crawler": "workspace:*",
- "@lobehub/market-sdk": "0.32.2",
+ "@lobehub/market-sdk": "0.33.3",
"@lobehub/market-types": "^1.12.3",
"model-bank": "workspace:*",
"type-fest": "^4.41.0",
diff --git a/src/server/services/market/index.ts b/src/server/services/market/index.ts
index 73d5c729a29..516e618cef1 100644
--- a/src/server/services/market/index.ts
+++ b/src/server/services/market/index.ts
@@ -547,7 +547,7 @@ export class MarketService {
};
const providerLabel = PROVIDER_LABELS[providerId] || providerId;
- const { tools } = await this.market.skills.listTools(providerId);
+ const { tools, instruction } = await this.market.skills.listTools(providerId);
if (!tools || tools.length === 0) continue;
const manifest: LobeToolManifest = {
@@ -563,6 +563,7 @@ export class MarketService {
tags: ['lobehub-skill', providerId],
title: providerLabel,
},
+ systemRole: instruction || undefined,
type: 'builtin',
};