Genkit JS API reference
    Preparing search index...

    Interface GenkitRuntimeConfig

    Runtime configuration for Genkit.

    interface GenkitRuntimeConfig {
        jsonSchemaMode?: "compile" | "interpret";
        sandboxedRuntime?: boolean;
    }
    Index

    Properties

    jsonSchemaMode?: "compile" | "interpret"

    JSON schema validation mode.

    • 'compile': Uses ajv to compile schema validation functions. This is faster but requires eval or new Function support.
    • 'interpret': Uses @cfworker/json-schema to interpret schemas. This is slower but works in environments that restrict code generation (e.g. Cloudflare Workers).
    sandboxedRuntime?: boolean

    Whether the runtime is sandboxed. If true, features that require access to the file system or spawning processes (like the Reflection API) will be disabled.