Table of Contents

Class FunctionResponsePart

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

A datatype containing media that is part of a FunctionResponse message. A FunctionResponsePart consists of data which has an associated datatype. A FunctionResponsePart can only contain one of the accepted types in FunctionResponsePart.data. A FunctionResponsePart must have a fixed IANA MIME type identifying the type and subtype of the media if the inline_data field is filled with raw bytes.

public class FunctionResponsePart
Inheritance
FunctionResponsePart
Inherited Members
Extension Methods

Properties

FileData

Optional. URI based data.

[JsonPropertyName("fileData")]
public FunctionResponseFileData? FileData { get; set; }

Property Value

FunctionResponseFileData

InlineData

Optional. Inline media bytes.

[JsonPropertyName("inlineData")]
public FunctionResponseBlob? InlineData { get; set; }

Property Value

FunctionResponseBlob