A C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages

A

addInputFile(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
addInputFiles(List<File>) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
addOptionalInputFile(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
addPrompt(File, String...) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
The actual prompt to be executed.
addPrompt(File, Map<String, String>) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
The actual prompt to be executed.
AIChatBuilder - Interface in net.stoerr.ai.aigenpipeline.framework.chat
Defines the interface for building AI chat interactions, allowing customization of the model, token limits, and messages.
AIGenerationTask - Class in net.stoerr.ai.aigenpipeline.framework.task
We support the generation of files using an AI, specifically ChatGPT.
AIGenerationTask() - Constructor for class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
AIModelConstants - Interface in net.stoerr.ai.aigenpipeline.framework.chat
 
AIVersionMarker - Class in net.stoerr.ai.aigenpipeline.framework.task
A parsing / creation class for markers like AIGenVersion(ourversion, inputfile1@version1, inputfile2@version2, ...).
AIVersionMarker(String, List<String>) - Constructor for class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
ALWAYS - Static variable in interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
 
ANTHROPIC_DEFAULT_VERSION - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
Default version for the Anthropic API, of not overridden with environment variable OpenAIChatBuilderImpl.ENV_ANTHROPIC_VERSION .
apiKey - Variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
assistantMsg(String) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Adds an assistant message to the chat.
assistantMsg(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

C

calculateInputMarkers(List<File>, List<String>) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
ChatCompletionResponse() - Constructor for class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl.ChatCompletionResponse
 
CLAUDE_URL - Static variable in interface net.stoerr.ai.aigenpipeline.framework.chat.AIModelConstants
Anthropic Claude message completion URL.
CODEBLOCK_PATTERN - Variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
copy() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Creates a deep copy of the task.

D

DEFAULT_MAX_TOKENS - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
determineApiKey() - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
This returns OpenAIChatBuilderImpl.apiKey if given, otherwise resorts to environment variables depending on the OpenAIChatBuilderImpl.url
determineFileVersionMarker(File) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
Determine the version marker for input files / prompt files.
directory - Variable in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 

E

ENV_ANTHROPIC_API_KEY - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
Environment variable for the Anthropic API key.
ENV_ANTHROPIC_VERSION - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
Environment variable for the Anthropic API version.
ENV_OPENAI_API_KEY - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
Environment variable for the OpenAI API key.
equals(Object) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
execute() - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Executes the chat completion request and returns the response.
execute() - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
execute(Supplier<AIChatBuilder>, File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Execute the task if necessary.
explain(Supplier<AIChatBuilder>, File, String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Ask a question about the previous task execution.
extractResponse(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

F

file(String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
File relative to repository root - that doesn't need to exist (might be output file).
FileLookupHelper - Class in net.stoerr.ai.aigenpipeline.framework.task
Makes it easy to find files to process with AIGenerationTask etc.
FileLookupHelper(String) - Constructor for class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 
files(String, String, boolean) - Method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
Files in a directory, matching a regex.
filesContaining(String, String, String, boolean) - Method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
All files matching a filePathRegex that contain a pattern.
find(String) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
FIXME - Static variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
A marker that can be inserted by the AI when something is wrong / unclear.
fromEnv(String, String) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
Make repository from environment variable.
fromPath(String...) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 

G

getAdditionalMarkers() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
getAllInputFiles() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
getFileContent(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
getInputVersions() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
getOurVersion() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
getRecordedVersionMarker(File) - Method in interface net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy
Version of current output file.
getRecordedVersionMarker(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy.WritePartStrategy
Find the first line of the file that contains the marker - that should also contain the version comment.
GPT_3_5_TURBO - Static variable in interface net.stoerr.ai.aigenpipeline.framework.chat.AIModelConstants
 
GPT_4 - Static variable in interface net.stoerr.ai.aigenpipeline.framework.chat.AIModelConstants
 
GPT_4_TURBO_PREVIEW - Static variable in interface net.stoerr.ai.aigenpipeline.framework.chat.AIModelConstants
 
gson - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

H

hashCode() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
hasToBeRun() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
HTML_PATTERN - Static variable in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 

I

IF_NOT_EXISTS - Static variable in interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
 
IF_OLDER - Static variable in interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
Regenerate when output file does not exist or is older than one of the input files.
inputFiles - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
inputVersions - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
isClaude() - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
isOpenAI() - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

J

javaFile(String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
File from full java class name.
javaMdFile(String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
File for documenting a full java class name.

K

key(String) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Sets the API key for the chat completion request.
key(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

L

LOG - Static variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
LOG - Static variable in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 

M

makeChatBuilder(Supplier<AIChatBuilder>, File, String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
maxTokens - Variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
maxTokens - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
maxTokens(int) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Sets the maximum number of tokens the completion can use.
maxTokens(int) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
maxTokens(Integer) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
messages - Variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
model - Variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
model(String) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Sets the AI model to be used for the chat completion.
model(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

N

needsRegeneration(File, List<File>, WritingStrategy, List<String>) - Method in interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
Decides whether the output file needs to be regenerated.
needsRegeneration(File, List<File>, WritingStrategy, List<String>) - Method in class net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy
 
net.stoerr.ai.aigenpipeline.framework.chat - package net.stoerr.ai.aigenpipeline.framework.chat
 
net.stoerr.ai.aigenpipeline.framework.task - package net.stoerr.ai.aigenpipeline.framework.task
 

O

OPENAI_URL - Static variable in interface net.stoerr.ai.aigenpipeline.framework.chat.AIModelConstants
OpenAI chat message completion URL - the default.
OpenAIChatBuilderImpl - Class in net.stoerr.ai.aigenpipeline.framework.chat
Implementation of AIChatBuilder for creating and executing OpenAI chat completion requests.
OpenAIChatBuilderImpl() - Constructor for class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
OpenAIChatBuilderImpl.ChatCompletionRequest - Class in net.stoerr.ai.aigenpipeline.framework.chat
 
OpenAIChatBuilderImpl.ChatCompletionResponse - Class in net.stoerr.ai.aigenpipeline.framework.chat
 
OpenAIChatBuilderImpl.Message - Class in net.stoerr.ai.aigenpipeline.framework.chat
 
ourVersion - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
outputFile - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 

P

PATTERN_LICENCE - Static variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
A pattern that matches the license header, which we want to remove to avoid clutter.
placeholdersAndValues - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
prompt - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
The actual prompt created from prompt files and parameters.
promptFiles - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 

R

regenerationCheckStrategy - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
RegenerationCheckStrategy - Interface in net.stoerr.ai.aigenpipeline.framework.task
A strategy to decide whether we need to regenerate an output file from input files.
RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy - Class in net.stoerr.ai.aigenpipeline.framework.task
 
relativePath(File, File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
replaceMarkerIn(String, String) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
ROLE_ASSISTANT - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
ROLE_SYSTEM - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
ROLE_USER - Static variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

S

sanityCheck() - Static method in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 
setOutputFile(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
setRegenerationCheckStrategy(RegenerationCheckStrategy) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Sets the strategy to check whether the generation has to be run.
setSystemMessage(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
setWritingStrategy(WritingStrategy) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Sets the strategy to deal with writing the output file.
shaHash(String) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
systemMessage - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
systemMessageFile - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
systemMsg(String) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Adds a system message to the chat.
systemMsg(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

T

toJson() - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Converts the chat completion request to a JSON string.
toJson() - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
toJson(Supplier<AIChatBuilder>, File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
For debugging purposes: returns the JSON that would be sent to the AI.
toString() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
toString() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 

U

unclutter(String) - Static method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
url - Variable in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
url(String) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Sets the URL for the chat completion request.
url(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 
userMsg(String) - Method in interface net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
Adds a user message to the chat.
userMsg(String) - Method in class net.stoerr.ai.aigenpipeline.framework.chat.OpenAIChatBuilderImpl
 

V

VERSION_MARKER_PATTERN - Static variable in class net.stoerr.ai.aigenpipeline.framework.task.AIVersionMarker
 
VERSIONMARKER - Static variable in interface net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy
 
VersionMarkerRegenerationCheckStrategy() - Constructor for class net.stoerr.ai.aigenpipeline.framework.task.RegenerationCheckStrategy.VersionMarkerRegenerationCheckStrategy
 

W

WITHOUTVERSION - Static variable in interface net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy
Writes the raw file without the cersion comment.
WITHVERSION - Static variable in interface net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy
Writes the file with the version comment.
write(File, String, String) - Method in interface net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy
 
write(File, String, String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy.WritePartStrategy
Replaces the lines between the first line with marker and the second line with the marker with the content.
WritePartStrategy(String) - Constructor for class net.stoerr.ai.aigenpipeline.framework.task.WritingStrategy.WritePartStrategy
 
writingStrategy - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
WritingStrategy - Interface in net.stoerr.ai.aigenpipeline.framework.task
Ways to write a file and embed the version comment.
WritingStrategy.WritePartStrategy - Class in net.stoerr.ai.aigenpipeline.framework.task
 
A C D E F G H I J K L M N O P R S T U V W 
All Classes All Packages