GeminiContentBuildingStep
class GeminiContentBuildingStep(mokksy: MokksyServer, buildingStep: BuildingStep<GenerateContentRequest>) : AbstractBuildingStep<GenerateContentRequest, GeminiContentResponseSpecification> (source)
Building step for configuring responses to Gemini content generation requests.
This class provides methods for configuring both regular and streaming responses to Gemini content generation requests.
Functions
Link copied to clipboard
Configures a regular (non-streaming) response to a Gemini content generation request.
Link copied to clipboard
open infix fun <R : Any> respondsError(block: Consumer<ResponseDefinitionBuilder<GenerateContentRequest, R>>)
open infix fun <T : Any> respondsError(block: suspend ResponseDefinitionBuilder<GenerateContentRequest, T>.() -> Unit)
open fun <T : Any> respondsError(responseType: KClass<T>, block: suspend ResponseDefinitionBuilder<GenerateContentRequest, T>.() -> Unit)