(message: string)
| 47 | } |
| 48 | |
| 49 | function writingError(message: string) { |
| 50 | return { |
| 51 | content: [{ type: 'text', text: message }], |
| 52 | isError: true, |
| 53 | } as const |
| 54 | } |
| 55 | |
| 56 | const nonEmptyStringSchema = z.string().refine(value => value.trim().length > 0, { |
| 57 | message: 'expected a non-empty string', |
no outgoing calls
no test coverage detected