import { jsx as _jsx } from "react/jsx-runtime";
import { ToolCallComponent } from "../ToolCall";
const plainToolCall = {
    id: "tool-call-1",
    type: "function",
    function: {
        name: "search",
        arguments: JSON.stringify({
            query: "OpenUI Storybook components",
            limit: 5,
        }, null, 2),
    },
};
const requestResponseToolCall = {
    id: "tool-call-2",
    type: "function",
    function: {
        name: "get_weather",
        arguments: JSON.stringify({
            _request: {
                location: "Florianópolis, SC",
                unit: "celsius",
            },
            _response: {
                temperature: 24,
                condition: "Partly cloudy",
            },
        }, null, 2),
    },
};
const streamingToolCall = {
    id: "tool-call-3",
    type: "function",
    function: {
        name: "generate_report",
        arguments: JSON.stringify({
            _request: {
                topic: "Weekly usage summary",
                format: "markdown",
            },
        }, null, 2),
    },
};
export const Default = {
    args: {
        toolCall: plainToolCall,
        isStreaming: false,
        toolsDone: true,
        isLast: false,
    },
    parameters: {
        docs: {
            description: {
                story: "A basic tool call with plain function arguments.",
            },
        },
    },
};
export const WithRequestAndResponse = {
    args: {
        toolCall: requestResponseToolCall,
        isStreaming: false,
        toolsDone: true,
        isLast: false,
    },
    parameters: {
        docs: {
            description: {
                story: "A completed tool call displaying request and response payloads.",
            },
        },
    },
};
export const Streaming = {
    args: {
        toolCall: streamingToolCall,
        isStreaming: true,
        toolsDone: false,
        isLast: true,
    },
    parameters: {
        docs: {
            description: {
                story: "A running tool call while the tool response is still streaming.",
            },
        },
    },
};
const meta = {
    title: "Components/ToolCall",
    component: ToolCallComponent,
    parameters: {
        layout: "centered",
        docs: {
            description: {
                component: "```tsx\nimport { ToolCallComponent } from '@openuidev/react-ui';\n```",
            },
        },
        controls: {
            exclude: ["className"],
        },
    },
    decorators: [
        (Story) => (_jsx("div", { style: { width: "520px" }, children: _jsx(Story, {}) })),
    ],
    argTypes: {
        toolCall: {
            control: "object",
            table: {
                category: "Data",
            },
        },
        isStreaming: {
            control: "boolean",
            table: {
                category: "State",
            },
        },
        toolsDone: {
            control: "boolean",
            table: {
                category: "State",
            },
        },
        isLast: {
            control: "boolean",
            table: {
                category: "State",
            },
        },
        className: {
            table: {
                disable: true,
            },
        },
    },
    tags: ["autodocs", "!dev"],
};
export default meta;
//# sourceMappingURL=ToolCall.stories.js.map