@genkit-ai/firebase
Version:
Genkit AI framework plugin for Firebase including Firestore trace/state store and deployment helpers for Cloud Functions for Firebase.
1 lines • 1.71 kB
Source Map (JSON)
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright 2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * @module /\n */\n\nimport {\n enableGoogleCloudTelemetry,\n type GcpTelemetryConfigOptions,\n} from '@genkit-ai/google-cloud';\nimport { logger } from 'genkit/logging';\nexport { defineFirestoreRetriever } from './firestore-retriever.js';\n\nexport interface FirebaseTelemetryOptions extends GcpTelemetryConfigOptions {\n // future: firebase specific telemetry options\n}\n\n/**\n * Enables telemetry export to Genkit Monitoring, backed by the\n * Google Cloud Observability suite.\n *\n * @param options configuration options\n */\nexport async function enableFirebaseTelemetry(\n options?: FirebaseTelemetryOptions | GcpTelemetryConfigOptions\n) {\n logger.debug('Initializing Firebase Genkit Monitoring.');\n await enableGoogleCloudTelemetry(options);\n}\n"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAsBA;AAAA,EACE;AAAA,OAEK;AACP,SAAS,cAAc;AACvB,SAAS,gCAAgC;AAYzC,eAAsB,wBACpB,SACA;AACA,SAAO,MAAM,0CAA0C;AACvD,QAAM,2BAA2B,OAAO;AAC1C;","names":[]}