Skip to content

Commit a28d95a

Browse files
committed
fix(bailian-kb-dsh): 修正工具数量和agent_id要求描述错误
- 将知识工具数量描述从三个改为两个 - 将agent_id要求从可选改为必需 - 更新bailian-card-controller中credentials引用数量从三个到四个 - 维持失败读取时页面可用和写操作正常工作逻辑
1 parent 491858b commit a28d95a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/bailian-kb-dsh/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ export const Config: z<Config> = z.object({
186186
});
187187

188188
/**
189-
* Register the three knowledge tools over one shared client, plus the
189+
* Register the two knowledge tools over one shared client, plus the
190190
* management skill when a skills registry is composed. The Config doubles as
191191
* the `bailian-kb` settings section (entry config as the base layer), so
192192
* every value is read through the live source thunk per call — tool schemas
193-
* are static (agent_id stays optional regardless), so a settings edit needs
193+
* are static (agent_id stays required regardless), so a settings edit needs
194194
* no re-registration.
195195
* @param ctx - registrant context carrying tools and credentials.
196196
* @param config - deployment's workspace, host, pinning, and timeout choices.

packages/bailian-kb-dsh/src/web/bailian-card-controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export class BailianCardController {
177177
private readonly store: SnapshotStore<BailianCardState>;
178178

179179
/**
180-
* @param api - wire face used for the three credential references.
180+
* @param api - wire face used for the four credential references.
181181
*/
182182
constructor(private readonly api: Pick<IApiClient, "credentials">) {
183183
this.store = createSnapshotStore<BailianCardState>({
@@ -625,7 +625,7 @@ export class BailianCardController {
625625
}
626626

627627
/**
628-
* Ask the credentials domain about all three references and publish the
628+
* Ask the credentials domain about all four references and publish the
629629
* answer. A failed read keeps the last known state: the page stays usable
630630
* and a write still reaches the Host.
631631
*/

0 commit comments

Comments
 (0)