Genkit JS API reference
    Preparing search index...

    Module testing

    Testing utilities for Genkit apps and model plugins.

    • mockModel — a programmable mock model with typed call inspection, for testing flows, prompts, and tools deterministically.
    • echoModel — a zero-config model that echoes the rendered request, for asserting prompt/message assembly.
    • testModels — a conformance harness for model plugin authors.
    import { mockModel, echoModel, testModels } from 'genkit/testing';
    

    Interfaces

    EchoModelOptions
    MockContext
    MockModelOptions

    Type Aliases

    MockChunk
    MockModel
    MockRespond
    MockRespondFn
    MockResponse

    Functions

    echoModel
    mockModel
    testModels