UNPKG

@mastra/core

Version:

Mastra is the Typescript framework for building AI agents and assistants. It’s used by some of the largest companies in the world to build internal AI automation tooling and customer-facing agents.

39 lines (37 loc) 1.12 kB
import { InstrumentClass } from './chunk-SEZBEL3U.js'; import { MastraBase } from './chunk-BMVFEBPE.js'; import { __decoratorStart, __decorateElement, __runInitializers } from './chunk-3HXBPDKN.js'; // src/tts/index.ts var _MastraTTS_decorators, _init, _a; _MastraTTS_decorators = [InstrumentClass({ prefix: "tts", excludeMethods: ["__setTools", "__setLogger", "__setTelemetry", "#log"] })]; var MastraTTS = class extends (_a = MastraBase) { model; constructor({ model }) { super({ component: "TTS" }); this.model = model; } traced(method, methodName) { return this.telemetry?.traceMethod(method, { spanName: `${this.model.name}-tts.${methodName}`, attributes: { "tts.type": `${this.model.name}` } }) ?? method; } }; MastraTTS = /*@__PURE__*/(_ => { _init = __decoratorStart(_a); MastraTTS = __decorateElement(_init, 0, "MastraTTS", _MastraTTS_decorators, MastraTTS); __runInitializers(_init, 1, MastraTTS); return MastraTTS; })(); export { MastraTTS }; //# sourceMappingURL=chunk-BJZWMVNW.js.map //# sourceMappingURL=chunk-BJZWMVNW.js.map