UNPKG

genkit

Version:

Genkit AI framework

1 lines 2.56 kB
{"version":3,"sources":["../src/beta.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright 2025 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 * Beta features including interrupts, stream managers, and the experimental\n * {@link GenkitBeta} class.\n *\n * ```ts\n * import { genkit } from 'genkit/beta';\n * ```\n *\n * @module beta\n */\n\nexport {\n AgentInitSchema,\n AgentInputSchema,\n AgentOutputSchema,\n AgentStreamChunkSchema,\n type AgentInit,\n type AgentInput,\n type AgentOutput,\n} from '@genkit-ai/ai';\nexport { Session, type Artifact } from '@genkit-ai/ai/session';\nexport {\n AgentError,\n remoteAgent,\n type AgentAPI,\n type AgentChat,\n type AgentChunk,\n type AgentInterrupt,\n type AgentResponse,\n type AgentTurn,\n type DetachedTask,\n type RemoteAgentOptions,\n} from './client/agent.mjs';\n\nexport type { AgentFinishReason } from './client/types.mjs';\n\nexport {\n InMemoryStreamManager,\n StreamNotFoundError,\n type ActionStreamInput,\n type ActionStreamSubscriber,\n type StreamManager,\n} from '@genkit-ai/core';\nexport { AsyncTaskQueue, lazy } from '@genkit-ai/core/async';\nexport * from './common.mjs';\nexport {\n FileSessionStore,\n GenkitBeta,\n InMemorySessionStore,\n SessionRunner,\n applyPatch,\n diff,\n genkit,\n type Agent,\n type AgentFn,\n type AgentStreamChunk,\n type ClientTransform,\n type GenkitBetaOptions,\n type JsonPatch,\n type JsonPatchOperation,\n type SessionSnapshot,\n type SessionSnapshotInput,\n type SessionState,\n type SessionStore,\n type SessionStoreOptions,\n type SnapshotMutator,\n} from './genkit-beta.mjs';\n"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAIK;AACP,SAAS,eAA8B;AACvC;AAAA,EACE;AAAA,EACA;AAAA,OASK;AAIP;AAAA,EACE;AAAA,EACA;AAAA,OAIK;AACP,SAAS,gBAAgB,YAAY;AACrC,cAAc;AACd;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAcK;","names":[]}