io.cequence.openaiscala.gemini.domain.settings

Members list

Concise view

Type members

Classlikes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait FunctionCallingMode extends EnumValue

Attributes

Companion:
object
Graph
Supertypes
trait EnumValue
class Object
trait Matchable
class Any
Known subtypes
object ANY.type
object AUTO.type
object MODE_UNSPECIFIED.type
object NONE.type

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
case class GenerateContentSettings(model: String, tools: Option[Seq[Tool]], toolConfig: Option[ToolConfig], safetySettings: Option[Seq[SafetySetting]], systemInstruction: Option[Content], generationConfig: Option[GenerationConfig], cachedContent: Option[String])

The request body contains data with the following structure:

The request body contains data with the following structure:

Attributes

cachedContent

Optional. The name of the content cached to use as context to serve the prediction. Format: cachedContents/{cachedContent}

generationConfig

Optional. Configuration options for model generation and outputs.

model

Required. The model to use for generating content.

safetySettings

Optional. A list of unique SafetySetting instances for blocking unsafe content. This will be enforced on the GenerateContentRequest. Refer to the guide for detailed information on available safety settings. Also refer to the Safety guidance to learn how to incorporate safety considerations in your AI applications.

systemInstruction

Optional. Developer set system instruction(s). Currently, text only.

toolConfig

Optional. Tool configuration for any Tool specified in the request. Refer to the Function calling guide for a usage example.

tools

Optional. A list of Tools the Model may use to generate the next response. A Tool is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the Model. Supported Tools are Function and codeExecution. Refer to the Function calling and the Code execution guides to learn more.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class GenerationConfig(stopSequences: Option[Seq[String]], responseMimeType: Option[String], responseSchema: Option[Schema], responseModalities: Option[Seq[Modality]], candidateCount: Option[Int], maxOutputTokens: Option[Int], temperature: Option[Double], topP: Option[Double], topK: Option[Int], seed: Option[Int], presencePenalty: Option[Double], frequencyPenalty: Option[Double], responseLogprobs: Option[Boolean], logprobs: Option[Int], enableEnhancedCivicAnswers: Option[Boolean], speechConfig: Option[SpeechConfig])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class PrebuiltVoiceConfig(voiceName: String)

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
case class SafetySetting(category: HarmCategory, threshold: HarmBlockThreshold)

Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.

Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.

Attributes

category

Required. The category for this setting.

threshold

Required. Controls the probability threshold at which harm is blocked.

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
sealed trait SpeechConfig

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait ToolConfig

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ToolConfig

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type