类 StreamUserInput.Builder
java.lang.Object
io.agentscope.core.agent.user.StreamUserInput.Builder
- 封闭类:
StreamUserInput
Builder for StreamUserInput.
Provides fluent API for configuring input/output streams and prompt hint. Defaults to System.in/System.out if not specified.
-
方法概要
修饰符和类型方法说明build()Build the StreamUserInput instance.Set the input hint prompt.inputStream(InputStream inputStream) Set the input stream to read from.outputStream(OutputStream outputStream) Set the output stream to write to.
-
方法详细资料
-
inputHint
Set the input hint prompt.- 参数:
inputHint- The prompt text to display before user input- 返回:
- This builder
-
inputStream
Set the input stream to read from.- 参数:
inputStream- The input stream (defaults to System.in)- 返回:
- This builder
-
outputStream
Set the output stream to write to.- 参数:
outputStream- The output stream (defaults to System.out)- 返回:
- This builder
-
build
Build the StreamUserInput instance.- 返回:
- A new StreamUserInput instance
-