@@ -4590,10 +4590,51 @@ public class TurnDetectionOptions : IJsonModel<TurnDetectionOptions>, IPersistab
45904590 }
45914591}
45924592namespace OpenAI . Responses {
4593+ public class AutomaticCodeInterpreterContainerConfiguration : CodeInterpreterContainerConfiguration {
4594+ public AutomaticCodeInterpreterContainerConfiguration ( IEnumerable < string > fileIds = null ) ;
4595+ public IList < string > FileIds { get ; }
4596+ }
4597+ [ Experimental ( "OPENAI001" ) ]
4598+ public class CodeInterpreterCallResponseItem : ResponseItem , IJsonModel < CodeInterpreterCallResponseItem > , IPersistableModel < CodeInterpreterCallResponseItem > {
4599+ public CodeInterpreterCallResponseItem ( CodeInterpreterCallStatus status , string code , IEnumerable < BinaryData > results ) ;
4600+ public string Code { get ; set ; }
4601+ public string ContainerId { get ; set ; }
4602+ public IList < BinaryData > Results { get ; }
4603+ public CodeInterpreterCallStatus Status { get ; set ; }
4604+ protected override ResponseItem JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
4605+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
4606+ protected override ResponseItem PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
4607+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
4608+ }
4609+ [ Experimental ( "OPENAI001" ) ]
4610+ public readonly partial struct CodeInterpreterCallStatus : IEquatable < CodeInterpreterCallStatus > {
4611+ public CodeInterpreterCallStatus ( string value ) ;
4612+ public static CodeInterpreterCallStatus Completed { get ; }
4613+ public static CodeInterpreterCallStatus InProgress { get ; }
4614+ public static CodeInterpreterCallStatus Interpreting { get ; }
4615+ public readonly bool Equals ( CodeInterpreterCallStatus other ) ;
4616+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
4617+ public override readonly bool Equals ( object obj ) ;
4618+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
4619+ public override readonly int GetHashCode ( ) ;
4620+ public static bool operator == ( CodeInterpreterCallStatus left , CodeInterpreterCallStatus right ) ;
4621+ public static implicit operator CodeInterpreterCallStatus ( string value ) ;
4622+ public static implicit operator CodeInterpreterCallStatus ? ( string value ) ;
4623+ public static bool operator != ( CodeInterpreterCallStatus left , CodeInterpreterCallStatus right ) ;
4624+ public override readonly string ToString ( ) ;
4625+ }
4626+ public class CodeInterpreterContainer {
4627+ public CodeInterpreterContainer ( CodeInterpreterContainerConfiguration containerConfiguration ) ;
4628+ public CodeInterpreterContainer ( string containerId ) ;
4629+ public CodeInterpreterContainerConfiguration ContainerConfiguration { get ; }
4630+ public string ContainerId { get ; }
4631+ }
4632+ public class CodeInterpreterContainerConfiguration {
4633+ public static AutomaticCodeInterpreterContainerConfiguration CreateAutomaticConfiguration ( IEnumerable < string > fileIds = null ) ;
4634+ }
45934635 [ Experimental ( "OPENAI001" ) ]
45944636 public class CodeInterpreterTool : ResponseTool , IJsonModel < CodeInterpreterTool > , IPersistableModel < CodeInterpreterTool > {
4595- public CodeInterpreterTool ( BinaryData container ) ;
4596- public BinaryData Container { get ; set ; }
4637+ public CodeInterpreterContainer Container { get ; }
45974638 protected override ResponseTool JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
45984639 protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
45994640 protected override ResponseTool PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
@@ -5484,8 +5525,7 @@ public class ResponseTokenUsage : IJsonModel<ResponseTokenUsage>, IPersistableMo
54845525 }
54855526 [ Experimental ( "OPENAI001" ) ]
54865527 public class ResponseTool : IJsonModel < ResponseTool > , IPersistableModel < ResponseTool > {
5487- public static CodeInterpreterTool CreateCodeInterpreterTool ( IEnumerable < string > fileIds = null ) ;
5488- public static CodeInterpreterTool CreateCodeInterpreterTool ( string containerId ) ;
5528+ public static CodeInterpreterTool CreateCodeInterpreterTool ( CodeInterpreterContainer container ) ;
54895529 [ Experimental ( "OPENAICUA001" ) ]
54905530 public static ComputerTool CreateComputerTool ( ComputerToolEnvironment environment , int displayWidth , int displayHeight ) ;
54915531 public static FileSearchTool CreateFileSearchTool ( IEnumerable < string > vectorStoreIds , int ? maxResultCount = null , FileSearchToolRankingOptions rankingOptions = null , BinaryData filters = null ) ;
@@ -5538,6 +5578,53 @@ public enum ResponseToolChoiceKind {
55385578 public override readonly string ToString ( ) ;
55395579 }
55405580 [ Experimental ( "OPENAI001" ) ]
5581+ public class StreamingResponseCodeInterpreterCallCodeDeltaUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallCodeDeltaUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallCodeDeltaUpdate > {
5582+ public string Delta { get ; }
5583+ public string ItemId { get ; }
5584+ public int OutputIndex { get ; }
5585+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5586+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5587+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5588+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5589+ }
5590+ [ Experimental ( "OPENAI001" ) ]
5591+ public class StreamingResponseCodeInterpreterCallCodeDoneUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallCodeDoneUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallCodeDoneUpdate > {
5592+ public string Code { get ; }
5593+ public string ItemId { get ; }
5594+ public int OutputIndex { get ; }
5595+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5596+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5597+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5598+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5599+ }
5600+ [ Experimental ( "OPENAI001" ) ]
5601+ public class StreamingResponseCodeInterpreterCallCompletedUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallCompletedUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallCompletedUpdate > {
5602+ public string ItemId { get ; }
5603+ public int OutputIndex { get ; }
5604+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5605+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5606+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5607+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5608+ }
5609+ [ Experimental ( "OPENAI001" ) ]
5610+ public class StreamingResponseCodeInterpreterCallInProgressUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallInProgressUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallInProgressUpdate > {
5611+ public string ItemId { get ; }
5612+ public long OutputIndex { get ; }
5613+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5614+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5615+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5616+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5617+ }
5618+ [ Experimental ( "OPENAI001" ) ]
5619+ public class StreamingResponseCodeInterpreterCallInterpretingUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCodeInterpreterCallInterpretingUpdate > , IPersistableModel < StreamingResponseCodeInterpreterCallInterpretingUpdate > {
5620+ public string ItemId { get ; }
5621+ public int OutputIndex { get ; }
5622+ protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
5623+ protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
5624+ protected override StreamingResponseUpdate PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
5625+ protected override BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
5626+ }
5627+ [ Experimental ( "OPENAI001" ) ]
55415628 public class StreamingResponseCompletedUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseCompletedUpdate > , IPersistableModel < StreamingResponseCompletedUpdate > {
55425629 public OpenAIResponse Response { get ; }
55435630 protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
0 commit comments