@@ -4602,6 +4602,88 @@ 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+ }
4615+ [ Experimental ( "OPENAI001" ) ]
4616+ public class CodeInterpreterCallResponseItem : ResponseItem , IJsonModel < CodeInterpreterCallResponseItem > , IPersistableModel < CodeInterpreterCallResponseItem > {
4617+ public CodeInterpreterCallResponseItem ( string code ) ;
4618+ public string Code { get ; set ; }
4619+ public string ContainerId { get ; set ; }
4620+ public IList < CodeInterpreterToolOutput > Outputs { get ; }
4621+ public CodeInterpreterCallStatus ? Status { get ; }
4622+ protected override ResponseItem JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4623+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4624+ protected override ResponseItem PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4625+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4626+ }
4627+ public enum CodeInterpreterCallStatus {
4628+ InProgress = 0 ,
4629+ Interpreting = 1 ,
4630+ Completed = 2 ,
4631+ Incomplete = 3 ,
4632+ Failed = 4
4633+ }
4634+ [ Experimental ( "OPENAI001" ) ]
4635+ public class CodeInterpreterContainer : IJsonModel < CodeInterpreterContainer > , IPersistableModel < CodeInterpreterContainer > {
4636+ public CodeInterpreterContainer ( CodeInterpreterContainerConfiguration containerConfiguration ) ;
4637+ public CodeInterpreterContainer ( string containerId ) ;
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 ) ;
4644+ }
4645+ [ Experimental ( "OPENAI001" ) ]
4646+ public class CodeInterpreterContainerConfiguration : IJsonModel < CodeInterpreterContainerConfiguration > , IPersistableModel < CodeInterpreterContainerConfiguration > {
4647+ public static AutomaticCodeInterpreterContainerConfiguration CreateAutomaticConfiguration ( IEnumerable < string > fileIds = null ) ;
4648+ protected virtual CodeInterpreterContainerConfiguration JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4649+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4650+ protected virtual CodeInterpreterContainerConfiguration PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4651+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4652+ }
4653+ [ Experimental ( "OPENAI001" ) ]
4654+ public class CodeInterpreterTool : ResponseTool , IJsonModel < CodeInterpreterTool > , IPersistableModel < CodeInterpreterTool > {
4655+ public CodeInterpreterTool ( CodeInterpreterContainer container ) ;
4656+ public CodeInterpreterContainer Container { get ; }
4657+ protected override ResponseTool JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4658+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4659+ protected override ResponseTool PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4660+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4661+ }
4662+ [ Experimental ( "OPENAI001" ) ]
4663+ public class CodeInterpreterToolImageOutput : CodeInterpreterToolOutput , IJsonModel < CodeInterpreterToolImageOutput > , IPersistableModel < CodeInterpreterToolImageOutput > {
4664+ public CodeInterpreterToolImageOutput ( Uri imageUri ) ;
4665+ public Uri ImageUri { get ; set ; }
4666+ protected override CodeInterpreterToolOutput JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4667+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4668+ protected override CodeInterpreterToolOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4669+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4670+ }
4671+ [ Experimental ( "OPENAI001" ) ]
4672+ public class CodeInterpreterToolLogsOutput : CodeInterpreterToolOutput , IJsonModel < CodeInterpreterToolLogsOutput > , IPersistableModel < CodeInterpreterToolLogsOutput > {
4673+ public CodeInterpreterToolLogsOutput ( string logs ) ;
4674+ public string Logs { get ; set ; }
4675+ protected override CodeInterpreterToolOutput JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4676+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4677+ protected override CodeInterpreterToolOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4678+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4679+ }
4680+ [ Experimental ( "OPENAI001" ) ]
4681+ public class CodeInterpreterToolOutput : IJsonModel < CodeInterpreterToolOutput > , IPersistableModel < CodeInterpreterToolOutput > {
4682+ protected virtual CodeInterpreterToolOutput JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4683+ protected virtual void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4684+ protected virtual CodeInterpreterToolOutput PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4685+ protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4686+ }
46054687 [ Experimental ( "OPENAICUA001" ) ]
46064688 public class ComputerCallAction : IJsonModel < ComputerCallAction > , IPersistableModel < ComputerCallAction > {
46074689 public Drawing . Point ? ClickCoordinates { get ; }
@@ -5660,6 +5742,7 @@ public class ResponseTokenUsage : IJsonModel<ResponseTokenUsage>, IPersistableMo
56605742 }
56615743 [ Experimental ( "OPENAI001" ) ]
56625744 public class ResponseTool : IJsonModel < ResponseTool > , IPersistableModel < ResponseTool > {
5745+ public static CodeInterpreterTool CreateCodeInterpreterTool ( CodeInterpreterContainer container ) ;
56635746 [ Experimental ( "OPENAICUA001" ) ]
56645747 public static ComputerTool CreateComputerTool ( ComputerToolEnvironment environment , int displayWidth , int displayHeight ) ;
56655748 public static FileSearchTool CreateFileSearchTool ( IEnumerable < string > vectorStoreIds , int ? maxResultCount = null , FileSearchToolRankingOptions rankingOptions = null , BinaryData filters = null ) ;
@@ -5714,6 +5797,53 @@ public enum ResponseToolChoiceKind {
57145797 public override readonly string ToString ( ) ;
57155798 }
57165799 [ Experimental ( "OPENAI001" ) ]
5800+ public class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallCodeDeltaUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallCodeDeltaUpdate > {
5801+ public string Delta { get ; }
5802+ public string ItemId { get ; }
5803+ public int OutputIndex { get ; }
5804+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5805+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5806+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5807+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5808+ }
5809+ [ Experimental ( "OPENAI001" ) ]
5810+ public class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallCodeDoneUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallCodeDoneUpdate > {
5811+ public string Code { get ; }
5812+ public string ItemId { get ; }
5813+ public int OutputIndex { get ; }
5814+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5815+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5816+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5817+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5818+ }
5819+ [ Experimental ( "OPENAI001" ) ]
5820+ public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallCompletedUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallCompletedUpdate > {
5821+ public string ItemId { get ; }
5822+ public int OutputIndex { get ; }
5823+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5824+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5825+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5826+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5827+ }
5828+ [ Experimental ( "OPENAI001" ) ]
5829+ public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallInProgressUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallInProgressUpdate > {
5830+ public string ItemId { get ; }
5831+ public int OutputIndex { get ; }
5832+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5833+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5834+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5835+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5836+ }
5837+ [ Experimental ( "OPENAI001" ) ]
5838+ public class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallInterpretingUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallInterpretingUpdate > {
5839+ public string ItemId { get ; }
5840+ public int OutputIndex { get ; }
5841+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5842+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5843+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5844+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5845+ }
5846+ [ Experimental ( "OPENAI001" ) ]
57175847 public class StreamingResponseCompletedUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCompletedUpdate > , IPersistableModel < StreamingResponseCompletedUpdate > {
57185848 public OpenAIResponse Response { get ; }
57195849 protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
0 commit comments