Uses of Interface
net.stoerr.ai.aigenpipeline.framework.chat.AIChatBuilder
-
Packages that use AIChatBuilder Package Description net.stoerr.ai.aigenpipeline.framework.chat net.stoerr.ai.aigenpipeline.framework.task -
-
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 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.AIChatBuilderOpenAIChatBuilderImpl. assistantMsg(String text)AIChatBuilderAIChatBuilder. key(String key)Sets the API key for the chat completion request.AIChatBuilderOpenAIChatBuilderImpl. key(String key)AIChatBuilderAIChatBuilder. maxTokens(int maxTokens)Sets the maximum number of tokens the completion can use.AIChatBuilderOpenAIChatBuilderImpl. maxTokens(int maxTokens)AIChatBuilderAIChatBuilder. model(String model)Sets the AI model to be used for the chat completion.AIChatBuilderOpenAIChatBuilderImpl. model(String model)AIChatBuilderAIChatBuilder. organizationId(String organizationId)Sets the organization ID for the chat completion request - if applicable (OpenAI).AIChatBuilderOpenAIChatBuilderImpl. organizationId(String organizationId)AIChatBuilderAIChatBuilder. systemMsg(String text)Adds a system message to the chat.AIChatBuilderOpenAIChatBuilderImpl. systemMsg(String text)AIChatBuilderAIChatBuilder. url(String url)Sets the URL for the chat completion request.AIChatBuilderOpenAIChatBuilderImpl. url(String url)AIChatBuilderAIChatBuilder. userMsg(String text)Adds a user message to the chat.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, String outputRelPath)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, String outputRelPath)StringAIGenerationTask. toJson(Supplier<AIChatBuilder> chatBuilderFactory, File rootDirectory)For debugging purposes: returns the JSON that would be sent to the AI.
-