refactor(agents): hide client tool conflict prefix · openclaw/openclaw@b832dd2
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,6 @@ import type { AgentTool } from "openclaw/plugin-sdk/agent-core";
|
7 | 7 | import { Type } from "typebox"; |
8 | 8 | import { describe, expect, it, vi } from "vitest"; |
9 | 9 | import { |
10 | | -CLIENT_TOOL_NAME_CONFLICT_PREFIX, |
11 | 10 | createClientToolNameConflictError, |
12 | 11 | findClientToolNameConflicts, |
13 | 12 | isClientToolNameConflictError, |
@@ -19,6 +18,7 @@ import type { ClientToolDefinition } from "./embedded-agent-runner/run/params.js
|
19 | 18 | |
20 | 19 | type ToolExecute = ReturnType<typeof toToolDefinitions>[number]["execute"]; |
21 | 20 | const extensionContext = {} as Parameters<ToolExecute>[4]; |
| 21 | +const CLIENT_TOOL_NAME_CONFLICT_PREFIX = "client tool name conflict:"; |
22 | 22 | |
23 | 23 | async function executeThrowingTool(name: string, callId: string) { |
24 | 24 | const tool = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。