openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
joseharriaga/README-version

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Generated/Models/Assistant.cs

64lines · modecode

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