OpenAIChatCopilotOptions.WithDocument

WithDocument(TextDocument)

Adds a text document to the document collection for the chat copilot options.

public OpenAIChatCopilotOptions WithDocument(TextDocument textDocument)
ParameterTypeDescription
textDocumentTextDocumentThe text document to add.

Return Value

The current instance of OpenAIChatCopilotOptions.

See Also


WithDocument(PdfDocument)

Adds a PDF document to the document collection for the chat copilot options.

public OpenAIChatCopilotOptions WithDocument(PdfDocument pdfDocument)
ParameterTypeDescription
pdfDocumentPdfDocumentThe PDF document to add.

Return Value

The current instance of OpenAIChatCopilotOptions.

See Also


WithDocument(string)

Adds a document path to the document collection for the chat copilot options.

public OpenAIChatCopilotOptions WithDocument(string filePath)
ParameterTypeDescription
filePathStringThe file path of the document to add.

Return Value

The current instance of OpenAIChatCopilotOptions.

See Also