Package com.google.genkit
Class GenkitOptions
java.lang.Object
com.google.genkit.GenkitOptions
GenkitOptions contains configuration options for Genkit.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic GenkitOptions.Builderbuilder()Creates a new builder.Returns the project root directory.Returns the prompt directory path (relative to resources or absolute).intReturns the reflection server port.booleanReturns whether dev mode is enabled.
-
Method Details
-
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
Returns the project root directory.- Returns:
- the project root path
-
getPromptDir
Returns the prompt directory path (relative to resources or absolute). Defaults to "/prompts" for loading from classpath resources.- Returns:
- the prompt directory path
-