openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Assistants/AssistantModificationOptions.cs
45lines · modeblame
9f9f2936Jose Arriaga Maldonado2 years ago | 1 | using System.Collections.Generic; |
79014abcShivangiReja1 years ago | 2 | using System.Diagnostics.CodeAnalysis; |
9f9f2936Jose Arriaga Maldonado2 years ago | 3 | |
| 4 | namespace OpenAI.Assistants; | |
| 5 | | |
| 6 | /// <summary> | |
| 7 | /// Represents additional options available when modifying an existing <see cref="Assistant"/>. | |
| 8 | /// </summary> | |
79014abcShivangiReja1 years ago | 9 | [Experimental("OPENAI001")] |
9f9f2936Jose Arriaga Maldonado2 years ago | 10 | [CodeGenModel("ModifyAssistantRequest")] |
| 11 | public partial class AssistantModificationOptions | |
| 12 | { | |
| 13 | /// <summary> | |
| 14 | /// The replacement model that the assistant should use. | |
| 15 | /// </summary> | |
58f93c8dShivangiReja2 years ago | 16 | public string Model { get; set; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 17 | |
| 18 | /// <summary> | |
| 19 | /// <para> | |
| 20 | /// A list of tool enabled on the assistant. | |
| 21 | /// </para> | |
| 22 | /// There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`. | |
| 23 | /// </summary> | |
| 24 | [CodeGenMember("Tools")] | |
2ab1a942Jose Arriaga Maldonado1 years ago | 25 | public IList<ToolDefinition> DefaultTools { get; } = new ChangeTrackingList<ToolDefinition>(); |
9f9f2936Jose Arriaga Maldonado2 years ago | 26 | |
| 27 | // CUSTOM: reuse common request/response models for tool resources. Note that modification operations use the | |
| 28 | // response models (which do not contain resource initialization helpers). | |
| 29 | | |
| 30 | /// <inheritdoc cref="ToolResources"/> | |
| 31 | [CodeGenMember("ToolResources")] | |
58f93c8dShivangiReja2 years ago | 32 | public ToolResources ToolResources { get; set; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 33 | |
| 34 | /// <inheritdoc cref="AssistantResponseFormat"/> | |
| 35 | [CodeGenMember("ResponseFormat")] | |
58f93c8dShivangiReja2 years ago | 36 | public AssistantResponseFormat ResponseFormat { get; set; } |
9f9f2936Jose Arriaga Maldonado2 years ago | 37 | |
| 38 | /// <summary> | |
| 39 | /// 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. | |
| 40 | /// | |
| 41 | /// We generally recommend altering this or temperature but not both. | |
| 42 | /// </summary> | |
| 43 | [CodeGenMember("TopP")] | |
58f93c8dShivangiReja2 years ago | 44 | public float? NucleusSamplingFactor { get; set; } |
79014abcShivangiReja1 years ago | 45 | } |