Genkit JS API reference
    Preparing search index...

    Interface MockContext

    Context passed to a MockModelOptions.respond callback.

    interface MockContext {
        sendChunk: (chunk: MockChunk) => void;
    }
    Index

    Properties

    Properties

    sendChunk: (chunk: MockChunk) => void

    Emit a streamed chunk. A no-op unless the caller used generateStream / { onChunk }. A string is shorthand for a text part.