"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TrendingNewsTool = void 0;
const zod_1 = require("zod");
const ai_1 = require("ai");
const trending_1 = require("../trending");
const trendingNewsToolInputSchema = zod_1.z.object({
    tokens: zod_1.z.string(),
});
class TrendingNewsTool {
    constructor() {
        this.trending = new trending_1.Trending();
        this.tool = (0, ai_1.tool)({
            description: "Get the trending news",
            inputSchema: trendingNewsToolInputSchema,
            execute: async (parameters) => {
                return await this.trending.getTrendingNews(parameters.tokens);
            },
        });
    }
}
exports.TrendingNewsTool = TrendingNewsTool;
