( record: Record<string, unknown>, keys: string[], )
| 1 | import { rewriteRelayUrl } from "@/shared/lib/mediaUrl"; |
| 2 | |
| 3 | export function getToolString( |
| 4 | record: Record<string, unknown>, |
| 5 | keys: string[], |
| 6 | ): string | null { |
| 7 | for (const key of keys) { |
| 8 | const value = record[key]; |
| 9 | if (typeof value === "string" && value.trim().length > 0) { |
| 10 | return value.trim(); |
| 11 | } |
| 12 | } |
| 13 | return null; |
| 14 | } |
| 15 | |
| 16 | export function getToolStringList( |
| 17 | record: Record<string, unknown>, |
no outgoing calls
no test coverage detected