Class OpenAIStreamOptions
java.lang.Object
io.agentscope.extensions.model.openai.dto.OpenAIStreamOptions
OpenAI stream options DTO.
This class represents options for streaming responses.
Example:
{
"include_usage": true
}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetIncludeUsage(Boolean includeUsage) static OpenAIStreamOptionsCreate a stream options with include_usage enabled.
-
Constructor Details
-
OpenAIStreamOptions
public OpenAIStreamOptions() -
OpenAIStreamOptions
-
-
Method Details
-
getIncludeUsage
-
setIncludeUsage
-
withUsage
Create a stream options with include_usage enabled.- Returns:
- a new OpenAIStreamOptions with includeUsage=true
-