openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/AssistantCreationOptions.cs
49lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System; |
| 6 | using System.Collections.Generic; |
| 7 | using OpenAI; |
| 8 | using OpenAI.Chat; |
| 9 | |
| 10 | namespace OpenAI.Assistants |
| 11 | { |
| 12 | public partial class AssistantCreationOptions |
| 13 | { |
| 14 | private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties; |
| 15 | |
| 16 | internal AssistantCreationOptions(string name, string description, string instructions, IDictionary<string, string> metadata, float? temperature, string model, IList<ToolDefinition> tools, ToolResources toolResources, AssistantResponseFormat responseFormat, float? nucleusSamplingFactor, ChatReasoningEffortLevel? reasoningEffortLevel, IDictionary<string, BinaryData> additionalBinaryDataProperties) |
| 17 | { |
| 18 | // Plugin customization: ensure initialization of collections |
| 19 | Name = name; |
| 20 | Description = description; |
| 21 | Instructions = instructions; |
| 22 | Metadata = metadata ?? new ChangeTrackingDictionary<string, string>(); |
| 23 | Temperature = temperature; |
| 24 | Model = model; |
| 25 | Tools = tools ?? new ChangeTrackingList<ToolDefinition>(); |
| 26 | ToolResources = toolResources; |
| 27 | ResponseFormat = responseFormat; |
| 28 | NucleusSamplingFactor = nucleusSamplingFactor; |
| 29 | ReasoningEffortLevel = reasoningEffortLevel; |
| 30 | _additionalBinaryDataProperties = additionalBinaryDataProperties; |
| 31 | } |
| 32 | |
| 33 | public string Name { get; set; } |
| 34 | |
| 35 | public string Description { get; set; } |
| 36 | |
| 37 | public string Instructions { get; set; } |
| 38 | |
| 39 | public IDictionary<string, string> Metadata { get; } |
| 40 | |
| 41 | public float? Temperature { get; set; } |
| 42 | |
| 43 | internal IDictionary<string, BinaryData> SerializedAdditionalRawData |
| 44 | { |
| 45 | get => _additionalBinaryDataProperties; |
| 46 | set => _additionalBinaryDataProperties = value; |
| 47 | } |
| 48 | } |
| 49 | } |