@genkit-ai/core
Version:
Genkit AI framework core libraries.
47 lines (43 loc) • 3.36 kB
text/typescript
export { z } from 'zod';
export { u as Action, w as ActionAsyncParams, s as ActionFnArg, o as ActionMetadata, v as ActionParams, p as ActionResult, q as ActionRunOptions, A as ActionStreamInput, n as ActionStreamSubscriber, B as BackgroundAction, a as BackgroundActionFnArg, c as BackgroundActionParams, e as BackgroundActionRunOptions, G as GenkitError, R as InMemoryStreamManager, X as InitializedPlugin, J as JSONSchema, y as Middleware, M as MiddlewareWithOptions, f as Operation, O as OperationSchema, Y as Plugin, W as PluginProvider, V as Provider, x as SimpleMiddleware, S as StreamManager, T as StreamNotFoundError, H as StreamingCallback, t as StreamingResponse, U as UnstableApiError, g as UserFacingError, C as action, z as actionWithMiddleware, h as assertUnstable, b as backgroundAction, E as defineAction, F as defineActionAsync, d as defineBackgroundAction, l as defineJsonSchema, m as defineSchema, j as getCallableJSON, k as getHttpStatus, L as getStreamingCallback, D as isAction, i as isBackgroundAction, N as isInRuntimeContext, r as registerBackgroundAction, P as runInActionRuntimeContext, Q as runOutsideActionRuntimeContext, K as runWithStreamingCallback, I as sentinelNoopStreamingCallback } from './action-0MRMwbOv.mjs';
export { getAsyncContext } from './async-context.mjs';
export { ActionContext, ApiKeyContext, ContextProvider, RequestData, apiKey, getContext, runWithContext } from './context.mjs';
export { DapConfig, DapFn, DynamicActionProviderAction, defineDynamicActionProvider } from './dynamic-action-provider.mjs';
export { Flow, FlowConfig, FlowFn, FlowSideChannel, defineFlow, flow, run } from './flow.mjs';
export { ReflectionServer, ReflectionServerOptions, RunActionResponse, RunActionResponseSchema } from './reflection.mjs';
export { TelemetryConfig } from './telemetryTypes.mjs';
export { deleteUndefinedProps, featureMetadataPrefix, getCurrentEnv, isDevEnv, stripUndefinedProps } from './utils.mjs';
export { Status, StatusCodes, StatusName, StatusSchema } from './statusTypes.mjs';
export { JSONSchema7 } from 'json-schema';
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.27.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 };