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 AIChatBuilderAIGenPipeline. 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 classCopyPseudoAIChatBuilderImplA pseudo AI chat model that just copies the input to the output.classOpenAIChatBuilderImplImplementation 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 AIChatBuilderAIChatBuilder. assistantMsg(String text)Adds an assistant message to the chat.AIChatBuilderCopyPseudoAIChatBuilderImpl. assistantMsg(String text)We assume the "put it into the mouth of the AI" pattern is used.AIChatBuilderOpenAIChatBuilderImpl. assistantMsg(String text)AIChatBuilderAIChatBuilder. key(String key)Sets the API key for the chat completion request.AIChatBuilderCopyPseudoAIChatBuilderImpl. key(String key)AIChatBuilderOpenAIChatBuilderImpl. key(String key)AIChatBuilderAIChatBuilder. maxTokens(int maxTokens)Sets the maximum number of tokens the completion can use.AIChatBuilderCopyPseudoAIChatBuilderImpl. maxTokens(int maxTokens)AIChatBuilderOpenAIChatBuilderImpl. maxTokens(int maxTokens)AIChatBuilderAIChatBuilder. model(String model)Sets the AI model to be used for the chat completion.AIChatBuilderCopyPseudoAIChatBuilderImpl. model(String model)AIChatBuilderOpenAIChatBuilderImpl. model(String model)AIChatBuilderAIChatBuilder. organizationId(String organizationId)Sets the organization ID for the chat completion request - if applicable (OpenAI).AIChatBuilderCopyPseudoAIChatBuilderImpl. organizationId(String organizationId)AIChatBuilderOpenAIChatBuilderImpl. organizationId(String organizationId)AIChatBuilderAIChatBuilder. systemMsg(String text)Adds a system message to the chat.AIChatBuilderCopyPseudoAIChatBuilderImpl. systemMsg(String text)AIChatBuilderOpenAIChatBuilderImpl. systemMsg(String text)AIChatBuilderAIChatBuilder. url(String url)Sets the URL for the chat completion request.AIChatBuilderCopyPseudoAIChatBuilderImpl. url(String url)AIChatBuilderOpenAIChatBuilderImpl. url(String url)AIChatBuilderAIChatBuilder. userMsg(String text)Adds a user message to the chat.AIChatBuilderCopyPseudoAIChatBuilderImpl. userMsg(String text)AIChatBuilderOpenAIChatBuilderImpl. 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 AIChatBuilderAIGenerationTask. 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 AIGenerationTaskAIGenerationTask. execute(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)Execute the task if necessary.StringAIGenerationTask. explain(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory, String question)Ask a question about the previous task execution.protected AIChatBuilderAIGenerationTask. makeChatBuilder(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)StringAIGenerationTask. toJson(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)For debugging purposes: returns the JSON that would be sent to the AI.
-