GeminiContentRequestSpecification
open class GeminiContentRequestSpecification(var project: String? = null, var location: String? = null, var apiVersion: String = "v1", var path: String? = null, var seed: Number? = null, maxOutputTokens: Int? = null) : AbstractInferenceRequestSpecification<GenerateContentRequest> (source)
Represents the specification for a Gemini content generation request.
Extends ModelRequestSpecification specifically for configuring and validating parameters related to GenerateContentRequest objects. This includes overriding methods to add matchers for specific conditions, such as ensuring messages from the system or user contain specified substrings.
Author
Konstantin Pavlov
Constructors
Properties
Link copied to clipboard
Either v1 or v1beta1. Default is v1. See API versions explained
Link copied to clipboard
An optional maximum number of tokens to generate.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
Configures the API version to "v1beta1" for Gemini content-related requests.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun requestBodyContainsIgnoringCase(substring: String): ModelRequestSpecification<GenerateContentRequest>
Link copied to clipboard
fun requestBodyDoesNotContains(substring: String): ModelRequestSpecification<GenerateContentRequest>
Link copied to clipboard
Link copied to clipboard
fun requestBodyEquals(requestObject: GenerateContentRequest): ModelRequestSpecification<GenerateContentRequest>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Configures the API version to "v1" for Gemini content-related requests.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard