UNPKG

@genkit-ai/core

Version:

Genkit AI framework core libraries.

48 lines (44 loc) 3.59 kB
export { z } from 'zod'; export { A as Action, a as ActionAsyncParams, b as ActionFnArg, c as ActionMetadata, d as ActionMetadataSchema, e as ActionParams, f as ActionResult, g as ActionRunOptions, h as ActionStreamInput, i as ActionStreamSubscriber, B as BackgroundAction, j as BackgroundActionFnArg, k as BackgroundActionParams, l as BackgroundActionRunOptions, E as ErrorResponseMetadata, G as GenkitError, I as InMemoryStreamManager, m as InitializedPlugin, J as JSONSchema, M as Middleware, n as MiddlewareWithOptions, O as Operation, o as OperationSchema, P as Plugin, p as PluginProvider, q as Provider, R as ResolvableAction, S as SimpleMiddleware, r as StreamManager, s as StreamNotFoundError, t as StreamingCallback, u as StreamingResponse, U as UnstableApiError, v as UserFacingError, w as action, x as actionWithMiddleware, y as annotateSchema, z as assertUnstable, C as backgroundAction, D as defineAction, F as defineActionAsync, H as defineBackgroundAction, K as defineJsonSchema, L as defineSchema, N as getCallableJSON, Q as getHttpStatus, T as getStreamingCallback, V as isAction, W as isBackgroundAction, X as isInRuntimeContext, Y as registerBackgroundAction, Z as runInActionRuntimeContext, _ as runOutsideActionRuntimeContext, $ as runWithStreamingCallback, a0 as sentinelNoopStreamingCallback, a1 as toJsonSchema } from './action-BkZz5LDA.js'; export { getAsyncContext } from './async-context.js'; export { GenkitRuntimeConfig, getGenkitRuntimeConfig, resetGenkitRuntimeConfig, setGenkitRuntimeConfig } from './config.js'; export { ActionContext, ApiKeyContext, ContextProvider, RequestData, apiKey, getContext, runWithContext } from './context.js'; export { DapConfig, DapFn, DynamicActionProviderAction, defineDynamicActionProvider } from './dynamic-action-provider.js'; export { Flow, FlowConfig, FlowFn, FlowSideChannel, defineFlow, flow, run } from './flow.js'; export { ReflectionServer, ReflectionServerOptions, RunActionResponse, RunActionResponseSchema } from './reflection.js'; export { TelemetryConfig } from './telemetryTypes.js'; export { deleteUndefinedProps, featureMetadataPrefix, getCurrentEnv, isDevEnv, stripUndefinedProps } from './utils.js'; export { JSONSchema7 } from 'json-schema'; export { Status, StatusCodes, StatusName, StatusSchema } from './statusTypes.js'; import 'dotprompt'; import 'ajv'; import '@opentelemetry/sdk-node'; /** * 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. */ /** * Genkit library version. */ declare const GENKIT_VERSION = "1.36.0"; /** * Genkit client header for API calls. */ declare const GENKIT_CLIENT_HEADER: string; declare const GENKIT_REFLECTION_API_SPEC_VERSION = 1; /** Additional attribution information to include in the x-goog-api-client header. */ declare function getClientHeader(): string; /** Sets additional attribution information to include in the x-goog-api-client header. */ declare function setClientHeader(header: string): void; export { GENKIT_CLIENT_HEADER, GENKIT_REFLECTION_API_SPEC_VERSION, GENKIT_VERSION, getClientHeader, setClientHeader };