openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
mailinhphan/clientOptions

Branches

Tags

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

Clone

HTTPS

Download ZIP

OpenAI/src/Generated/Models/Conversations/IncludedConversationItemProperty.cs

66lines · modecode

1// <auto-generated/>
2
3#nullable disable
4
5using System;
6using System.ComponentModel;
7using System.Diagnostics.CodeAnalysis;
8using OpenAI;
9
10namespace OpenAI.Conversations
11{
12 [Experimental("OPENAI001")]
13 public readonly partial struct IncludedConversationItemProperty : IEquatable<IncludedConversationItemProperty>
14 {
15 private readonly string _value;
16 private const string FileSearchCallResultsValue = "file_search_call.results";
17 private const string WebSearchCallResultsValue = "web_search_call.results";
18 private const string WebSearchCallActionSourcesValue = "web_search_call.action.sources";
19 private const string MessageInputImageUriValue = "message.input_image.image_url";
20 private const string ComputerCallOutputImageUriValue = "computer_call_output.output.image_url";
21 private const string CodeInterpreterCallOutputsValue = "code_interpreter_call.outputs";
22 private const string ReasoningEncryptedContentValue = "reasoning.encrypted_content";
23 private const string MessageOutputTextLogProbabilitiesValue = "message.output_text.logprobs";
24
25 public IncludedConversationItemProperty(string value)
26 {
27 Argument.AssertNotNull(value, nameof(value));
28
29 _value = value;
30 }
31
32 public static IncludedConversationItemProperty FileSearchCallResults { get; } = new IncludedConversationItemProperty(FileSearchCallResultsValue);
33
34 public static IncludedConversationItemProperty WebSearchCallResults { get; } = new IncludedConversationItemProperty(WebSearchCallResultsValue);
35
36 public static IncludedConversationItemProperty WebSearchCallActionSources { get; } = new IncludedConversationItemProperty(WebSearchCallActionSourcesValue);
37
38 public static IncludedConversationItemProperty MessageInputImageUri { get; } = new IncludedConversationItemProperty(MessageInputImageUriValue);
39
40 public static IncludedConversationItemProperty ComputerCallOutputImageUri { get; } = new IncludedConversationItemProperty(ComputerCallOutputImageUriValue);
41
42 public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get; } = new IncludedConversationItemProperty(CodeInterpreterCallOutputsValue);
43
44 public static IncludedConversationItemProperty ReasoningEncryptedContent { get; } = new IncludedConversationItemProperty(ReasoningEncryptedContentValue);
45
46 public static IncludedConversationItemProperty MessageOutputTextLogProbabilities { get; } = new IncludedConversationItemProperty(MessageOutputTextLogProbabilitiesValue);
47
48 public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right) => left.Equals(right);
49
50 public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right) => !left.Equals(right);
51
52 public static implicit operator IncludedConversationItemProperty(string value) => new IncludedConversationItemProperty(value);
53
54 public static implicit operator IncludedConversationItemProperty?(string value) => value == null ? null : new IncludedConversationItemProperty(value);
55
56 [EditorBrowsable(EditorBrowsableState.Never)]
57 public override bool Equals(object obj) => obj is IncludedConversationItemProperty other && Equals(other);
58
59 public bool Equals(IncludedConversationItemProperty other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
60
61 [EditorBrowsable(EditorBrowsableState.Never)]
62 public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
63
64 public override string ToString() => _value;
65 }
66}
67