Part Class

A datatype containing media that is part of a multi-part Content message. A Part consists of data which has an associated datatype.
A Part must have a fixed IANA MIME type identifying the type and subtype of the media if the InlineData field is filled with raw bytes.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class Part
Inheritance
Object    Part

Constructors

PartInitializes a new instance of the Part class

Properties

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

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also