/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { feedbackList } from "../../funcs/feedbackList.js";
import { formatResult } from "../tools.js";
export const tool$feedbackList = {
    name: "feedback-list",
    description: `Get All Feedback`,
    tool: async (client, ctx) => {
        const [result, apiCall] = await feedbackList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
        if (!result.ok) {
            return {
                content: [{ type: "text", text: result.error.message }],
                isError: true,
            };
        }
        const value = result.value;
        return formatResult(value, apiCall);
    },
};
//# sourceMappingURL=feedbackList.js.map