UNPKG

genkit

Version:

Genkit AI framework

56 lines 2.18 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var middleware_exports = {}; __export(middleware_exports, { augmentWithContext: () => import_middleware.augmentWithContext, downloadRequestMedia: () => import_middleware.downloadRequestMedia, fallback: () => import_middleware.fallback, retry: () => import_middleware.retry, simulateSystemPrompt: () => import_middleware.simulateSystemPrompt, validateSupport: () => import_middleware.validateSupport }); module.exports = __toCommonJS(middleware_exports); var import_middleware = require("@genkit-ai/ai/model/middleware"); /** * @license * * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { augmentWithContext, downloadRequestMedia, fallback, retry, simulateSystemPrompt, validateSupport }); //# sourceMappingURL=middleware.js.map