Skip to content

Commit 62e5fbd

Browse files
committed
export
1 parent 2820af5 commit 62e5fbd

File tree

2 files changed

+54
-99
lines changed

2 files changed

+54
-99
lines changed

api/OpenAI.net8.0.cs

Lines changed: 28 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -4602,47 +4602,38 @@ public class TurnDetectionOptions : IJsonModel<TurnDetectionOptions>, IPersistab
46024602
}
46034603
}
46044604
namespace OpenAI.Responses {
4605-
public class AutomaticCodeInterpreterContainerConfiguration : CodeInterpreterContainerConfiguration {
4606-
public AutomaticCodeInterpreterContainerConfiguration(IEnumerable<string> fileIds = null);
4607-
public IList<string> FileIds { get; }
4608-
}
46094605
[Experimental("OPENAI001")]
46104606
public class CodeInterpreterCallResponseItem : ResponseItem, IJsonModel<CodeInterpreterCallResponseItem>, IPersistableModel<CodeInterpreterCallResponseItem> {
4611-
public CodeInterpreterCallResponseItem(CodeInterpreterCallStatus status, string code);
4607+
public CodeInterpreterCallResponseItem(string code);
46124608
public string Code { get; set; }
46134609
public string ContainerId { get; set; }
46144610
public IList<CodeInterpreterToolOutput> Outputs { get; }
4615-
public CodeInterpreterCallStatus Status { get; set; }
4611+
public CodeInterpreterCallStatus? Status { get; }
46164612
protected override ResponseItem JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
46174613
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
46184614
protected override ResponseItem PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
46194615
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
46204616
}
4621-
[Experimental("OPENAI001")]
4622-
public readonly partial struct CodeInterpreterCallStatus : IEquatable<CodeInterpreterCallStatus> {
4623-
public CodeInterpreterCallStatus(string value);
4624-
public static CodeInterpreterCallStatus Completed { get; }
4625-
public static CodeInterpreterCallStatus InProgress { get; }
4626-
public static CodeInterpreterCallStatus Interpreting { get; }
4627-
public readonly bool Equals(CodeInterpreterCallStatus other);
4628-
[EditorBrowsable(EditorBrowsableState.Never)]
4629-
public override readonly bool Equals(object obj);
4630-
[EditorBrowsable(EditorBrowsableState.Never)]
4631-
public override readonly int GetHashCode();
4632-
public static bool operator ==(CodeInterpreterCallStatus left, CodeInterpreterCallStatus right);
4633-
public static implicit operator CodeInterpreterCallStatus(string value);
4634-
public static implicit operator CodeInterpreterCallStatus?(string value);
4635-
public static bool operator !=(CodeInterpreterCallStatus left, CodeInterpreterCallStatus right);
4636-
public override readonly string ToString();
4617+
public enum CodeInterpreterCallStatus {
4618+
InProgress = 0,
4619+
Interpreting = 1,
4620+
Completed = 2,
4621+
Incomplete = 3,
4622+
Failed = 4
46374623
}
46384624
public class CodeInterpreterContainer {
46394625
public CodeInterpreterContainer(CodeInterpreterContainerConfiguration containerConfiguration);
46404626
public CodeInterpreterContainer(string containerId);
46414627
public CodeInterpreterContainerConfiguration ContainerConfiguration { get; }
46424628
public string ContainerId { get; }
46434629
}
4644-
public class CodeInterpreterContainerConfiguration {
4645-
public static AutomaticCodeInterpreterContainerConfiguration CreateAutomaticConfiguration(IEnumerable<string> fileIds = null);
4630+
[Experimental("OPENAI001")]
4631+
public class CodeInterpreterContainerConfiguration : IJsonModel<CodeInterpreterContainerConfiguration>, IPersistableModel<CodeInterpreterContainerConfiguration> {
4632+
public static CodeInterpreterToolAuto CreateAutomaticConfiguration(IEnumerable<string> fileIds = null);
4633+
protected virtual CodeInterpreterContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
4634+
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
4635+
protected virtual CodeInterpreterContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
4636+
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
46464637
}
46474638
[Experimental("OPENAI001")]
46484639
public class CodeInterpreterTool : ResponseTool, IJsonModel<CodeInterpreterTool>, IPersistableModel<CodeInterpreterTool> {
@@ -4653,9 +4644,19 @@ public class CodeInterpreterTool : ResponseTool, IJsonModel<CodeInterpreterTool>
46534644
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
46544645
}
46554646
[Experimental("OPENAI001")]
4647+
public class CodeInterpreterToolAuto : CodeInterpreterContainerConfiguration, IJsonModel<CodeInterpreterToolAuto>, IPersistableModel<CodeInterpreterToolAuto> {
4648+
public CodeInterpreterToolAuto();
4649+
public CodeInterpreterToolAuto(IEnumerable<string> fileIds = null);
4650+
public IList<string> FileIds { get; }
4651+
protected override CodeInterpreterContainerConfiguration JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
4652+
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
4653+
protected override CodeInterpreterContainerConfiguration PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
4654+
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
4655+
}
4656+
[Experimental("OPENAI001")]
46564657
public class CodeInterpreterToolImageOutput : CodeInterpreterToolOutput, IJsonModel<CodeInterpreterToolImageOutput>, IPersistableModel<CodeInterpreterToolImageOutput> {
4657-
public CodeInterpreterToolImageOutput(Uri url);
4658-
public Uri Url { get; set; }
4658+
public CodeInterpreterToolImageOutput(Uri imageUri);
4659+
public Uri ImageUri { get; set; }
46594660
protected override CodeInterpreterToolOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
46604661
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
46614662
protected override CodeInterpreterToolOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
@@ -4671,29 +4672,12 @@ public class CodeInterpreterToolLogsOutput : CodeInterpreterToolOutput, IJsonMod
46714672
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
46724673
}
46734674
[Experimental("OPENAI001")]
4674-
[PersistableModelProxy(typeof(UnknownCodeInterpreterToolOutput))]
46754675
public class CodeInterpreterToolOutput : IJsonModel<CodeInterpreterToolOutput>, IPersistableModel<CodeInterpreterToolOutput> {
46764676
protected virtual CodeInterpreterToolOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
46774677
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
46784678
protected virtual CodeInterpreterToolOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
46794679
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
46804680
}
4681-
[Experimental("OPENAI001")]
4682-
public readonly partial struct CodeInterpreterToolOutputType : IEquatable<CodeInterpreterToolOutputType> {
4683-
public CodeInterpreterToolOutputType(string value);
4684-
public static CodeInterpreterToolOutputType Image { get; }
4685-
public static CodeInterpreterToolOutputType Logs { get; }
4686-
public readonly bool Equals(CodeInterpreterToolOutputType other);
4687-
[EditorBrowsable(EditorBrowsableState.Never)]
4688-
public override readonly bool Equals(object obj);
4689-
[EditorBrowsable(EditorBrowsableState.Never)]
4690-
public override readonly int GetHashCode();
4691-
public static bool operator ==(CodeInterpreterToolOutputType left, CodeInterpreterToolOutputType right);
4692-
public static implicit operator CodeInterpreterToolOutputType(string value);
4693-
public static implicit operator CodeInterpreterToolOutputType?(string value);
4694-
public static bool operator !=(CodeInterpreterToolOutputType left, CodeInterpreterToolOutputType right);
4695-
public override readonly string ToString();
4696-
}
46974681
[Experimental("OPENAICUA001")]
46984682
public class ComputerCallAction : IJsonModel<ComputerCallAction>, IPersistableModel<ComputerCallAction> {
46994683
public Drawing.Point? ClickCoordinates { get; }
@@ -5663,7 +5647,7 @@ public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResp
56635647
[Experimental("OPENAI001")]
56645648
public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate, IJsonModel<StreamingResponseCodeInterpreterCallInProgressUpdate>, IPersistableModel<StreamingResponseCodeInterpreterCallInProgressUpdate> {
56655649
public string ItemId { get; }
5666-
public long OutputIndex { get; }
5650+
public int OutputIndex { get; }
56675651
protected override StreamingResponseUpdate JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
56685652
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
56695653
protected override StreamingResponseUpdate PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
@@ -5979,13 +5963,6 @@ public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUp
59795963
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
59805964
}
59815965
[Experimental("OPENAI001")]
5982-
public class UnknownCodeInterpreterToolOutput : CodeInterpreterToolOutput, IJsonModel<CodeInterpreterToolOutput>, IPersistableModel<CodeInterpreterToolOutput> {
5983-
protected override CodeInterpreterToolOutput JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
5984-
protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);
5985-
protected override CodeInterpreterToolOutput PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options);
5986-
protected override BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options);
5987-
}
5988-
[Experimental("OPENAI001")]
59895966
public class UriCitationMessageAnnotation : ResponseMessageAnnotation, IJsonModel<UriCitationMessageAnnotation>, IPersistableModel<UriCitationMessageAnnotation> {
59905967
public UriCitationMessageAnnotation(Uri uri, int startIndex, int endIndex, string title);
59915968
public int EndIndex { get; set; }

0 commit comments

Comments
 (0)