Class OpenAIChatCopilotOptions

OpenAIChatCopilotOptions class

Represents the options for configuring the OpenAICopilot.

public class OpenAIChatCopilotOptions : OpenAIAssistantCopilotOptionsBase, 
    IChatCopilotOptions<OpenAIChatCopilotOptions>

Properties

NameDescription
AssistantName { get; set; }Gets or sets the name of the assistant.
ContextBackupJsonPath { get; set; }Gets or sets the file path for the context backup JSON.
DocumentCollection { get; set; }Gets or sets the collection of documents to be processed.
MaxCompletionTokens { get; set; }Gets or sets the maximum number of completion tokens that may be used over the course of the run.
MaxPromptTokens { get; set; }Gets or sets the maximum number of prompt tokens that may be used over the course of the run.
Model { get; set; }Gets or sets the model to use for the assistant.
RestoreContextFromBackup { get; set; }Gets or sets a value indicating whether to restore the context from backup.
SystemInstructions { get; set; }Gets or sets the file path for the text file containing assistant system instructions.
Temperature { get; set; }Gets or sets the sampling temperature to use for the model.
TopP { get; set; }Gets or sets the top-p value for nucleus sampling.
TruncationStrategy { get; set; }Gets or sets the truncation strategy for the thread.
VectorStoreExpireDays { get; set; }Gets or sets the number of days before the vector store expires.

Methods

NameDescription
static Create()Creates a new instance of OpenAIChatCopilotOptions.
static Create(Action<OpenAIChatCopilotOptions>)Creates an instance of OpenAIChatCopilotOptions and configures it using the provided delegate.
GetOptions()Gets the current OpenAIChatCopilotOptions.
WithAssistantName(string)Sets the assistant name for the chat copilot options.
WithContextBackupJsonPath(string)Sets the file path for the context backup JSON in the chat copilot options.
WithDocument(PdfDocument)Adds a PDF document to the document collection for the chat copilot options.
WithDocument(string)Adds a document path to the document collection for the chat copilot options.
WithDocument(TextDocument)Adds a text document to the document collection for the chat copilot options.
WithDocuments(DocumentCollection)Sets the document collection for the chat copilot options.
WithDocuments(List<PdfDocument>)Adds multiple PDF documents to the document collection for the chat copilot options.
WithDocuments(List<string>)Adds multiple document paths to the document collection for the chat copilot options.
WithDocuments(List<TextDocument>)Adds multiple text documents to the document collection for the chat copilot options.
WithInstructions(string)Sets the instructions for the chat copilot options.
WithMaxCompletionTokens(int?)Sets the max completion tokens for the chat copilot options.
WithMaxPromptTokens(int?)Sets the max prompt tokens for the chat copilot options.
WithModel(string)Sets the model for the chat copilot options.
WithRestoreContextFromBackup(bool)Sets whether to restore the context from backup in the chat copilot options.
WithTemperature(double?)Sets the temperature for the chat copilot options.
WithTopP(double?)Sets the top P value for the chat copilot options.
WithTruncationStrategy(TruncationStrategy)Sets the truncation strategy for the chat copilot options.
WithVectorStoreExpireDays(int)Sets the number of days for vector store expiration in the chat copilot options.

See Also