Class DataPipelineContentItemContentPart
- Namespace
 - FoundationaLLM.Common.Models.DataPipelines
 
- Assembly
 - FoundationaLLM.Common.dll
 
Represents a content part of a content item.
public class DataPipelineContentItemContentPart : DataPipelineContentItemPartBase
  - Inheritance
 - 
      
      
      
      DataPipelineContentItemContentPart
 
- Inherited Members
 
- Extension Methods
 
Properties
Content
Gets or sets the text content of the content item part.
[JsonPropertyName("content")]
[JsonPropertyOrder(1)]
public string? Content { get; set; }
  Property Value
ContentSizeTokens
Gets or sets the size of the content item part in tokens.
[JsonPropertyName("content_size_tokens")]
[JsonPropertyOrder(2)]
public int ContentSizeTokens { get; set; }
  Property Value
Embedding
Gets or sets the embedding of the content item part.
[JsonPropertyName("embedding")]
[JsonPropertyOrder(3)]
public float[]? Embedding { get; set; }
  Property Value
- float[]
 
Methods
Create(string, int, string, int)
Creates a new instance of DataPipelineContentItemContentPart with the specified parameters.
public static DataPipelineContentItemContentPart Create(string contentItemCanonicalId, int position, string content, int contentSizeTokens)
  Parameters
contentItemCanonicalIdstringThe canonical identifier of the content item.
positionintThe position of the part within the content item.
contentstringThe content of the content item part.
contentSizeTokensintThe size of the content item part in tokens.