UNPKG

@genkit-ai/core

Version:

Genkit AI framework core libraries.

48 lines (44 loc) 3.74 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, m as BidiAction, n as BidiActionRunOptions, o as BidiStreamingResponse, E as ErrorResponseMetadata, G as GenkitError, I as InMemoryStreamManager, p as InitializedPlugin, J as JSONSchema, M as Middleware, q as MiddlewareWithOptions, O as Operation, r as OperationSchema, P as Plugin, s as PluginProvider, t as Provider, R as ResolvableAction, S as SimpleMiddleware, u as StreamManager, v as StreamNotFoundError, w as StreamingCallback, x as StreamingResponse, U as UnstableApiError, y as UserFacingError, z as action, C as actionWithMiddleware, D as annotateSchema, F as assertUnstable, H as backgroundAction, K as bidiAction, L as defineAction, N as defineActionAsync, Q as defineBackgroundAction, T as defineBidiAction, V as defineJsonSchema, W as defineSchema, X as getCallableJSON, Y as getHttpStatus, Z as getStreamingCallback, _ as isAction, $ as isBackgroundAction, a0 as isInRuntimeContext, a1 as registerBackgroundAction, a2 as runInActionRuntimeContext, a3 as runOutsideActionRuntimeContext, a4 as runWithStreamingCallback, a5 as sentinelNoopStreamingCallback, a6 as toJsonSchema } from './action-2dXSE7GM.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 { deepEqual, deleteUndefinedProps, featureMetadataPrefix, getCurrentEnv, isDevEnv, stripUndefinedProps } from './utils.js'; export { JSONSchema7 } from 'json-schema'; export { Status, StatusCodes, StatusName, StatusNameSchema, 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.39.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 };