openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Generated/Models/Conversations/IncludedConversationItemProperty.cs
60lines · modecode
| 1 | // <auto-generated/> |
| 2 | |
| 3 | #nullable disable |
| 4 | |
| 5 | using System; |
| 6 | using System.ComponentModel; |
| 7 | using System.Diagnostics.CodeAnalysis; |
| 8 | using OpenAI; |
| 9 | |
| 10 | namespace 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 CodeInterpreterCallOutputsValue = "code_interpreter_call.outputs"; |
| 20 | private const string ReasoningEncryptedContentValue = "reasoning.encrypted_content"; |
| 21 | private const string MessageOutputTextLogprobsValue = "message.output_text.logprobs"; |
| 22 | |
| 23 | public IncludedConversationItemProperty(string value) |
| 24 | { |
| 25 | Argument.AssertNotNull(value, nameof(value)); |
| 26 | |
| 27 | _value = value; |
| 28 | } |
| 29 | |
| 30 | public static IncludedConversationItemProperty FileSearchCallResults { get; } = new IncludedConversationItemProperty(FileSearchCallResultsValue); |
| 31 | |
| 32 | public static IncludedConversationItemProperty WebSearchCallResults { get; } = new IncludedConversationItemProperty(WebSearchCallResultsValue); |
| 33 | |
| 34 | public static IncludedConversationItemProperty WebSearchCallActionSources { get; } = new IncludedConversationItemProperty(WebSearchCallActionSourcesValue); |
| 35 | |
| 36 | public static IncludedConversationItemProperty CodeInterpreterCallOutputs { get; } = new IncludedConversationItemProperty(CodeInterpreterCallOutputsValue); |
| 37 | |
| 38 | public static IncludedConversationItemProperty ReasoningEncryptedContent { get; } = new IncludedConversationItemProperty(ReasoningEncryptedContentValue); |
| 39 | |
| 40 | public static IncludedConversationItemProperty MessageOutputTextLogprobs { get; } = new IncludedConversationItemProperty(MessageOutputTextLogprobsValue); |
| 41 | |
| 42 | public static bool operator ==(IncludedConversationItemProperty left, IncludedConversationItemProperty right) => left.Equals(right); |
| 43 | |
| 44 | public static bool operator !=(IncludedConversationItemProperty left, IncludedConversationItemProperty right) => !left.Equals(right); |
| 45 | |
| 46 | public static implicit operator IncludedConversationItemProperty(string value) => new IncludedConversationItemProperty(value); |
| 47 | |
| 48 | public static implicit operator IncludedConversationItemProperty?(string value) => value == null ? null : new IncludedConversationItemProperty(value); |
| 49 | |
| 50 | [EditorBrowsable(EditorBrowsableState.Never)] |
| 51 | public override bool Equals(object obj) => obj is IncludedConversationItemProperty other && Equals(other); |
| 52 | |
| 53 | public bool Equals(IncludedConversationItemProperty other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); |
| 54 | |
| 55 | [EditorBrowsable(EditorBrowsableState.Never)] |
| 56 | public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; |
| 57 | |
| 58 | public override string ToString() => _value; |
| 59 | } |
| 60 | } |
| 61 | |