Index

A C D E F G H I J K L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

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
 
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

calculateAllInputsMarkers() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
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.
clone() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Deprecated.
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) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
directory - Variable in class net.stoerr.ai.aigenpipeline.framework.task.FileLookupHelper
 

E

embedComment(String, String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
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.
force - Variable in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
force(boolean) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
If true the generation will be run even if not AIGenerationTask.hasToBeRun().
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

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
 
getRecordedOutputVersionMarker() - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
Version of current output file.
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

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

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

relativePath(File, File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
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
 
setSystemMessage(File) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
shaHash(String) - Method in class net.stoerr.ai.aigenpipeline.framework.task.AIGenerationTask
 
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
 
A C D E F G H I J K L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values