类 OpenAIStreamOptions
java.lang.Object
io.agentscope.core.formatter.openai.dto.OpenAIStreamOptions
OpenAI stream options DTO.
This class represents options for streaming responses.
Example:
{
"include_usage": true
}
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidsetIncludeUsage(Boolean includeUsage) static OpenAIStreamOptionsCreate a stream options with include_usage enabled.
-
构造器详细资料
-
OpenAIStreamOptions
public OpenAIStreamOptions() -
OpenAIStreamOptions
-
-
方法详细资料
-
getIncludeUsage
-
setIncludeUsage
-
withUsage
Create a stream options with include_usage enabled.- 返回:
- a new OpenAIStreamOptions with includeUsage=true
-