Class GenerateContentConfig (0.6.0)

public class GenerateContentConfig

This class holds all the configs when making a generate content API call

Inheritance

java.lang.Object > GenerateContentConfig

Static Methods

newBuilder()

public static GenerateContentConfig.Builder newBuilder()

Creates a builder for the GenerateContentConfig.

Returns
Type Description
GenerateContentConfig.Builder

Methods

getGenerationConfig()

public GenerationConfig getGenerationConfig()

Returns the com.google.cloud.vertexai.api.GenerationConfig of this config.

Returns
Type Description
GenerationConfig

getSafetySettings()

public ImmutableList<SafetySetting> getSafetySettings()

Returns a list of com.google.cloud.vertexai.api.SafetySettings of this config.

Returns
Type Description
com.google.common.collect.ImmutableList<SafetySetting>

getTools()

public ImmutableList<Tool> getTools()

Returns a list of com.google.cloud.vertexai.api.Tool of this config.

Returns
Type Description
com.google.common.collect.ImmutableList<Tool>