mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 19:50:43 +00:00
refactor: dedupe misc lowercase helpers
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { normalizeLowercaseStringOrEmpty } from "../shared/string-coerce.js";
|
||||
|
||||
export type ToolContentBlock = Record<string, unknown>;
|
||||
|
||||
export function normalizeToolContentType(value: unknown): string {
|
||||
return typeof value === "string" ? value.toLowerCase() : "";
|
||||
return normalizeLowercaseStringOrEmpty(value);
|
||||
}
|
||||
|
||||
export function isToolCallContentType(value: unknown): boolean {
|
||||
|
||||
Reference in New Issue
Block a user