openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/Assistant.cs
71lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System; |
| 6 | using System.Collections.Generic; |
| 7 | using OpenAI; |
| 8 | |
| 9 | namespace OpenAI.Assistants |
| 10 | { |
| 11 | public partial class Assistant |
| 12 | { |
| 13 | private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties; |
| 14 | |
| 15 | internal Assistant(string id, DateTimeOffset createdAt, string name, string description, string model, string instructions) |
| 16 | { |
| 17 | Id = id; |
| 18 | CreatedAt = createdAt; |
| 19 | Name = name; |
| 20 | Description = description; |
| 21 | Model = model; |
| 22 | Instructions = instructions; |
| 23 | Tools = new ChangeTrackingList<ToolDefinition>(); |
| 24 | Metadata = new ChangeTrackingDictionary<string, string>(); |
| 25 | } |
| 26 | |
| 27 | internal Assistant(string id, DateTimeOffset createdAt, string name, string description, string model, string instructions, IReadOnlyList<ToolDefinition> tools, ToolResources toolResources, IReadOnlyDictionary<string, string> metadata, float? temperature, InternalAssistantObjectObject @object, AssistantResponseFormat responseFormat, float? nucleusSamplingFactor, IDictionary<string, BinaryData> additionalBinaryDataProperties) |
| 28 | { |
| 29 | Id = id; |
| 30 | CreatedAt = createdAt; |
| 31 | Name = name; |
| 32 | Description = description; |
| 33 | Model = model; |
| 34 | Instructions = instructions; |
| 35 | Tools = tools; |
| 36 | ToolResources = toolResources; |
| 37 | Metadata = metadata; |
| 38 | Temperature = temperature; |
| 39 | this.Object = @object; |
| 40 | ResponseFormat = responseFormat; |
| 41 | NucleusSamplingFactor = nucleusSamplingFactor; |
| 42 | _additionalBinaryDataProperties = additionalBinaryDataProperties; |
| 43 | } |
| 44 | |
| 45 | public string Id { get; } |
| 46 | |
| 47 | public DateTimeOffset CreatedAt { get; } |
| 48 | |
| 49 | public string Name { get; } |
| 50 | |
| 51 | public string Description { get; } |
| 52 | |
| 53 | public string Model { get; } |
| 54 | |
| 55 | public string Instructions { get; } |
| 56 | |
| 57 | public IReadOnlyList<ToolDefinition> Tools { get; } |
| 58 | |
| 59 | public ToolResources ToolResources { get; } |
| 60 | |
| 61 | public IReadOnlyDictionary<string, string> Metadata { get; } |
| 62 | |
| 63 | public float? Temperature { get; } |
| 64 | |
| 65 | internal IDictionary<string, BinaryData> SerializedAdditionalRawData |
| 66 | { |
| 67 | get => _additionalBinaryDataProperties; |
| 68 | set => _additionalBinaryDataProperties = value; |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |