Package com.embabel.agent.api.streaming
Class StreamingPromptRunnerBuilder
-
- All Implemented Interfaces:
public final class StreamingPromptRunnerBuilder extends Record
Builder pattern to provide Java equivalent of Kotlin's asStreaming() extension function. Solves the problem that Java cannot directly call Kotlin extension functions.
-
-
Constructor Summary
Constructors Constructor Description StreamingPromptRunnerBuilder()
-
Method Summary
Modifier and Type Method Description StreamingPromptRunner.StreamingwithStreaming()Java equivalent of Kotlin's withStreaming() extension function. StreamingPromptRunner.Streamingstreaming()-
-
Method Detail
-
withStreaming
@Deprecated(forRemoval = true) StreamingPromptRunner.Streaming withStreaming()
Java equivalent of Kotlin's withStreaming() extension function. Provides type-safe access to streaming operations.
-
streaming
StreamingPromptRunner.Streaming streaming()
-
-
-
-