Uses of Class
com.google.genkit.ai.middleware.ModelParams
Packages that use ModelParams
-
Uses of ModelParams in com.google.genkit.ai.middleware
Methods in com.google.genkit.ai.middleware that return ModelParamsModifier and TypeMethodDescriptionModelParams.withRequest(ModelRequest request) Returns a new ModelParams with the given request, preserving the stream callback.ModelParams.withStreamCallback(Consumer<ModelResponseChunk> streamCallback) Returns a new ModelParams with the given stream callback, preserving the request.Methods in com.google.genkit.ai.middleware with parameters of type ModelParamsModifier and TypeMethodDescriptionModelNext.apply(ActionContext ctx, ModelParams params) Calls the next handler in the model chain.BaseGenerationMiddleware.wrapModel(ActionContext ctx, ModelParams params, ModelNext next) GenerationMiddleware.wrapModel(ActionContext ctx, ModelParams params, ModelNext next) Wraps each model API call.