Uses of Interface
net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
-
Packages that use AIChatBuilder Package Description net.stoerr.ai.aigenpipeline.commandline net.stoerr.ai.aigenpipeline.framework.chat net.stoerr.ai.aigenpipeline.framework.task -
-
Uses of AIChatBuilder in net.stoerr.ai.aigenpipeline.commandline
Methods in net.stoerr.ai.aigenpipeline.commandline that return AIChatBuilder Modifier and Type Method Description AIChatBuilder
AIGenPipeline. makeChatBuilder()
-
Uses of AIChatBuilder in net.stoerr.ai.aigenpipeline.framework.chat
Classes in net.stoerr.ai.aigenpipeline.framework.chat that implement AIChatBuilder Modifier and Type Class Description class
CopyPseudoAIChatBuilderImpl
A pseudo AI chat model that just copies the input to the output.class
OpenAIChatBuilderImpl
Implementation of AIChatBuilder for creating and executing OpenAI chat completion requests.Methods in net.stoerr.ai.aigenpipeline.framework.chat that return AIChatBuilder Modifier and Type Method Description AIChatBuilder
AIChatBuilder. assistantMsg(String text)
Adds an assistant message to the chat.AIChatBuilder
CopyPseudoAIChatBuilderImpl. assistantMsg(String text)
We assume the "put it into the mouth of the AI" pattern is used.AIChatBuilder
OpenAIChatBuilderImpl. assistantMsg(String text)
AIChatBuilder
AIChatBuilder. key(String key)
Sets the API key for the chat completion request.AIChatBuilder
CopyPseudoAIChatBuilderImpl. key(String key)
AIChatBuilder
OpenAIChatBuilderImpl. key(String key)
AIChatBuilder
AIChatBuilder. maxTokens(int maxTokens)
Sets the maximum number of tokens the completion can use.AIChatBuilder
CopyPseudoAIChatBuilderImpl. maxTokens(int maxTokens)
AIChatBuilder
OpenAIChatBuilderImpl. maxTokens(int maxTokens)
AIChatBuilder
AIChatBuilder. model(String model)
Sets the AI model to be used for the chat completion.AIChatBuilder
CopyPseudoAIChatBuilderImpl. model(String model)
AIChatBuilder
OpenAIChatBuilderImpl. model(String model)
AIChatBuilder
AIChatBuilder. organizationId(String organizationId)
Sets the organization ID for the chat completion request - if applicable (OpenAI).AIChatBuilder
CopyPseudoAIChatBuilderImpl. organizationId(String organizationId)
AIChatBuilder
OpenAIChatBuilderImpl. organizationId(String organizationId)
AIChatBuilder
AIChatBuilder. systemMsg(String text)
Adds a system message to the chat.AIChatBuilder
CopyPseudoAIChatBuilderImpl. systemMsg(String text)
AIChatBuilder
OpenAIChatBuilderImpl. systemMsg(String text)
AIChatBuilder
AIChatBuilder. url(String url)
Sets the URL for the chat completion request.AIChatBuilder
CopyPseudoAIChatBuilderImpl. url(String url)
AIChatBuilder
OpenAIChatBuilderImpl. url(String url)
AIChatBuilder
AIChatBuilder. userMsg(String text)
Adds a user message to the chat.AIChatBuilder
CopyPseudoAIChatBuilderImpl. userMsg(String text)
AIChatBuilder
OpenAIChatBuilderImpl. userMsg(String text)
-
Uses of AIChatBuilder in net.stoerr.ai.aigenpipeline.framework.task
Methods in net.stoerr.ai.aigenpipeline.framework.task that return AIChatBuilder Modifier and Type Method Description protected AIChatBuilder
AIGenerationTask. makeChatBuilder(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)
Method parameters in net.stoerr.ai.aigenpipeline.framework.task with type arguments of type AIChatBuilder Modifier and Type Method Description AIGenerationTask
AIGenerationTask. execute(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)
Execute the task if necessary.String
AIGenerationTask. explain(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory, String question)
Ask a question about the previous task execution.protected AIChatBuilder
AIGenerationTask. makeChatBuilder(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)
String
AIGenerationTask. toJson(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)
For debugging purposes: returns the JSON that would be sent to the AI.
-