Skip to content

Commit b832dd2

Browse files
committed
refactor(agents): hide client tool conflict prefix
1 parent 8833462 commit b832dd2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/agents/agent-tool-definition-adapter.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type { AgentTool } from "openclaw/plugin-sdk/agent-core";
77
import { Type } from "typebox";
88
import { describe, expect, it, vi } from "vitest";
99
import {
10-
CLIENT_TOOL_NAME_CONFLICT_PREFIX,
1110
createClientToolNameConflictError,
1211
findClientToolNameConflicts,
1312
isClientToolNameConflictError,
@@ -19,6 +18,7 @@ import type { ClientToolDefinition } from "./embedded-agent-runner/run/params.js
1918

2019
type ToolExecute = ReturnType<typeof toToolDefinitions>[number]["execute"];
2120
const extensionContext = {} as Parameters<ToolExecute>[4];
21+
const CLIENT_TOOL_NAME_CONFLICT_PREFIX = "client tool name conflict:";
2222

2323
async function executeThrowingTool(name: string, callId: string) {
2424
const tool = {

src/agents/agent-tool-definition-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ function finalizeToolParamsBeforeExecute(params: {
308308
return finalize ? finalize(params.executeParams, params.preparedParams) : params.executeParams;
309309
}
310310

311-
export const CLIENT_TOOL_NAME_CONFLICT_PREFIX = "client tool name conflict:";
311+
const CLIENT_TOOL_NAME_CONFLICT_PREFIX = "client tool name conflict:";
312312

313313
/** Find client-hosted tool names that collide with runtime or sibling tools. */
314314
export function findClientToolNameConflicts(params: {

0 commit comments

Comments
 (0)