genkit
Version:
Genkit AI framework
1 lines • 1.65 kB
Source Map (JSON)
{"version":3,"sources":["../src/testing.ts"],"sourcesContent":["/**\n * @license\n *\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\n/**\n * Testing utilities for Genkit apps and model plugins.\n *\n * - {@link mockModel} — a programmable mock model with typed call inspection,\n * for testing flows, prompts, and tools deterministically.\n * - {@link echoModel} — a zero-config model that echoes the rendered request,\n * for asserting prompt/message assembly.\n * - `testModels` — a conformance harness for model *plugin* authors.\n *\n * ```ts\n * import { mockModel, echoModel, testModels } from 'genkit/testing';\n * ```\n *\n * @module testing\n */\n\nexport {\n echoModel,\n mockModel,\n testModels,\n type EchoModelOptions,\n type MockChunk,\n type MockContext,\n type MockModel,\n type MockModelOptions,\n type MockRespond,\n type MockRespondFn,\n type MockResponse,\n} from '@genkit-ai/ai/testing';\n"],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkCA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OASK;","names":[]}