Uses of Class
com.google.genkit.ai.GenerateActionOptions
Packages that use GenerateActionOptions
-
Uses of GenerateActionOptions in com.google.genkit.ai
Methods in com.google.genkit.ai that return GenerateActionOptionsModifier and TypeMethodDescriptionGenerateActionOptions.withMessages(List<Message> newMessages) Returns a newGenerateActionOptionswith the given messages, preserving all other fields.Returns a newGenerateActionOptionswith the given model name, preserving all other fields.Methods in com.google.genkit.ai with parameters of type GenerateActionOptionsModifier and TypeMethodDescriptionGenerateAction.run(ActionContext ctx, GenerateActionOptions options) GenerateAction.run(ActionContext ctx, GenerateActionOptions options, Consumer<ModelResponseChunk> streamCallback) -
Uses of GenerateActionOptions in com.google.genkit.ai.middleware
Methods in com.google.genkit.ai.middleware that return GenerateActionOptionsModifier and TypeMethodDescriptionGenerateParams.getRequest()Returns the current high-level generate options.Methods in com.google.genkit.ai.middleware with parameters of type GenerateActionOptionsModifier and TypeMethodDescriptionGenerateParams.withRequest(GenerateActionOptions request) Returns a new GenerateParams with the given request, preserving other fields.Constructors in com.google.genkit.ai.middleware with parameters of type GenerateActionOptionsModifierConstructorDescriptionGenerateParams(GenerateActionOptions request, int iteration) Creates GenerateParams with messageIndex defaulting to the message count in the request.GenerateParams(GenerateActionOptions request, int iteration, int messageIndex) Creates GenerateParams.GenerateParams(GenerateActionOptions request, int iteration, int messageIndex, Consumer<ModelResponseChunk> onChunk) Creates GenerateParams with all fields including streaming callback.