Uses of Class
com.google.genai.ResponseStream
Packages that use ResponseStream
-
Uses of ResponseStream in com.google.genai
Methods in com.google.genai that return ResponseStreamModifier and TypeMethodDescriptionModels.generateContentStream
(String model, Content content, GenerateContentConfig config) Generates content with streaming support given a GenAI model and a content object.Models.generateContentStream
(String model, String text, GenerateContentConfig config) Generates content with streaming support given a GenAI model and a text string.Models.generateContentStream
(String model, List<Content> contents, GenerateContentConfig config) Generates content with streaming support given a GenAI model and a list of content.Chat.sendMessageStream
(Content content) Sends a message to the model in the current multi-turn chat session and returns a stream of responses.Chat.sendMessageStream
(Content content, GenerateContentConfig config) Sends a message to the model in the current multi-turn chat session and returns a stream of responses.Chat.sendMessageStream
(String text) Sends a message to the model in the current multi-turn chat session and returns a stream of responses.Chat.sendMessageStream
(String text, GenerateContentConfig config) Sends a message to the model in the current multi-turn chat session and returns a stream of responses.Chat.sendMessageStream
(List<Content> contents) Sends a message to the model in the current multi-turn chat session and returns the model's response.Chat.sendMessageStream
(List<Content> contents, GenerateContentConfig config) Sends a message to the model in the current multi-turn chat session and returns a stream of responses.Methods in com.google.genai that return types with arguments of type ResponseStreamModifier and TypeMethodDescriptionAsyncModels.generateContentStream
(String model, Content content, GenerateContentConfig config) Asynchronously generates content with streaming support given a GenAI model and a content object.AsyncModels.generateContentStream
(String model, String text, GenerateContentConfig config) Asynchronously generates content with streaming support given a GenAI model and a text string.AsyncModels.generateContentStream
(String model, List<Content> contents, GenerateContentConfig config) Asynchronously generates content with streaming support given a GenAI model and a list of content.AsyncChat.sendMessageStream
(Content content) Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.AsyncChat.sendMessageStream
(Content content, GenerateContentConfig config) Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.AsyncChat.sendMessageStream
(String text) Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.AsyncChat.sendMessageStream
(String text, GenerateContentConfig config) Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.AsyncChat.sendMessageStream
(List<Content> contents) Sends a message to the model in the current multi-turn chat session and returns the model's response.AsyncChat.sendMessageStream
(List<Content> contents, GenerateContentConfig config) Asynchronously sends a message to the model in the current multi-turn chat session and returns a stream of responses.