Uses of Class
com.google.genkit.ai.ModelResponseChunk
Packages that use ModelResponseChunk
Package
Description
This package provides types for the Genkit agents feature, including enums and models for agent
state snapshots, agent execution lifecycle, and agent-related operations.
-
Uses of ModelResponseChunk in com.google.genkit
Method parameters in com.google.genkit with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionGenkit.generateStream(GenerateOptions<?> options, Consumer<ModelResponseChunk> streamCallback) Generates a streaming model response using the specified options. -
Uses of ModelResponseChunk in com.google.genkit.ai
Methods in com.google.genkit.ai that return ModelResponseChunkModifier and TypeMethodDescriptionstatic ModelResponseChunkCreates a ModelResponseChunk with text content.Method parameters in com.google.genkit.ai with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionGenerateAction.run(ActionContext ctx, GenerateActionOptions options, Consumer<ModelResponseChunk> streamCallback) default ModelResponseModel.run(ActionContext ctx, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) Generates a streaming response from the given request. -
Uses of ModelResponseChunk in com.google.genkit.ai.agent
Methods in com.google.genkit.ai.agent that return ModelResponseChunkModifier and TypeMethodDescriptionAgentStreamChunk.getModelChunk()Returns the model response chunk.AgentChunk.modelChunk()Returns the model response chunk.Methods in com.google.genkit.ai.agent with parameters of type ModelResponseChunkModifier and TypeMethodDescriptionAgentStreamChunk.Builder.modelChunk(ModelResponseChunk modelChunk) voidAgentStreamChunk.setModelChunk(ModelResponseChunk modelChunk) Sets the model response chunk. -
Uses of ModelResponseChunk in com.google.genkit.ai.middleware
Methods in com.google.genkit.ai.middleware that return types with arguments of type ModelResponseChunkModifier and TypeMethodDescriptionGenerateParams.getOnChunk()Returns the streaming chunk callback, ornullif this is a non-streaming request.ModelParams.getStreamCallback()Returns the streaming callback, or null if not streaming.Method parameters in com.google.genkit.ai.middleware with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionGenerateParams.withOnChunk(Consumer<ModelResponseChunk> onChunk) Returns a new GenerateParams with the given onChunk callback, preserving other fields.ModelParams.withStreamCallback(Consumer<ModelResponseChunk> streamCallback) Returns a new ModelParams with the given stream callback, preserving the request.Constructor parameters in com.google.genkit.ai.middleware with type arguments of type ModelResponseChunkModifierConstructorDescriptionGenerateParams(GenerateActionOptions request, int iteration, int messageIndex, Consumer<ModelResponseChunk> onChunk) Creates GenerateParams with all fields including streaming callback.ModelParams(ModelRequest request, Consumer<ModelResponseChunk> streamCallback) Creates ModelParams. -
Uses of ModelResponseChunk in com.google.genkit.plugins.anthropic
Method parameters in com.google.genkit.plugins.anthropic with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionAnthropicModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) -
Uses of ModelResponseChunk in com.google.genkit.plugins.awsbedrock
Method parameters in com.google.genkit.plugins.awsbedrock with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionAwsBedrockModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) -
Uses of ModelResponseChunk in com.google.genkit.plugins.compatoai
Method parameters in com.google.genkit.plugins.compatoai with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionCompatOAIModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) -
Uses of ModelResponseChunk in com.google.genkit.plugins.googlegenai
Method parameters in com.google.genkit.plugins.googlegenai with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionGeminiModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) ImagenModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) OmniModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) TtsModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) VeoModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) -
Uses of ModelResponseChunk in com.google.genkit.plugins.ollama
Method parameters in com.google.genkit.plugins.ollama with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionOllamaModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) -
Uses of ModelResponseChunk in com.google.genkit.plugins.openai
Method parameters in com.google.genkit.plugins.openai with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionOpenAIImageModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) OpenAIModel.run(ActionContext context, ModelRequest request, Consumer<ModelResponseChunk> streamCallback) -
Uses of ModelResponseChunk in com.google.genkit.prompt
Method parameters in com.google.genkit.prompt with type arguments of type ModelResponseChunkModifier and TypeMethodDescriptionDotPrompt.generate(Registry registry, I input, GenerateOptions options, Consumer<ModelResponseChunk> streamCallback) Generates a response using this prompt with streaming.ExecutablePrompt.stream(I input, GenerateOptions options, Consumer<ModelResponseChunk> streamCallback) Generates a response with streaming and custom options.ExecutablePrompt.stream(I input, Consumer<ModelResponseChunk> streamCallback) Generates a response with streaming.