OllamaGenerateBuildingStep
OllamaGenerateBuildingStep is a specialized implementation of AbstractBuildingStep intended for constructing and managing generate completion responses as part of the Ollama Mock Server setup.
The class provides features to create both single-blocked responses and streaming responses for simulated generate completions using mock data. It extends the functionality of AbstractBuildingStep by applying specific logic for generating fake responses compliant with Ollama's generate completion API.
Parameters
The mock server instance used for handling mock request and response lifecycle.
The underlying building step for managing and supporting response configurations for Ollama Generate Completion requests.
Constructors
Functions
Configures a mock generate completion response for an Ollama generate request.
Configures a streaming mock response for a generate completion request using the provided specification block.