"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SentimentTool = void 0;
const zod_1 = require("zod");
const ai_1 = require("ai");
const sentiment_1 = require("../sentiment");
const sentimentToolInputSchema = zod_1.z.object({
    text: zod_1.z.string(),
});
class SentimentTool {
    constructor() {
        this.sentiment = new sentiment_1.Sentiment();
        this.tool = (0, ai_1.tool)({
            description: "Get the sentiment of a text",
            inputSchema: sentimentToolInputSchema,
            execute: async (parameters) => {
                return this.sentiment.summarize(parameters.text);
            },
        });
    }
}
exports.SentimentTool = SentimentTool;
