openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Assistants/AssistantModificationOptions.cs

53lines · modeblame

0ca4c062Jose Arriaga Maldonado1 years ago1using OpenAI.Chat;
5dce104aJose Arriaga Maldonado1 years ago2using System.ClientModel;
9f9f2936Jose Arriaga Maldonado2 years ago3using System.Collections.Generic;
79014abcShivangiReja1 years ago4using System.Diagnostics.CodeAnalysis;
9f9f2936Jose Arriaga Maldonado2 years ago5
6namespace OpenAI.Assistants;
7
8/// <summary>
9/// Represents additional options available when modifying an existing <see cref="Assistant"/>.
10/// </summary>
79014abcShivangiReja1 years ago11[Experimental("OPENAI001")]
0ca4c062Jose Arriaga Maldonado1 years ago12[CodeGenType("ModifyAssistantRequest")]
9f9f2936Jose Arriaga Maldonado2 years ago13public partial class AssistantModificationOptions
14{
15/// <summary>
16/// The replacement model that the assistant should use.
17/// </summary>
58f93c8dShivangiReja2 years ago18public string Model { get; set; }
9f9f2936Jose Arriaga Maldonado2 years ago19
20/// <summary>
21/// <para>
22/// A list of tool enabled on the assistant.
23/// </para>
24/// There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`.
25/// </summary>
26[CodeGenMember("Tools")]
5dce104aJose Arriaga Maldonado1 years ago27public IList<ToolDefinition> DefaultTools { get; }
9f9f2936Jose Arriaga Maldonado2 years ago28
29// CUSTOM: reuse common request/response models for tool resources. Note that modification operations use the
30// response models (which do not contain resource initialization helpers).
31
32/// <inheritdoc cref="ToolResources"/>
33[CodeGenMember("ToolResources")]
58f93c8dShivangiReja2 years ago34public ToolResources ToolResources { get; set; }
9f9f2936Jose Arriaga Maldonado2 years ago35
36/// <inheritdoc cref="AssistantResponseFormat"/>
37[CodeGenMember("ResponseFormat")]
58f93c8dShivangiReja2 years ago38public AssistantResponseFormat ResponseFormat { get; set; }
9f9f2936Jose Arriaga Maldonado2 years ago39
40/// <summary>
41/// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.
42///
43/// We generally recommend altering this or temperature but not both.
44/// </summary>
45[CodeGenMember("TopP")]
58f93c8dShivangiReja2 years ago46public float? NucleusSamplingFactor { get; set; }
0ca4c062Jose Arriaga Maldonado1 years ago47
48// CUSTOM: Made internal.
49[CodeGenMember("ReasoningEffort")]
50internal ChatReasoningEffortLevel? ReasoningEffortLevel { get; set; }
5dce104aJose Arriaga Maldonado1 years ago51
52internal BinaryContent ToBinaryContent() => BinaryContent.Create(this, ModelSerializationExtensions.WireOptions);
79014abcShivangiReja1 years ago53}