Table of Contents

Class VertexRagStoreRagResource

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The definition of the Rag resource. This data type is not supported in Gemini API.

public record VertexRagStoreRagResource : IEquatable<VertexRagStoreRagResource>
Inheritance
VertexRagStoreRagResource
Implements
Inherited Members

Properties

RagCorpus

Optional. RagCorpora resource name. Format: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}

[JsonPropertyName("ragCorpus")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? RagCorpus { get; set; }

Property Value

string

RagFileIds

Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field.

[JsonPropertyName("ragFileIds")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? RagFileIds { get; set; }

Property Value

List<string>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a VertexRagStoreRagResource object.

public static VertexRagStoreRagResource? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

VertexRagStoreRagResource

The deserialized VertexRagStoreRagResource object, or null if deserialization fails.