refactor(agents): narrow tool schema helper exports · openclaw/openclaw@e7e686d
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -60,7 +60,7 @@ const TOOL_ERROR_EXEC_COMMAND_HASH_CHARS = 16;
|
60 | 60 | const SENSITIVE_EXEC_ENV_VALUE = "[omitted exec env value]"; |
61 | 61 | const EXEC_COMMAND_PARAM_KEYS = new Set(["command", "cmd"]); |
62 | 62 | |
63 | | -export type ClientToolCallRecorder = |
| 63 | +type ClientToolCallRecorder = |
64 | 64 | | ((toolName: string, params: Record<string, unknown>) => void) |
65 | 65 | | { |
66 | 66 | reserve?: (toolCallId: string, toolName: string) => void; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -595,7 +595,7 @@ function inlineLocalSchemaRefsWithDefs(
|
595 | 595 | } |
596 | 596 | |
597 | 597 | /** Inline local $ref pointers so providers receive self-contained tool schemas. */ |
598 | | -export function inlineLocalToolSchemaRefs(schema: unknown): TSchema { |
| 598 | +function inlineLocalToolSchemaRefs(schema: unknown): TSchema { |
599 | 599 | if (!schema || typeof schema !== "object") { |
600 | 600 | return schema as TSchema; |
601 | 601 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。