(output: string | ContentPart | ContentPart[])
| 45 | } |
| 46 | |
| 47 | function normalizeOutput(output: string | ContentPart | ContentPart[]): string | ContentPart[] { |
| 48 | if (typeof output === 'string') return output; |
| 49 | if (Array.isArray(output)) return output; |
| 50 | return [output]; |
| 51 | } |
| 52 | |
| 53 | export function toolOk(opts: { |
| 54 | output: string | ContentPart | ContentPart[]; |