GeminiContentBuildingStep

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.

Constructors

Link copied to clipboard
constructor(mokksy: MokksyServer, buildingStep: BuildingStep<GenerateContentRequest>)

Functions

Link copied to clipboard

open infix override fun responds(block: suspend GeminiContentResponseSpecification.() -> Unit)

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)