Class GenkitOptions

java.lang.Object
com.google.genkit.GenkitOptions

public class GenkitOptions extends Object
GenkitOptions contains configuration options for Genkit.
  • Method Details

    • builder

      public static GenkitOptions.Builder builder()
      Creates a new builder.
      Returns:
      a new builder
    • isDevMode

      public boolean isDevMode()
      Returns whether dev mode is enabled.
      Returns:
      true if dev mode is enabled
    • getReflectionPort

      public int getReflectionPort()
      Returns the reflection server port.
      Returns:
      the port number
    • getProjectRoot

      public String getProjectRoot()
      Returns the project root directory.
      Returns:
      the project root path
    • getPromptDir

      public String getPromptDir()
      Returns the prompt directory path (relative to resources or absolute). Defaults to "/prompts" for loading from classpath resources.
      Returns:
      the prompt directory path