Class KnowledgeEntityRelationshipCollection<TEntity, TRelationship>
- Namespace
- FoundationaLLM.Common.Models.Knowledge
- Assembly
- FoundationaLLM.Common.dll
Represents a subset of entities and relationship in a knowledge graph.
public class KnowledgeEntityRelationshipCollection<TEntity, TRelationship> where TEntity : class, new() where TRelationship : class, new()
Type Parameters
TEntity
TRelationship
- Inheritance
-
KnowledgeEntityRelationshipCollection<TEntity, TRelationship>
- Inherited Members
- Extension Methods
Constructors
KnowledgeEntityRelationshipCollection()
Initializes a new instance of the KnowledgeEntityRelationshipCollection<TEntity, TRelationship> class.
public KnowledgeEntityRelationshipCollection()
Properties
Entities
Gets or sets the list of entities.
[JsonPropertyName("entities")]
public List<TEntity> Entities { get; set; }
Property Value
- List<TEntity>
Relationships
Gets or sets the list of relationships.
[JsonPropertyName("relationships")]
public List<TRelationship> Relationships { get; set; }
Property Value
- List<TRelationship>