GenerateContentSettings

io.cequence.openaiscala.gemini.domain.settings.GenerateContentSettings
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:

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

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product