UGemini 2.0.1
A C# wrapper for the Google Gemini API.
Loading...
Searching...
No Matches
Uralstech.UGemini.Models.Generation.Schema.GeminiSchema Class Reference

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. More...

Public Attributes

GeminiSchemaDataType Type
 Data type.
 
GeminiSchemaDataFormat Format = GeminiSchemaDataFormat.Unspecified
 The format of the data. This is used only for primitive datatypes.
 
string Description = null
 A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.
 
bool? Nullable = null
 Indicates if the value may be null.
 
string[] Enum = null
 Possible values of the element of GeminiSchemaDataType.String with enum format.
 
long? MaxItems = null
 Optional. Maximum number of the elements for GeminiSchemaDataType.Array.
 
Dictionary< string, GeminiSchemaProperties = null
 The properties of GeminiSchemaDataType.Object.
 
string[] Required = null
 Required properties of GeminiSchemaDataType.Object.
 
GeminiSchema Items = null
 Schema of the elements of GeminiSchemaDataType.Array.
 

Detailed Description

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.

Member Data Documentation

◆ Enum

string [] Uralstech.UGemini.Models.Generation.Schema.GeminiSchema.Enum = null

Possible values of the element of GeminiSchemaDataType.String with enum format.

For example we can define an Enum Direction as:

GeminiSchema enumSchema = new()
{
Enum = new string[]
{
"EAST",
"NORTH",
"SOUTH",
"WEST",
},
};
The Schema object allows the definition of input and output data types. These types can be objects,...
Definition GeminiSchema.cs:13
GeminiSchemaDataType Type
Data type.
Definition GeminiSchema.cs:17
string[] Enum
Possible values of the element of GeminiSchemaDataType.String with enum format.
Definition GeminiSchema.cs:59
GeminiSchemaDataFormat Format
The format of the data. This is used only for primitive datatypes.
Definition GeminiSchema.cs:23
GeminiSchemaDataFormat
Defines the format of schema data.
Definition GeminiSchemaDataFormat.cs:12
GeminiSchemaDataType
Contains the list of OpenAPI data types as defined by the OpenAPI Specification.
Definition GeminiSchemaDataType.cs:12

The documentation for this class was generated from the following file: