@@ -4608,10 +4608,10 @@ public class AutomaticCodeInterpreterContainerConfiguration : CodeInterpreterCon
46084608 }
46094609 [ Experimental ( "OPENAI001" ) ]
46104610 public class CodeInterpreterCallResponseItem : ResponseItem , IJsonModel < CodeInterpreterCallResponseItem > , IPersistableModel < CodeInterpreterCallResponseItem > {
4611- public CodeInterpreterCallResponseItem ( CodeInterpreterCallStatus status , string code , IEnumerable < BinaryData > results ) ;
4611+ public CodeInterpreterCallResponseItem ( CodeInterpreterCallStatus status , string code ) ;
46124612 public string Code { get ; set ; }
46134613 public string ContainerId { get ; set ; }
4614- public IList < BinaryData > Results { get ; }
4614+ public IList < CodeInterpreterToolOutput > Outputs { get ; }
46154615 public CodeInterpreterCallStatus Status { get ; set ; }
46164616 protected override ResponseItem JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
46174617 protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
@@ -4652,6 +4652,48 @@ public class CodeInterpreterTool : ResponseTool, IJsonModel<CodeInterpreterTool>
46524652 protected override ResponseTool PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
46534653 protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
46544654 }
4655+ [ Experimental ( "OPENAI001" ) ]
4656+ public class CodeInterpreterToolImageOutput : CodeInterpreterToolOutput , IJsonModel < CodeInterpreterToolImageOutput > , IPersistableModel < CodeInterpreterToolImageOutput > {
4657+ public CodeInterpreterToolImageOutput ( Uri url ) ;
4658+ public Uri Url { get ; set ; }
4659+ protected override CodeInterpreterToolOutput JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4660+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4661+ protected override CodeInterpreterToolOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4662+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4663+ }
4664+ [ Experimental ( "OPENAI001" ) ]
4665+ public class CodeInterpreterToolLogsOutput : CodeInterpreterToolOutput , IJsonModel < CodeInterpreterToolLogsOutput > , IPersistableModel < CodeInterpreterToolLogsOutput > {
4666+ public CodeInterpreterToolLogsOutput ( string logs ) ;
4667+ public string Logs { get ; set ; }
4668+ protected override CodeInterpreterToolOutput JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4669+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4670+ protected override CodeInterpreterToolOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4671+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4672+ }
4673+ [ Experimental ( "OPENAI001" ) ]
4674+ [ PersistableModelProxy ( typeof ( UnknownCodeInterpreterToolOutput ) ) ]
4675+ public class CodeInterpreterToolOutput : IJsonModel < CodeInterpreterToolOutput > , IPersistableModel < CodeInterpreterToolOutput > {
4676+ protected virtual CodeInterpreterToolOutput JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4677+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4678+ protected virtual CodeInterpreterToolOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4679+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4680+ }
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+ }
46554697 [ Experimental ( "OPENAICUA001" ) ]
46564698 public class ComputerCallAction : IJsonModel < ComputerCallAction > , IPersistableModel < ComputerCallAction > {
46574699 public Drawing . Point ? ClickCoordinates { get ; }
@@ -5937,6 +5979,13 @@ public class StreamingResponseWebSearchCallSearchingUpdate : StreamingResponseUp
59375979 protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
59385980 }
59395981 [ 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" ) ]
59405989 public class UriCitationMessageAnnotation : ResponseMessageAnnotation , IJsonModel < UriCitationMessageAnnotation > , IPersistableModel < UriCitationMessageAnnotation > {
59415990 public UriCitationMessageAnnotation ( Uri uri , int startIndex , int endIndex , string title ) ;
59425991 public int EndIndex { get ; set ; }
0 commit comments