Class CreateChunkRequest
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Represents a request to create a Chunk.
public class CreateChunkRequest
- Inheritance
-
CreateChunkRequest
- Inherited Members
- Extension Methods
Constructors
CreateChunkRequest()
Initializes a new instance of the CreateChunkRequest class for JSON deserialization.
public CreateChunkRequest()
CreateChunkRequest(string, Chunk)
Initializes a new instance of the CreateChunkRequest class with the specified parent and chunk.
public CreateChunkRequest(string parent, Chunk chunk)
Parameters
parentstringThe name of the document where this chunk will be created.
chunkChunkThe chunk to create.
Properties
Chunk
Required. The Chunk to create.
[JsonPropertyName("chunk")]
public Chunk Chunk { get; set; }
Property Value
Parent
Required. The name of the Document where this Chunk will be created.
Example: corpora/my-corpus-123/documents/the-doc-abc.
[JsonPropertyName("parent")]
public string Parent { get; set; }