1010
1111namespace OpenAI . Responses
1212{
13- public partial class CodeInterpreterToolAuto : IJsonModel < CodeInterpreterToolAuto >
13+ public partial class AutomaticCodeInterpreterContainerConfiguration : IJsonModel < AutomaticCodeInterpreterContainerConfiguration >
1414 {
15- void IJsonModel < CodeInterpreterToolAuto > . Write ( Utf8JsonWriter writer , ModelReaderWriterOptions options )
15+ void IJsonModel < AutomaticCodeInterpreterContainerConfiguration > . Write ( Utf8JsonWriter writer , ModelReaderWriterOptions options )
1616 {
1717 writer . WriteStartObject ( ) ;
1818 JsonModelWriteCore ( writer , options ) ;
@@ -21,10 +21,10 @@ void IJsonModel<CodeInterpreterToolAuto>.Write(Utf8JsonWriter writer, ModelReade
2121
2222 protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options )
2323 {
24- string format = options . Format == "W" ? ( ( IPersistableModel < CodeInterpreterToolAuto > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
24+ string format = options . Format == "W" ? ( ( IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
2525 if ( format != "J" )
2626 {
27- throw new FormatException ( $ "The model { nameof ( CodeInterpreterToolAuto ) } does not support writing '{ format } ' format.") ;
27+ throw new FormatException ( $ "The model { nameof ( AutomaticCodeInterpreterContainerConfiguration ) } does not support writing '{ format } ' format.") ;
2828 }
2929 base . JsonModelWriteCore ( writer , options ) ;
3030 if ( Optional . IsCollectionDefined ( FileIds ) && _additionalBinaryDataProperties ? . ContainsKey ( "file_ids" ) != true )
@@ -44,20 +44,20 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
4444 }
4545 }
4646
47- CodeInterpreterToolAuto IJsonModel < CodeInterpreterToolAuto > . Create ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) => ( CodeInterpreterToolAuto ) JsonModelCreateCore ( ref reader , options ) ;
47+ AutomaticCodeInterpreterContainerConfiguration IJsonModel < AutomaticCodeInterpreterContainerConfiguration > . Create ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) => ( AutomaticCodeInterpreterContainerConfiguration ) JsonModelCreateCore ( ref reader , options ) ;
4848
4949 protected override CodeInterpreterContainerConfiguration JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options )
5050 {
51- string format = options . Format == "W" ? ( ( IPersistableModel < CodeInterpreterToolAuto > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
51+ string format = options . Format == "W" ? ( ( IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
5252 if ( format != "J" )
5353 {
54- throw new FormatException ( $ "The model { nameof ( CodeInterpreterToolAuto ) } does not support reading '{ format } ' format.") ;
54+ throw new FormatException ( $ "The model { nameof ( AutomaticCodeInterpreterContainerConfiguration ) } does not support reading '{ format } ' format.") ;
5555 }
5656 using JsonDocument document = JsonDocument . ParseValue ( ref reader ) ;
57- return DeserializeCodeInterpreterToolAuto ( document . RootElement , options ) ;
57+ return DeserializeAutomaticCodeInterpreterContainerConfiguration ( document . RootElement , options ) ;
5858 }
5959
60- internal static CodeInterpreterToolAuto DeserializeCodeInterpreterToolAuto ( JsonElement element , ModelReaderWriterOptions options )
60+ internal static AutomaticCodeInterpreterContainerConfiguration DeserializeAutomaticCodeInterpreterContainerConfiguration ( JsonElement element , ModelReaderWriterOptions options )
6161 {
6262 if ( element . ValueKind == JsonValueKind . Null )
6363 {
@@ -97,40 +97,40 @@ internal static CodeInterpreterToolAuto DeserializeCodeInterpreterToolAuto(JsonE
9797 // Plugin customization: remove options.Format != "W" check
9898 additionalBinaryDataProperties . Add ( prop . Name , BinaryData . FromString ( prop . Value . GetRawText ( ) ) ) ;
9999 }
100- return new CodeInterpreterToolAuto ( kind , additionalBinaryDataProperties , fileIds ?? new ChangeTrackingList < string > ( ) ) ;
100+ return new AutomaticCodeInterpreterContainerConfiguration ( kind , additionalBinaryDataProperties , fileIds ?? new ChangeTrackingList < string > ( ) ) ;
101101 }
102102
103- BinaryData IPersistableModel < CodeInterpreterToolAuto > . Write ( ModelReaderWriterOptions options ) => PersistableModelWriteCore ( options ) ;
103+ BinaryData IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > . Write ( ModelReaderWriterOptions options ) => PersistableModelWriteCore ( options ) ;
104104
105105 protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options )
106106 {
107- string format = options . Format == "W" ? ( ( IPersistableModel < CodeInterpreterToolAuto > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
107+ string format = options . Format == "W" ? ( ( IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
108108 switch ( format )
109109 {
110110 case "J" :
111111 return ModelReaderWriter . Write ( this , options , OpenAIContext . Default ) ;
112112 default :
113- throw new FormatException ( $ "The model { nameof ( CodeInterpreterToolAuto ) } does not support writing '{ options . Format } ' format.") ;
113+ throw new FormatException ( $ "The model { nameof ( AutomaticCodeInterpreterContainerConfiguration ) } does not support writing '{ options . Format } ' format.") ;
114114 }
115115 }
116116
117- CodeInterpreterToolAuto IPersistableModel < CodeInterpreterToolAuto > . Create ( BinaryData data , ModelReaderWriterOptions options ) => ( CodeInterpreterToolAuto ) PersistableModelCreateCore ( data , options ) ;
117+ AutomaticCodeInterpreterContainerConfiguration IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > . Create ( BinaryData data , ModelReaderWriterOptions options ) => ( AutomaticCodeInterpreterContainerConfiguration ) PersistableModelCreateCore ( data , options ) ;
118118
119119 protected override CodeInterpreterContainerConfiguration PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options )
120120 {
121- string format = options . Format == "W" ? ( ( IPersistableModel < CodeInterpreterToolAuto > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
121+ string format = options . Format == "W" ? ( ( IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > ) this ) . GetFormatFromOptions ( options ) : options . Format ;
122122 switch ( format )
123123 {
124124 case "J" :
125125 using ( JsonDocument document = JsonDocument . Parse ( data ) )
126126 {
127- return DeserializeCodeInterpreterToolAuto ( document . RootElement , options ) ;
127+ return DeserializeAutomaticCodeInterpreterContainerConfiguration ( document . RootElement , options ) ;
128128 }
129129 default :
130- throw new FormatException ( $ "The model { nameof ( CodeInterpreterToolAuto ) } does not support reading '{ options . Format } ' format.") ;
130+ throw new FormatException ( $ "The model { nameof ( AutomaticCodeInterpreterContainerConfiguration ) } does not support reading '{ options . Format } ' format.") ;
131131 }
132132 }
133133
134- string IPersistableModel < CodeInterpreterToolAuto > . GetFormatFromOptions ( ModelReaderWriterOptions options ) => "J" ;
134+ string IPersistableModel < AutomaticCodeInterpreterContainerConfiguration > . GetFormatFromOptions ( ModelReaderWriterOptions options ) => "J" ;
135135 }
136136}
0 commit comments