Class VertexRagStoreRagResource
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
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
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a VertexRagStoreRagResource object.
public static VertexRagStoreRagResource? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- VertexRagStoreRagResource
The deserialized VertexRagStoreRagResource object, or null if deserialization fails.