Skip to content

Commit b3a89bc

Browse files
committed
fb
1 parent b56a229 commit b3a89bc

File tree

11 files changed

+88
-95
lines changed

11 files changed

+88
-95
lines changed

api/OpenAI.net8.0.cs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5096,24 +5096,24 @@ public class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation,
50965096
public class CreateResponseOptions : IJsonModel<CreateResponseOptions>, IPersistableModel<CreateResponseOptions> {
50975097
public CreateResponseOptions(IEnumerable<ResponseItem> inputItems, string model);
50985098
public CreateResponseOptions(IEnumerable<ResponseItem> inputItems);
5099+
public bool? BackgroundModeEnabled { get; set; }
50995100
public string EndUserId { get; set; }
51005101
public IList<IncludedResponseProperty> IncludedProperties { get; }
51015102
public IList<ResponseItem> InputItems { get; }
51025103
public string Instructions { get; set; }
5103-
public bool? IsBackgroundModeEnabled { get; set; }
5104-
public bool? IsParallelToolCallsEnabled { get; set; }
5105-
public bool? IsStoredOutputEnabled { get; set; }
5106-
public bool? IsStreamingEnabled { get; set; }
51075104
public int? MaxOutputTokenCount { get; set; }
51085105
public IDictionary<string, string> Metadata { get; }
51095106
public string Model { get; set; }
5107+
public bool? ParallelToolCallsEnabled { get; set; }
51105108
[Serialization.JsonIgnore]
51115109
[EditorBrowsable(EditorBrowsableState.Never)]
51125110
[Experimental("SCME0001")]
51135111
public ref JsonPatch Patch { get; }
51145112
public string PreviousResponseId { get; set; }
51155113
public ResponseReasoningOptions ReasoningOptions { get; set; }
51165114
public ResponseServiceTier? ServiceTier { get; set; }
5115+
public bool? StoredOutputEnabled { get; set; }
5116+
public bool? StreamingEnabled { get; set; }
51175117
public float? Temperature { get; set; }
51185118
public ResponseTextOptions TextOptions { get; set; }
51195119
public ResponseToolChoice ToolChoice { get; set; }
@@ -5293,12 +5293,10 @@ public partial struct GetResponseInputItemsOptions {
52935293
public string ResponseId { get; set; }
52945294
}
52955295
public class GetResponseOptions {
5296-
public GetResponseOptions(string responseId);
52975296
public IEnumerable<IncludedResponseProperty> IncludedProperties { get; set; }
52985297
public bool? IncludeObfuscation { get; set; }
5299-
public string ResponseId { get; set; }
53005298
public int? StartingAfter { get; set; }
5301-
public bool Stream { get; set; }
5299+
public bool StreamingEnabled { get; set; }
53025300
}
53035301
[Experimental("OPENAI001")]
53045302
public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable<GlobalMcpToolCallApprovalPolicy> {
@@ -6077,20 +6075,20 @@ public class ResponseReasoningOptions : IJsonModel<ResponseReasoningOptions>, IP
60776075
}
60786076
[Experimental("OPENAI001")]
60796077
public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<ResponseResult> {
6078+
public bool? BackgroundModeEnabled { get; set; }
60806079
public DateTimeOffset CreatedAt { get; set; }
60816080
public string EndUserId { get; set; }
60826081
public ResponseError Error { get; set; }
60836082
public string Id { get; set; }
60846083
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; }
60856084
public string Instructions { get; set; }
6086-
public bool? IsBackgroundModeEnabled { get; set; }
6087-
public bool IsParallelToolCallsEnabled { get; set; }
60886085
public int? MaxOutputTokenCount { get; set; }
6089-
public IDictionary<string, string> Metadata { get; set; }
6086+
public IDictionary<string, string> Metadata { get; }
60906087
public string Model { get; }
60916088
[EditorBrowsable(EditorBrowsableState.Never)]
60926089
public string Object { get; set; }
6093-
public IList<ResponseItem> OutputItems { get; set; }
6090+
public IList<ResponseItem> OutputItems { get; }
6091+
public bool ParallelToolCallsEnabled { get; set; }
60946092
[EditorBrowsable(EditorBrowsableState.Never)]
60956093
[Experimental("SCME0001")]
60966094
public ref JsonPatch Patch { get; }
@@ -6101,7 +6099,7 @@ public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<Resp
61016099
public float? Temperature { get; set; }
61026100
public ResponseTextOptions TextOptions { get; set; }
61036101
public ResponseToolChoice ToolChoice { get; set; }
6104-
public IList<ResponseTool> Tools { get; set; }
6102+
public IList<ResponseTool> Tools { get; }
61056103
public float? TopP { get; set; }
61066104
public ResponseTruncationMode? TruncationMode { get; set; }
61076105
public ResponseTokenUsage Usage { get; set; }
@@ -6139,20 +6137,20 @@ public class ResponsesClient {
61396137
public virtual ClientResult<ResponseDeletionResult> DeleteResponse(string responseId, CancellationToken cancellationToken = default);
61406138
public virtual Task<ClientResult> DeleteResponseAsync(string responseId, RequestOptions options);
61416139
public virtual Task<ClientResult<ResponseDeletionResult>> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default);
6142-
public virtual ClientResult<ResponseResult> GetResponse(GetResponseOptions options, CancellationToken cancellationToken = default);
6140+
public virtual ClientResult<ResponseResult> GetResponse(string responseId, GetResponseOptions options = null, CancellationToken cancellationToken = default);
61436141
public virtual ClientResult GetResponse(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
61446142
public virtual ClientResult<OpenAIResponse> GetResponse(string responseId, IEnumerable<IncludedResponseProperty> include = null, CancellationToken cancellationToken = default);
6145-
public virtual Task<ClientResult<ResponseResult>> GetResponseAsync(GetResponseOptions options, CancellationToken cancellationToken = default);
6143+
public virtual Task<ClientResult<ResponseResult>> GetResponseAsync(string responseId, GetResponseOptions options = null, CancellationToken cancellationToken = default);
61466144
public virtual Task<ClientResult> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
61476145
public virtual ClientResult<ResponseItemCollection> GetResponseInputItems(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
61486146
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
61496147
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
61506148
public virtual Task<ClientResult<ResponseItemCollection>> GetResponseInputItemsAsync(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
61516149
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
61526150
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
6153-
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(GetResponseOptions options, CancellationToken cancellationToken = default);
6151+
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);
61546152
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, IEnumerable<IncludedResponseProperty> include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
6155-
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(GetResponseOptions options, CancellationToken cancellationToken = default);
6153+
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);
61566154
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, IEnumerable<IncludedResponseProperty> include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
61576155
}
61586156
[Experimental("OPENAI001")]

api/OpenAI.netstandard2.0.cs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4457,23 +4457,23 @@ public class ContainerFileCitationMessageAnnotation : ResponseMessageAnnotation,
44574457
public class CreateResponseOptions : IJsonModel<CreateResponseOptions>, IPersistableModel<CreateResponseOptions> {
44584458
public CreateResponseOptions(IEnumerable<ResponseItem> inputItems, string model);
44594459
public CreateResponseOptions(IEnumerable<ResponseItem> inputItems);
4460+
public bool? BackgroundModeEnabled { get; set; }
44604461
public string EndUserId { get; set; }
44614462
public IList<IncludedResponseProperty> IncludedProperties { get; }
44624463
public IList<ResponseItem> InputItems { get; }
44634464
public string Instructions { get; set; }
4464-
public bool? IsBackgroundModeEnabled { get; set; }
4465-
public bool? IsParallelToolCallsEnabled { get; set; }
4466-
public bool? IsStoredOutputEnabled { get; set; }
4467-
public bool? IsStreamingEnabled { get; set; }
44684465
public int? MaxOutputTokenCount { get; set; }
44694466
public IDictionary<string, string> Metadata { get; }
44704467
public string Model { get; set; }
4468+
public bool? ParallelToolCallsEnabled { get; set; }
44714469
[Serialization.JsonIgnore]
44724470
[EditorBrowsable(EditorBrowsableState.Never)]
44734471
public ref JsonPatch Patch { get; }
44744472
public string PreviousResponseId { get; set; }
44754473
public ResponseReasoningOptions ReasoningOptions { get; set; }
44764474
public ResponseServiceTier? ServiceTier { get; set; }
4475+
public bool? StoredOutputEnabled { get; set; }
4476+
public bool? StreamingEnabled { get; set; }
44774477
public float? Temperature { get; set; }
44784478
public ResponseTextOptions TextOptions { get; set; }
44794479
public ResponseToolChoice ToolChoice { get; set; }
@@ -4636,12 +4636,10 @@ public partial struct GetResponseInputItemsOptions {
46364636
public string ResponseId { get; set; }
46374637
}
46384638
public class GetResponseOptions {
4639-
public GetResponseOptions(string responseId);
46404639
public IEnumerable<IncludedResponseProperty> IncludedProperties { get; set; }
46414640
public bool? IncludeObfuscation { get; set; }
4642-
public string ResponseId { get; set; }
46434641
public int? StartingAfter { get; set; }
4644-
public bool Stream { get; set; }
4642+
public bool StreamingEnabled { get; set; }
46454643
}
46464644
public readonly partial struct GlobalMcpToolCallApprovalPolicy : IEquatable<GlobalMcpToolCallApprovalPolicy> {
46474645
public GlobalMcpToolCallApprovalPolicy(string value);
@@ -5348,20 +5346,20 @@ public class ResponseReasoningOptions : IJsonModel<ResponseReasoningOptions>, IP
53485346
public override readonly string ToString();
53495347
}
53505348
public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<ResponseResult> {
5349+
public bool? BackgroundModeEnabled { get; set; }
53515350
public DateTimeOffset CreatedAt { get; set; }
53525351
public string EndUserId { get; set; }
53535352
public ResponseError Error { get; set; }
53545353
public string Id { get; set; }
53555354
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; }
53565355
public string Instructions { get; set; }
5357-
public bool? IsBackgroundModeEnabled { get; set; }
5358-
public bool IsParallelToolCallsEnabled { get; set; }
53595356
public int? MaxOutputTokenCount { get; set; }
5360-
public IDictionary<string, string> Metadata { get; set; }
5357+
public IDictionary<string, string> Metadata { get; }
53615358
public string Model { get; }
53625359
[EditorBrowsable(EditorBrowsableState.Never)]
53635360
public string Object { get; set; }
5364-
public IList<ResponseItem> OutputItems { get; set; }
5361+
public IList<ResponseItem> OutputItems { get; }
5362+
public bool ParallelToolCallsEnabled { get; set; }
53655363
[EditorBrowsable(EditorBrowsableState.Never)]
53665364
public ref JsonPatch Patch { get; }
53675365
public string PreviousResponseId { get; set; }
@@ -5371,7 +5369,7 @@ public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<Resp
53715369
public float? Temperature { get; set; }
53725370
public ResponseTextOptions TextOptions { get; set; }
53735371
public ResponseToolChoice ToolChoice { get; set; }
5374-
public IList<ResponseTool> Tools { get; set; }
5372+
public IList<ResponseTool> Tools { get; }
53755373
public float? TopP { get; set; }
53765374
public ResponseTruncationMode? TruncationMode { get; set; }
53775375
public ResponseTokenUsage Usage { get; set; }
@@ -5407,20 +5405,20 @@ public class ResponsesClient {
54075405
public virtual ClientResult<ResponseDeletionResult> DeleteResponse(string responseId, CancellationToken cancellationToken = default);
54085406
public virtual Task<ClientResult> DeleteResponseAsync(string responseId, RequestOptions options);
54095407
public virtual Task<ClientResult<ResponseDeletionResult>> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default);
5410-
public virtual ClientResult<ResponseResult> GetResponse(GetResponseOptions options, CancellationToken cancellationToken = default);
5408+
public virtual ClientResult<ResponseResult> GetResponse(string responseId, GetResponseOptions options = null, CancellationToken cancellationToken = default);
54115409
public virtual ClientResult GetResponse(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
54125410
public virtual ClientResult<OpenAIResponse> GetResponse(string responseId, IEnumerable<IncludedResponseProperty> include = null, CancellationToken cancellationToken = default);
5413-
public virtual Task<ClientResult<ResponseResult>> GetResponseAsync(GetResponseOptions options, CancellationToken cancellationToken = default);
5411+
public virtual Task<ClientResult<ResponseResult>> GetResponseAsync(string responseId, GetResponseOptions options = null, CancellationToken cancellationToken = default);
54145412
public virtual Task<ClientResult> GetResponseAsync(string responseId, IEnumerable<IncludedResponseProperty> include, bool? stream, int? startingAfter, bool? includeObfuscation, RequestOptions options);
54155413
public virtual ClientResult<ResponseItemCollection> GetResponseInputItems(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
54165414
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
54175415
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
54185416
public virtual Task<ClientResult<ResponseItemCollection>> GetResponseInputItemsAsync(GetResponseInputItemsOptions options = default, CancellationToken cancellationToken = default);
54195417
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
54205418
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
5421-
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(GetResponseOptions options, CancellationToken cancellationToken = default);
5419+
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);
54225420
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, IEnumerable<IncludedResponseProperty> include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
5423-
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(GetResponseOptions options, CancellationToken cancellationToken = default);
5421+
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, GetResponseOptions options, CancellationToken cancellationToken = default);
54245422
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, IEnumerable<IncludedResponseProperty> include = null, int? startingAfter = null, bool? includeObfuscation = null, CancellationToken cancellationToken = default);
54255423
}
54265424
public readonly partial struct ResponseServiceTier : IEquatable<ResponseServiceTier> {

src/Custom/Responses/CreateResponseOptions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public CreateResponseOptions(IEnumerable<ResponseItem> inputItems, string model)
2424
/// Gets or sets whether to run the response in background mode. This corresponds to the "background" property in the JSON representation.
2525
/// </summary>
2626
[CodeGenMember("Background")]
27-
public bool? IsBackgroundModeEnabled { get; set; }
27+
public bool? BackgroundModeEnabled { get; set; }
2828

2929
/// <summary>
3030
/// Gets or sets how tool calls should be selected during response generation. This corresponds to the "tool_choice" property in the JSON representation.
@@ -48,19 +48,19 @@ public CreateResponseOptions(IEnumerable<ResponseItem> inputItems, string model)
4848
/// Gets or sets whether multiple tool calls can be made in parallel. This corresponds to the "parallel_tool_calls" property in the JSON representation.
4949
/// </summary>
5050
[CodeGenMember("ParallelToolCalls")]
51-
public bool? IsParallelToolCallsEnabled { get; set; }
51+
public bool? ParallelToolCallsEnabled { get; set; }
5252

5353
/// <summary>
5454
/// Gets or sets whether the response should be stored for later retrieval. This corresponds to the "store" property in the JSON representation.
5555
/// </summary>
5656
[CodeGenMember("Store")]
57-
public bool? IsStoredOutputEnabled { get; set; }
57+
public bool? StoredOutputEnabled { get; set; }
5858

5959
/// <summary>
6060
/// Gets or sets whether the response should be streamed. This corresponds to the "stream" property in the JSON representation.
6161
/// </summary>
6262
[CodeGenMember("Stream")]
63-
public bool? IsStreamingEnabled { get; set; }
63+
public bool? StreamingEnabled { get; set; }
6464

6565
/// <summary>
6666
/// Gets or sets the maximum number of output tokens to generate. This corresponds to the "max_output_tokens" property in the JSON representation.

src/Custom/Responses/GetResponseOptions.cs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,21 @@ namespace OpenAI.Responses
55
{
66
public class GetResponseOptions
77
{
8-
public GetResponseOptions(string responseId)
9-
{
10-
ResponseId = responseId;
11-
}
12-
13-
public string ResponseId { get; set; }
14-
158
public int? StartingAfter { get; set; }
169

17-
public bool Stream { get; set; }
10+
/// <summary>
11+
/// Gets or sets whether streaming is enabled for the response. This corresponds to the "stream" property in the JSON representation.
12+
/// </summary>
13+
public bool StreamingEnabled { get; set; }
1814

15+
/// <summary>
16+
/// Gets or sets the list of fields to include in the response. This corresponds to the "include" query parameter.
17+
/// </summary>
1918
public IEnumerable<IncludedResponseProperty> IncludedProperties { get; set;}
2019

20+
/// <summary>
21+
/// Gets or sets whether to include obfuscation data in the response. This corresponds to the "include_obfuscation" property in the JSON representation.
22+
/// </summary>
2123
public bool? IncludeObfuscation { get; set; }
2224
}
2325
}

0 commit comments

Comments
 (0)