export function toolResult(text: string, details: Record) { return { content: [{ type: "text" as const, text }], details }; } export function toolError(text: string) { return toolResult(text, { isError: true }); }