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