io.cequence.openaiscala.gemini.domain
Members list
Type members
Classlikes
The request body contains an instance of CachedContent.
The request body contains an instance of CachedContent.
Attributes
- contents
Optional. Input only. Immutable. The content to cache.
- displayName
Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- expiration
Specifies when this resource will expire. Can be either expireTime or ttl.
- Timestamp in UTC of when this resource is considered expired. Uses RFC 3339 format.
- New TTL for this resource, input only. A duration in seconds with up to nine fractional digits, ending with 's'.
- model
Required. Immutable. The name of the Model to use for cached content. Format: models/{model}.
- name
Optional. Identifier. The resource name referring to the cached content. Format: cachedContents/{id}.
- systemInstruction
Optional. Input only. Immutable. Developer set system instruction. Currently text only.
- toolConfig
Optional. Input only. Immutable. Tool config. This config is shared for all tools.
- tools
Optional. Input only. Immutable. A list of Tools the model may use to generate the next response.
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Describes the options to customize dynamic retrieval.
Describes the options to customize dynamic retrieval.
Attributes
- dynamicThreshold
The threshold to be used in dynamic retrieval. If not set, a system default value is used.
- mode
The mode of the predictor to be used in dynamic retrieval.
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait EnumValueclass Objecttrait Matchableclass Any
- Known subtypes
- object MODE_DYNAMIC.typeobject MODE_UNSPECIFIED.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class ExpireTimeclass TTL
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- Expiration.type
Structured representation of a function declaration as defined by the OpenAPI 3.03 specification. Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a Tool by the model and executed by the client.
Structured representation of a function declaration as defined by the OpenAPI 3.03 specification. Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a Tool by the model and executed by the client.
Attributes
- description
Required. A brief description of the function.
- name
Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.
- parameters
Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter.
- response
Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait EnumValueclass Objecttrait Matchableclass Any
- Known subtypes
- object BLOCK_LOW_AND_ABOVE.typeobject BLOCK_MEDIUM_AND_ABOVE.typeobject BLOCK_NONE.typeobject BLOCK_ONLY_HIGH.typeobject HARM_BLOCK_THRESHOLD_UNSPECIFIED.typeobject OFF.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- HarmBlockThreshold.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait EnumValueclass Objecttrait Matchableclass Any
- Known subtypes
- object HARM_CATEGORY_CIVIC_INTEGRITY.typeobject HARM_CATEGORY_DANGEROUS.typeobject HARM_CATEGORY_DANGEROUS_CONTENT.typeobject HARM_CATEGORY_DEROGATORY.typeobject HARM_CATEGORY_HARASSMENT.typeobject HARM_CATEGORY_HATE_SPEECH.typeobject HARM_CATEGORY_MEDICAL.typeobject HARM_CATEGORY_SEXUAL.typeobject HARM_CATEGORY_SEXUALLY_EXPLICIT.typeobject HARM_CATEGORY_TOXICITY.typeobject HARM_CATEGORY_UNSPECIFIED.typeobject HARM_CATEGORY_VIOLENCE.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- HarmCategory.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait EnumValueclass Objecttrait Matchableclass Any
- Known subtypes
- object HARM_PROBABILITY_UNSPECIFIED.typeobject HIGH.typeobject LOW.typeobject MEDIUM.typeobject NEGLIGIBLE.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- HarmProbability.type
Attributes
- baseModelId
Required. The name of the base model, pass this to the generation request. Examples: gemini-1.5-flash
- description
A short description of the model.
- displayName
The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters.
- inputTokenLimit
Maximum number of input tokens allowed for this model.
- maxTemperature
The maximum temperature this model can use.
- name
Required. The resource name of the Model. Refer to Model variants for all allowed values. Format: models/{model} with a {model} naming convention of: "{baseModelId}-{version}" Examples: models/gemini-1.5-flash-001
- outputTokenLimit
Maximum number of output tokens available for this model.
- supportedGenerationMethods
The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as generateMessage and generateContent.
- temperature
Controls the randomness of the output. Values can range over [0.0,maxTemperature], inclusive. A higher value will produce responses that are more varied, while a value closer to 0.0 will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.
- topK
For Top-k sampling. Top-k sampling considers the set of topK most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and topK isn't allowed as a generation parameter.
- topP
For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least topP. This value specifies default to be used by the backend while making the call to the model.
- version
Required. The version number of the model. This represents the major version (1.0 or 1.5)
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class CodeExecutionResultclass ExecutableCodeclass FileDataclass FunctionCallclass FunctionResponseclass InlineDataclass Text
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait EnumValueclass Objecttrait Matchableclass Any
- Known subtypes
- object codeExecutionResult.typeobject executableCode.typeobject fileData.typeobject functionCall.typeobject functionResponse.typeobject inlineData.typeobject text.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- PartPrefix.type
The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object.
The Schema object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an OpenAPI 3.0 schema object.
Attributes
- `type`
Required. Data type.
- description
Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.
- enum
Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]}
- format
Optional. The format of the data. This is used only for primitive datatypes. Supported formats: for NUMBER type: float, double for INTEGER type: int32, int64 for STRING type: enum
- items
Optional. Schema of the elements of Type.ARRAY.
- maxItems
Optional. Maximum number of the elements for Type.ARRAY.
- minItems
Optional. Minimum number of the elements for Type.ARRAY.
- nullable
Optional. Indicates if the value may be null.
- properties
Optional. Properties of Type.OBJECT. An object containing a list of "key": value pairs.
- propertyOrdering
Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response.
- required
Optional. Required properties of Type.OBJECT.
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- SchemaType.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- object CodeExecution.typeclass FunctionDeclarationsobject GoogleSearch.typeclass GoogleSearchRetrieval
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait EnumValueclass Objecttrait Matchableclass Any
- Known subtypes
- object codeExecution.typeobject functionDeclarations.typeobject googleSearch.typeobject googleSearchRetrieval.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
- ToolPrefix.type