mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-04 10:00:21 +00:00
10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
export function normalizeConversationText(value: unknown): string {
|
|
if (typeof value === "string") {
|
|
return value.trim();
|
|
}
|
|
if (typeof value === "number" || typeof value === "bigint" || typeof value === "boolean") {
|
|
return `${value}`.trim();
|
|
}
|
|
return "";
|
|
}
|