import { jsx as _jsx } from "react/jsx-runtime";
import { ToolResult } from "../ToolResult";
const successMessage = {
    content: JSON.stringify({
        temperature: 24,
        condition: "Partly cloudy",
        location: "Florianópolis, SC",
    }, null, 2),
};
const errorMessage = {
    content: JSON.stringify({
        message: "Unable to fetch weather data.",
    }, null, 2),
    error: "The weather service returned an unavailable response.",
};
const plainMessage = {
    content: "Tool completed successfully.",
};
export const Default = {
    args: {
        message: successMessage,
        toolName: "get_weather",
    },
    parameters: {
        docs: {
            description: {
                story: "A successful tool result with formatted output.",
            },
        },
    },
};
export const Error = {
    args: {
        message: errorMessage,
        toolName: "get_weather",
    },
    parameters: {
        docs: {
            description: {
                story: "A tool result with an error message.",
            },
        },
    },
};
export const WithoutToolName = {
    args: {
        message: plainMessage,
    },
    parameters: {
        docs: {
            description: {
                story: "A tool result without a resolved tool name.",
            },
        },
    },
};
const meta = {
    title: "Components/ToolResult",
    component: ToolResult,
    parameters: {
        layout: "centered",
        docs: {
            description: {
                component: "```tsx\nimport { ToolResult } from '@openuidev/react-ui';\n```",
            },
        },
        controls: {
            exclude: ["className"],
        },
    },
    decorators: [
        (Story) => (_jsx("div", { style: { width: "520px" }, children: _jsx(Story, {}) })),
    ],
    argTypes: {
        message: {
            control: "object",
            table: {
                category: "Data",
            },
        },
        toolName: {
            control: "text",
            table: {
                category: "Data",
            },
        },
        className: {
            table: {
                disable: true,
            },
        },
    },
    tags: ["autodocs", "!dev"],
};
export default meta;
//# sourceMappingURL=ToolResult.stories.js.map