@@ -4602,6 +4602,16 @@ public class TurnDetectionOptions : IJsonModel<TurnDetectionOptions>, IPersistab
46024602 }
46034603}
46044604namespace OpenAI . Responses {
4605+ [ Experimental ( "OPENAI001" ) ]
4606+ public class AutomaticCodeInterpreterContainerConfiguration : CodeInterpreterContainerConfiguration , IJsonModel < AutomaticCodeInterpreterContainerConfiguration > , IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > {
4607+ public AutomaticCodeInterpreterContainerConfiguration ( ) ;
4608+ public AutomaticCodeInterpreterContainerConfiguration ( IEnumerable < string > fileIds = null ) ;
4609+ public IList < string > FileIds { get ; }
4610+ protected override CodeInterpreterContainerConfiguration JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4611+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4612+ protected override CodeInterpreterContainerConfiguration PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4613+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4614+ }
46054615 [ Experimental ( "OPENAI001" ) ]
46064616 public class CodeInterpreterCallResponseItem : ResponseItem , IJsonModel < CodeInterpreterCallResponseItem > , IPersistableModel < CodeInterpreterCallResponseItem > {
46074617 public CodeInterpreterCallResponseItem ( string code ) ;
@@ -4621,39 +4631,35 @@ public enum CodeInterpreterCallStatus {
46214631 Incomplete = 3 ,
46224632 Failed = 4
46234633 }
4624- public class CodeInterpreterContainer {
4634+ [ Experimental ( "OPENAI001" ) ]
4635+ public class CodeInterpreterContainer : IJsonModel < CodeInterpreterContainer > , IPersistableModel < CodeInterpreterContainer > {
46254636 public CodeInterpreterContainer ( CodeInterpreterContainerConfiguration containerConfiguration ) ;
46264637 public CodeInterpreterContainer ( string containerId ) ;
4627- public CodeInterpreterContainerConfiguration ContainerConfiguration { get ; }
4628- public string ContainerId { get ; }
4638+ public CodeInterpreterContainerConfiguration Container { get ; set ; }
4639+ public string ContainerId { get ; set ; }
4640+ protected virtual CodeInterpreterContainer JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4641+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4642+ protected virtual CodeInterpreterContainer PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4643+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
46294644 }
46304645 [ Experimental ( "OPENAI001" ) ]
46314646 public class CodeInterpreterContainerConfiguration : IJsonModel < CodeInterpreterContainerConfiguration > , IPersistableModel < CodeInterpreterContainerConfiguration > {
4632- public static CodeInterpreterToolAuto CreateAutomaticConfiguration ( IEnumerable < string > fileIds = null ) ;
4647+ public static AutomaticCodeInterpreterContainerConfiguration CreateAutomaticConfiguration ( IEnumerable < string > fileIds = null ) ;
46334648 protected virtual CodeInterpreterContainerConfiguration JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
46344649 protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
46354650 protected virtual CodeInterpreterContainerConfiguration PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
46364651 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
46374652 }
46384653 [ Experimental ( "OPENAI001" ) ]
46394654 public class CodeInterpreterTool : ResponseTool , IJsonModel < CodeInterpreterTool > , IPersistableModel < CodeInterpreterTool > {
4655+ public CodeInterpreterTool ( CodeInterpreterContainer container ) ;
46404656 public CodeInterpreterContainer Container { get ; }
46414657 protected override ResponseTool JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
46424658 protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
46434659 protected override ResponseTool PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
46444660 protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
46454661 }
46464662 [ 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" ) ]
46574663 public class CodeInterpreterToolImageOutput : CodeInterpreterToolOutput , IJsonModel < CodeInterpreterToolImageOutput > , IPersistableModel < CodeInterpreterToolImageOutput > {
46584664 public CodeInterpreterToolImageOutput ( Uri imageUri ) ;
46594665 public Uri ImageUri { get ; set ; }
0 commit comments