Class TranslationRuntimeSelectionStage
java.lang.Object
bg.codexio.ai.openai.api.sdk.voice.translation.TranslationConfigurationStage
bg.codexio.ai.openai.api.sdk.voice.translation.TranslationRuntimeSelectionStage
- All Implemented Interfaces:
RuntimeSelectionStage
public class TranslationRuntimeSelectionStage
extends TranslationConfigurationStage
implements RuntimeSelectionStage
Configures how the HTTP client to act.
Whether the requests will be sent in an immediate blocking manner
(synchronous)
or they will be sent asynchronously via promises or reactive API.
-
Field Summary
Fields inherited from class bg.codexio.ai.openai.api.sdk.voice.translation.TranslationConfigurationStage
executor, requestBuilder -
Method Summary
-
Method Details
-
immediate
Requests will be synchronously blocking- Specified by:
immediatein interfaceRuntimeSelectionStage- Returns:
SynchronousPromptStageto prompt in blocking fashion
-
async
Requests will be asynchronous with promises- Specified by:
asyncin interfaceRuntimeSelectionStage- Returns:
AsyncPromptStageto prompt with promises
-
reactive
Requests will be asynchronous reactive- Specified by:
reactivein interfaceRuntimeSelectionStage- Returns:
ReactivePromptStageto prompt in reactive fashion
-