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

A datatype containing media that is part of a multi-part Content message. Must only contain one field at a time. More...

Inheritance diagram for Uralstech.UGemini.Models.Content.GeminiContentPart:
Uralstech.UGemini.IAppendableData< GeminiContentPart >

Public Member Functions

void Append (GeminiContentPart data)
 
bool IsAppendable (GeminiContentPart data)
 Is the data to be appended compatible with the current GeminiContentPart?
 
- Public Member Functions inherited from Uralstech.UGemini.IAppendableData< GeminiContentPart >
void Append (T data)
 Appends the data to the current IAppendableData<T>.
 

Public Attributes

string Text = null
 Inline text.
 
GeminiContentBlob InlineData = null
 Inline media bytes.
 
GeminiFunctionCall FunctionCall = null
 A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaratio.name with the arguments and their values.
 
GeminiFunctionResponse FunctionResponse = null
 The result output of a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model.
 
GeminiFileData FileData = null
 URI based data.
 
GeminiExecutableCode ExecutableCode = null
 Code generated by the model that is meant to be executed.
 
GeminiCodeExecutionResult CodeExecutionResult = null
 Result of executing the ExecutableCode.
 

Properties

bool IsEmpty [get]
 Is there no content stored in this GeminiContentPart?
 

Detailed Description

A datatype containing media that is part of a multi-part Content message. Must only contain one field at a time.

Member Function Documentation

◆ IsAppendable()

bool Uralstech.UGemini.Models.Content.GeminiContentPart.IsAppendable ( GeminiContentPart data)

Is the data to be appended compatible with the current GeminiContentPart?

Parameters
dataThe data to be appended.

Member Data Documentation

◆ FileData

GeminiFileData Uralstech.UGemini.Models.Content.GeminiContentPart.FileData = null

URI based data.

Only available in the beta API.

◆ FunctionCall

GeminiFunctionCall Uralstech.UGemini.Models.Content.GeminiContentPart.FunctionCall = null

A predicted FunctionCall returned from the model that contains a string representing the FunctionDeclaratio.name with the arguments and their values.

Only available in the beta API.

◆ FunctionResponse

GeminiFunctionResponse Uralstech.UGemini.Models.Content.GeminiContentPart.FunctionResponse = null

The result output of a FunctionCall that contains a string representing the FunctionDeclaration.name and a structured JSON object containing any output from the function is used as context to the model.

Only available in the beta API.


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