DocumentsClientCreateDocumentAsync Method

Creates a new Document resource.

Definition

Namespace: GenerativeAI.Clients
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public Task<Document?> CreateDocumentAsync(
	string parent,
	Document document
)

Parameters

parent  String
The name of the Corpus where this Document will be created. Required.
document  Document
The Document to create.

Return Value

TaskDocument
The created Document.

See Also