( params: Record<string, unknown> | undefined, key: string )
| 59 | } |
| 60 | |
| 61 | function readStringParam( |
| 62 | params: Record<string, unknown> | undefined, |
| 63 | key: string |
| 64 | ): string | undefined { |
| 65 | const value = params?.[key] |
| 66 | return typeof value === 'string' && value.trim() ? value.trim() : undefined |
| 67 | } |
| 68 | |
| 69 | function formatReadingLabel(target: string | undefined, state: ClientToolCallState): string { |
| 70 | const suffix = target ? ` ${target}` : '' |
no outgoing calls
no test coverage detected