@genkit-ai/core
Version:
Genkit AI framework core libraries.
1 lines • 2.4 kB
Source Map (JSON)
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\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\nimport { version } from './__codegen/version.js';\n\n/**\n * Genkit library version.\n */\nexport const GENKIT_VERSION = version;\n\n/**\n * Genkit client header for API calls.\n */\nexport const GENKIT_CLIENT_HEADER = `genkit-node/${GENKIT_VERSION} gl-node/${process.versions.node}`;\nexport const GENKIT_REFLECTION_API_SPEC_VERSION = 1;\n\nexport { z } from 'zod';\nexport * from './action.js';\nexport {\n OperationSchema,\n defineBackgroundAction,\n type BackgroundAction,\n type BackgroundActionFnArg,\n type BackgroundActionParams,\n type BackgroundActionRunOptions,\n type Operation,\n} from './background-action.js';\nexport {\n apiKey,\n getContext,\n runWithContext,\n type ActionContext,\n type ApiKeyContext,\n type ContextProvider,\n type RequestData,\n} from './context.js';\nexport {\n GenkitError,\n UnstableApiError,\n UserFacingError,\n assertUnstable,\n getCallableJSON,\n getHttpStatus,\n type StatusName,\n} from './error.js';\nexport {\n defineFlow,\n run,\n type Flow,\n type FlowConfig,\n type FlowFn,\n type FlowSideChannel,\n} from './flow.js';\nexport * from './plugin.js';\nexport * from './reflection.js';\nexport { defineJsonSchema, defineSchema, type JSONSchema } from './schema.js';\nexport * from './telemetryTypes.js';\nexport * from './utils.js';\n"],"mappings":"AAgBA,SAAS,eAAe;AAKjB,MAAM,iBAAiB;AAKvB,MAAM,uBAAuB,eAAe,cAAc,YAAY,QAAQ,SAAS,IAAI;AAC3F,MAAM,qCAAqC;AAElD,SAAS,SAAS;AAClB,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,OAMK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAKK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAKK;AACP,cAAc;AACd,cAAc;AACd,SAAS,kBAAkB,oBAAqC;AAChE,cAAc;AACd,cAAc;","names":[]}