openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Assistants/AssistantModificationOptions.cs
53lines · modeblame
0ca4c062Jose Arriaga Maldonado1 years ago | 1 | using OpenAI.Chat; |
5dce104aJose Arriaga Maldonado1 years ago | 2 | using System.ClientModel; |
9f9f2936Jose Arriaga Maldonado2 years ago | 3 | using System.Collections.Generic; |
79014abcShivangiReja1 years ago | 4 | using System.Diagnostics.CodeAnalysis; |
9f9f2936Jose Arriaga Maldonado2 years ago | 5 | |
| 6 | namespace OpenAI.Assistants; | |
| 7 | | |
| 8 | /// <summary> | |
| 9 | /// Represents additional options available when modifying an existing <see cref="Assistant"/>. | |
| 10 | /// </summary> | |
79014abcShivangiReja1 years ago | 11 | [Experimental("OPENAI001")] |
0ca4c062Jose Arriaga Maldonado1 years ago | 12 | [CodeGenType("ModifyAssistantRequest")] |
9f9f2936Jose Arriaga Maldonado2 years ago | 13 | public partial class AssistantModificationOptions |
| 14 | { | |
| 15 | /// <summary> | |
| 16 | /// The replacement model that the assistant should use. | |
| 17 | /// </summary> | |
58f93c8dShivangiReja2 years ago | 18 | public string Model { get; set; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 19 | |
| 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 ago | 27 | public IList<ToolDefinition> DefaultTools { get; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 28 | |
| 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 ago | 34 | public ToolResources ToolResources { get; set; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 35 | |
| 36 | /// <inheritdoc cref="AssistantResponseFormat"/> | |
| 37 | [CodeGenMember("ResponseFormat")] | |
58f93c8dShivangiReja2 years ago | 38 | public AssistantResponseFormat ResponseFormat { get; set; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 39 | |
| 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 ago | 46 | public float? NucleusSamplingFactor { get; set; } |
0ca4c062Jose Arriaga Maldonado1 years ago | 47 | |
| 48 | // CUSTOM: Made internal. | |
| 49 | [CodeGenMember("ReasoningEffort")] | |
| 50 | internal ChatReasoningEffortLevel? ReasoningEffortLevel { get; set; } | |
5dce104aJose Arriaga Maldonado1 years ago | 51 | |
| 52 | internal BinaryContent ToBinaryContent() => BinaryContent.Create(this, ModelSerializationExtensions.WireOptions); | |
79014abcShivangiReja1 years ago | 53 | } |