@@ -4898,9 +4898,9 @@ public class FunctionTool : ResponseTool, IJsonModel<FunctionTool>, IPersistable
48984898 }
48994899 [ Experimental ( "OPENAI001" ) ]
49004900 public class ImageGenerationCallResponseItem : ResponseItem , IJsonModel < ImageGenerationCallResponseItem > , IPersistableModel < ImageGenerationCallResponseItem > {
4901- public ImageGenerationCallResponseItem ( ImageGenerationCallStatus status , string result ) ;
4902- public string Result { get ; set ; }
4903- public ImageGenerationCallStatus Status { get ; set ; }
4901+ public ImageGenerationCallResponseItem ( BinaryData generatedImageBytes ) ;
4902+ public BinaryData GeneratedImageBytes { get ; set ; }
4903+ public ImageGenerationCallStatus ? Status { get ; }
49044904 protected override ResponseItem JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
49054905 protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
49064906 protected override ResponseItem PersistableModelCreateCore ( BinaryData data , ModelReaderWriterOptions options ) ;
@@ -4917,12 +4917,13 @@ public enum ImageGenerationCallStatus {
49174917 public class ImageGenerationTool : ResponseTool , IJsonModel < ImageGenerationTool > , IPersistableModel < ImageGenerationTool > {
49184918 public ImageGenerationTool ( ) ;
49194919 public ImageGenerationToolBackground ? Background { get ; set ; }
4920+ public ImageGenerationToolInputFidelityLevel ? InputFidelityLevel { get ; set ; }
49204921 public ImageGenerationToolInputImageMask InputImageMask { get ; set ; }
49214922 public string Model { get ; set ; }
4922- public ImageGenerationToolModeration ? Moderation { get ; set ; }
4923- public int ? OutputCompression { get ; set ; }
4924- public ImageGenerationToolOutputFormat ? OutputFormat { get ; set ; }
4925- public int ? PartialImages { get ; set ; }
4923+ public ImageGenerationToolModerationLevel ? ModerationLevel { get ; set ; }
4924+ public int ? OutputCompressionFactor { get ; set ; }
4925+ public ImageGenerationToolOutputFileFormat ? OutputFileFormat { get ; set ; }
4926+ public int ? PartialImageCount { get ; set ; }
49264927 public ImageGenerationToolQuality ? Quality { get ; set ; }
49274928 public ImageGenerationToolSize ? Size { get ; set ; }
49284929 protected override ResponseTool JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
@@ -4948,6 +4949,22 @@ public class ImageGenerationTool : ResponseTool, IJsonModel<ImageGenerationTool>
49484949 public override readonly string ToString ( ) ;
49494950 }
49504951 [ Experimental ( "OPENAI001" ) ]
4952+ public readonly partial struct ImageGenerationToolInputFidelityLevel : IEquatable < ImageGenerationToolInputFidelityLevel > {
4953+ public ImageGenerationToolInputFidelityLevel ( string value ) ;
4954+ public static ImageGenerationToolInputFidelityLevel High { get ; }
4955+ public static ImageGenerationToolInputFidelityLevel Low { get ; }
4956+ public readonly bool Equals ( ImageGenerationToolInputFidelityLevel other ) ;
4957+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
4958+ public override readonly bool Equals ( object obj ) ;
4959+ [ EditorBrowsable ( EditorBrowsableState . Never ) ]
4960+ public override readonly int GetHashCode ( ) ;
4961+ public static bool operator == ( ImageGenerationToolInputFidelityLevel left , ImageGenerationToolInputFidelityLevel right ) ;
4962+ public static implicit operator ImageGenerationToolInputFidelityLevel ( string value ) ;
4963+ public static implicit operator ImageGenerationToolInputFidelityLevel ? ( string value ) ;
4964+ public static bool operator != ( ImageGenerationToolInputFidelityLevel left , ImageGenerationToolInputFidelityLevel right ) ;
4965+ public override readonly string ToString ( ) ;
4966+ }
4967+ [ Experimental ( "OPENAI001" ) ]
49514968 public class ImageGenerationToolInputImageMask : IJsonModel < ImageGenerationToolInputImageMask > , IPersistableModel < ImageGenerationToolInputImageMask > {
49524969 public string FileId { get ; set ; }
49534970 public string ImageUrl { get ; set ; }
@@ -4957,36 +4974,36 @@ public class ImageGenerationToolInputImageMask : IJsonModel<ImageGenerationToolI
49574974 protected virtual BinaryData PersistableModelWriteCore ( ModelReaderWriterOptions options ) ;
49584975 }
49594976 [ Experimental ( "OPENAI001" ) ]
4960- public readonly partial struct ImageGenerationToolModeration : IEquatable < ImageGenerationToolModeration > {
4961- public ImageGenerationToolModeration ( string value ) ;
4962- public static ImageGenerationToolModeration Auto { get ; }
4963- public static ImageGenerationToolModeration Low { get ; }
4964- public readonly bool Equals ( ImageGenerationToolModeration other ) ;
4977+ public readonly partial struct ImageGenerationToolModerationLevel : IEquatable < ImageGenerationToolModerationLevel > {
4978+ public ImageGenerationToolModerationLevel ( string value ) ;
4979+ public static ImageGenerationToolModerationLevel Auto { get ; }
4980+ public static ImageGenerationToolModerationLevel Low { get ; }
4981+ public readonly bool Equals ( ImageGenerationToolModerationLevel other ) ;
49654982 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
49664983 public override readonly bool Equals ( object obj ) ;
49674984 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
49684985 public override readonly int GetHashCode ( ) ;
4969- public static bool operator == ( ImageGenerationToolModeration left , ImageGenerationToolModeration right ) ;
4970- public static implicit operator ImageGenerationToolModeration ( string value ) ;
4971- public static implicit operator ImageGenerationToolModeration ? ( string value ) ;
4972- public static bool operator != ( ImageGenerationToolModeration left , ImageGenerationToolModeration right ) ;
4986+ public static bool operator == ( ImageGenerationToolModerationLevel left , ImageGenerationToolModerationLevel right ) ;
4987+ public static implicit operator ImageGenerationToolModerationLevel ( string value ) ;
4988+ public static implicit operator ImageGenerationToolModerationLevel ? ( string value ) ;
4989+ public static bool operator != ( ImageGenerationToolModerationLevel left , ImageGenerationToolModerationLevel right ) ;
49734990 public override readonly string ToString ( ) ;
49744991 }
49754992 [ Experimental ( "OPENAI001" ) ]
4976- public readonly partial struct ImageGenerationToolOutputFormat : IEquatable < ImageGenerationToolOutputFormat > {
4977- public ImageGenerationToolOutputFormat ( string value ) ;
4978- public static ImageGenerationToolOutputFormat Jpeg { get ; }
4979- public static ImageGenerationToolOutputFormat Png { get ; }
4980- public static ImageGenerationToolOutputFormat Webp { get ; }
4981- public readonly bool Equals ( ImageGenerationToolOutputFormat other ) ;
4993+ public readonly partial struct ImageGenerationToolOutputFileFormat : IEquatable < ImageGenerationToolOutputFileFormat > {
4994+ public ImageGenerationToolOutputFileFormat ( string value ) ;
4995+ public static ImageGenerationToolOutputFileFormat Jpeg { get ; }
4996+ public static ImageGenerationToolOutputFileFormat Png { get ; }
4997+ public static ImageGenerationToolOutputFileFormat Webp { get ; }
4998+ public readonly bool Equals ( ImageGenerationToolOutputFileFormat other ) ;
49824999 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
49835000 public override readonly bool Equals ( object obj ) ;
49845001 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
49855002 public override readonly int GetHashCode ( ) ;
4986- public static bool operator == ( ImageGenerationToolOutputFormat left , ImageGenerationToolOutputFormat right ) ;
4987- public static implicit operator ImageGenerationToolOutputFormat ( string value ) ;
4988- public static implicit operator ImageGenerationToolOutputFormat ? ( string value ) ;
4989- public static bool operator != ( ImageGenerationToolOutputFormat left , ImageGenerationToolOutputFormat right ) ;
5003+ public static bool operator == ( ImageGenerationToolOutputFileFormat left , ImageGenerationToolOutputFileFormat right ) ;
5004+ public static implicit operator ImageGenerationToolOutputFileFormat ( string value ) ;
5005+ public static implicit operator ImageGenerationToolOutputFileFormat ? ( string value ) ;
5006+ public static bool operator != ( ImageGenerationToolOutputFileFormat left , ImageGenerationToolOutputFileFormat right ) ;
49905007 public override readonly string ToString ( ) ;
49915008 }
49925009 [ Experimental ( "OPENAI001" ) ]
@@ -5009,19 +5026,17 @@ public class ImageGenerationToolInputImageMask : IJsonModel<ImageGenerationToolI
50095026 }
50105027 [ Experimental ( "OPENAI001" ) ]
50115028 public readonly partial struct ImageGenerationToolSize : IEquatable < ImageGenerationToolSize > {
5012- public ImageGenerationToolSize ( string value ) ;
5013- public static ImageGenerationToolSize _1024x1024 { get ; }
5014- public static ImageGenerationToolSize _1024x1536 { get ; }
5015- public static ImageGenerationToolSize _1536x1024 { get ; }
5029+ public static readonly ImageGenerationToolSize W1024xH1024 ;
5030+ public static readonly ImageGenerationToolSize W1024xH1536 ;
5031+ public static readonly ImageGenerationToolSize W1536xH1024 ;
5032+ public ImageGenerationToolSize ( int width , int height ) ;
50165033 public static ImageGenerationToolSize Auto { get ; }
50175034 public readonly bool Equals ( ImageGenerationToolSize other ) ;
50185035 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
50195036 public override readonly bool Equals ( object obj ) ;
50205037 [ EditorBrowsable ( EditorBrowsableState . Never ) ]
50215038 public override readonly int GetHashCode ( ) ;
50225039 public static bool operator == ( ImageGenerationToolSize left , ImageGenerationToolSize right ) ;
5023- public static implicit operator ImageGenerationToolSize ( string value ) ;
5024- public static implicit operator ImageGenerationToolSize ? ( string value ) ;
50255040 public static bool operator != ( ImageGenerationToolSize left , ImageGenerationToolSize right ) ;
50265041 public override readonly string ToString ( ) ;
50275042 }
@@ -5649,7 +5664,7 @@ public class ResponseTool : IJsonModel<ResponseTool>, IPersistableModel<Response
56495664 public static ComputerTool CreateComputerTool ( ComputerToolEnvironment environment , int displayWidth , int displayHeight ) ;
56505665 public static FileSearchTool CreateFileSearchTool ( IEnumerable < string > vectorStoreIds , int ? maxResultCount = null , FileSearchToolRankingOptions rankingOptions = null , BinaryData filters = null ) ;
56515666 public static FunctionTool CreateFunctionTool ( string functionName , BinaryData functionParameters , bool ? strictModeEnabled , string functionDescription = null ) ;
5652- public static ImageGenerationTool CreateImageGenerationTool ( string model , ImageGenerationToolQuality ? quality = null , ImageGenerationToolSize ? size = null , ImageGenerationToolOutputFormat ? outputFormat = null , int ? outputCompression = null , ImageGenerationToolModeration ? moderation = null , ImageGenerationToolBackground ? background = null , ImageGenerationToolInputImageMask inputImageMask = null , int ? partialImages = null ) ;
5667+ public static ImageGenerationTool CreateImageGenerationTool ( string model , ImageGenerationToolQuality ? quality = null , ImageGenerationToolSize ? size = null , ImageGenerationToolOutputFileFormat ? outputFileFormat = null , int ? outputCompressionFactor = null , ImageGenerationToolModerationLevel ? moderationLevel = null , ImageGenerationToolBackground ? background = null , ImageGenerationToolInputFidelityLevel ? inputFidelityLevel = null , ImageGenerationToolInputImageMask inputImageMask = null , int ? partialImageCount = null ) ;
56535668 public static McpTool CreateMcpTool ( string serverLabel , McpToolConnectorId connectorId , string authorizationToken = null , string serverDescription = null , IDictionary < string , string > headers = null , McpToolFilter allowedTools = null , McpToolCallApprovalPolicy toolCallApprovalPolicy = null ) ;
56545669 public static McpTool CreateMcpTool ( string serverLabel , Uri serverUri , string authorizationToken = null , string serverDescription = null , IDictionary < string , string > headers = null , McpToolFilter allowedTools = null , McpToolCallApprovalPolicy toolCallApprovalPolicy = null ) ;
56555670 public static WebSearchTool CreateWebSearchTool ( WebSearchToolLocation userLocation = null , WebSearchToolContextSize ? searchContextSize = null ) ;
@@ -5832,7 +5847,7 @@ public class StreamingResponseImageGenerationCallInProgressUpdate : StreamingRes
58325847 public class StreamingResponseImageGenerationCallPartialImageUpdate : StreamingResponseUpdate , IJsonModel < StreamingResponseImageGenerationCallPartialImageUpdate > , IPersistableModel < StreamingResponseImageGenerationCallPartialImageUpdate > {
58335848 public string ItemId { get ; }
58345849 public int OutputIndex { get ; }
5835- public string PartialImageB64 { get ; }
5850+ public BinaryData PartialImageBytes { get ; }
58365851 public int PartialImageIndex { get ; }
58375852 protected override StreamingResponseUpdate JsonModelCreateCore ( ref Utf8JsonReader reader , ModelReaderWriterOptions options ) ;
58385853 protected override void JsonModelWriteCore ( Utf8JsonWriter writer , ModelReaderWriterOptions options ) ;
0 commit comments