Uses of Interface
com.composum.ai.backend.base.service.chat.GPTCompletionCallback
-
Packages that use GPTCompletionCallback Package Description com.composum.ai.backend.base.service.chat com.composum.ai.backend.base.service.chat.impl -
-
Uses of GPTCompletionCallback in com.composum.ai.backend.base.service.chat
Classes in com.composum.ai.backend.base.service.chat that implement GPTCompletionCallback Modifier and Type Class Description static classGPTCompletionCallback.GPTCompletionCallbackWrapperForwards all methods to a delegate.static classGPTCompletionCallback.GPTCompletionCollectorA simple collector that just takes note of things.Fields in com.composum.ai.backend.base.service.chat declared as GPTCompletionCallback Modifier and Type Field Description protected GPTCompletionCallbackGPTCompletionCallback.GPTCompletionCallbackWrapper. delegateMethods in com.composum.ai.backend.base.service.chat with parameters of type GPTCompletionCallback Modifier and Type Method Description voidGPTContentCreationService. executePromptOnTextStreaming(String prompt, String text, GPTChatRequest additionalParameters, GPTCompletionCallback callback)Executes a given prompt from the user using ChatGPT, using the given text as context.voidGPTContentCreationService. executePromptStreaming(String prompt, GPTChatRequest additionalParameters, GPTCompletionCallback callback)Executes a given prompt from the user using ChatGPT.voidGPTChatCompletionService. streamingChatCompletion(GPTChatRequest request, GPTCompletionCallback callback)Give some messages and receive the streaming response via callback, to reduce waiting time.voidGPTChatCompletionService. streamingChatCompletionWithToolCalls(GPTChatRequest request, GPTCompletionCallback callback)Give some messages and receive the streaming response via callback, to reduce waiting time.voidGPTTranslationService. streamingSingleTranslation(String text, String sourceLanguage, String targetLanguage, GPTConfiguration configuration, GPTCompletionCallback callback)Translate the text from the target to destination language, either Java locale name or language name.Constructors in com.composum.ai.backend.base.service.chat with parameters of type GPTCompletionCallback Constructor Description GPTCompletionCallbackWrapper(GPTCompletionCallback delegate) -
Uses of GPTCompletionCallback in com.composum.ai.backend.base.service.chat.impl
Fields in com.composum.ai.backend.base.service.chat.impl declared as GPTCompletionCallback Modifier and Type Field Description protected GPTCompletionCallbackGPTChatCompletionServiceImpl.StreamDecodingResponseConsumer. callbackMethods in com.composum.ai.backend.base.service.chat.impl with parameters of type GPTCompletionCallback Modifier and Type Method Description voidGPTContentCreationServiceImpl. executePromptOnTextStreaming(String prompt, String text, GPTChatRequest additionalParameters, GPTCompletionCallback callback)voidGPTContentCreationServiceImpl. executePromptStreaming(String prompt, GPTChatRequest additionalParameters, GPTCompletionCallback callback)protected voidGPTChatCompletionServiceImpl. handleStreamingEvent(GPTCompletionCallback callback, long id, String line)Handle a single line of the streaming response.protected voidGPTChatCompletionServiceImpl. performCallAsync(CompletableFuture<Void> finished, long id, org.apache.hc.client5.http.async.methods.SimpleHttpRequest httpRequest, GPTCompletionCallback callback, int tryNumber, long defaultDelay)Executes a call with retries.voidGPTChatCompletionServiceImpl. streamingChatCompletion(GPTChatRequest request, GPTCompletionCallback callback)voidGPTChatCompletionServiceImpl. streamingChatCompletionWithToolCalls(GPTChatRequest request, GPTCompletionCallback callback)voidGPTTranslationServiceImpl. streamingSingleTranslation(String text, String sourceLanguage, String targetLanguage, GPTConfiguration configuration, GPTCompletionCallback callback)protected CompletableFuture<Void>GPTChatCompletionServiceImpl. triggerCallAsync(long id, org.apache.hc.client5.http.async.methods.SimpleHttpRequest httpRequest, GPTCompletionCallback callback)Puts the call into the pipeline; the returned future will be set normally or exceptionally when it's done.Constructors in com.composum.ai.backend.base.service.chat.impl with parameters of type GPTCompletionCallback Constructor Description StreamDecodingResponseConsumer(GPTCompletionCallback callback, CompletableFuture<Void> result, long id)The result of the webservice call is written to callback; result is set when either it completed or aborted.
-