Skip to content

Commit b56a229

Browse files
committed
export
1 parent b17b1c1 commit b56a229

File tree

4 files changed

+82
-71
lines changed

4 files changed

+82
-71
lines changed

api/OpenAI.net8.0.cs

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5096,6 +5096,7 @@ 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 string EndUserId { get; set; }
50995100
public IList<IncludedResponseProperty> IncludedProperties { get; }
51005101
public IList<ResponseItem> InputItems { get; }
51015102
public string Instructions { get; set; }
@@ -6076,33 +6077,34 @@ public class ResponseReasoningOptions : IJsonModel<ResponseReasoningOptions>, IP
60766077
}
60776078
[Experimental("OPENAI001")]
60786079
public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<ResponseResult> {
6079-
public DateTimeOffset CreatedAt { get; }
6080-
public string EndUserId { get; }
6081-
public ResponseError Error { get; }
6082-
public string Id { get; }
6083-
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; }
6084-
public string Instructions { get; }
6085-
public bool? IsBackgroundModeEnabled { get; }
6086-
public bool IsParallelToolCallsEnabled { get; }
6087-
public int? MaxOutputTokenCount { get; }
6088-
public IDictionary<string, string> Metadata { get; }
6080+
public DateTimeOffset CreatedAt { get; set; }
6081+
public string EndUserId { get; set; }
6082+
public ResponseError Error { get; set; }
6083+
public string Id { get; set; }
6084+
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; }
6085+
public string Instructions { get; set; }
6086+
public bool? IsBackgroundModeEnabled { get; set; }
6087+
public bool IsParallelToolCallsEnabled { get; set; }
6088+
public int? MaxOutputTokenCount { get; set; }
6089+
public IDictionary<string, string> Metadata { get; set; }
60896090
public string Model { get; }
6090-
public string Object { get; }
6091-
public IList<ResponseItem> OutputItems { get; }
6091+
[EditorBrowsable(EditorBrowsableState.Never)]
6092+
public string Object { get; set; }
6093+
public IList<ResponseItem> OutputItems { get; set; }
60926094
[EditorBrowsable(EditorBrowsableState.Never)]
60936095
[Experimental("SCME0001")]
60946096
public ref JsonPatch Patch { get; }
6095-
public string PreviousResponseId { get; }
6096-
public ResponseReasoningOptions ReasoningOptions { get; }
6097-
public ResponseServiceTier? ServiceTier { get; }
6098-
public ResponseStatus? Status { get; }
6099-
public float? Temperature { get; }
6100-
public ResponseTextOptions TextOptions { get; }
6101-
public ResponseToolChoice ToolChoice { get; }
6102-
public IList<ResponseTool> Tools { get; }
6103-
public float? TopP { get; }
6104-
public ResponseTruncationMode? TruncationMode { get; }
6105-
public ResponseTokenUsage Usage { get; }
6097+
public string PreviousResponseId { get; set; }
6098+
public ResponseReasoningOptions ReasoningOptions { get; set; }
6099+
public ResponseServiceTier? ServiceTier { get; set; }
6100+
public ResponseStatus? Status { get; set; }
6101+
public float? Temperature { get; set; }
6102+
public ResponseTextOptions TextOptions { get; set; }
6103+
public ResponseToolChoice ToolChoice { get; set; }
6104+
public IList<ResponseTool> Tools { get; set; }
6105+
public float? TopP { get; set; }
6106+
public ResponseTruncationMode? TruncationMode { get; set; }
6107+
public ResponseTokenUsage Usage { get; set; }
61066108
public string GetOutputText();
61076109
protected virtual ResponseResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
61086110
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);

api/OpenAI.netstandard2.0.cs

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4457,6 +4457,7 @@ 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 string EndUserId { get; set; }
44604461
public IList<IncludedResponseProperty> IncludedProperties { get; }
44614462
public IList<ResponseItem> InputItems { get; }
44624463
public string Instructions { get; set; }
@@ -5347,32 +5348,33 @@ public class ResponseReasoningOptions : IJsonModel<ResponseReasoningOptions>, IP
53475348
public override readonly string ToString();
53485349
}
53495350
public class ResponseResult : IJsonModel<ResponseResult>, IPersistableModel<ResponseResult> {
5350-
public DateTimeOffset CreatedAt { get; }
5351-
public string EndUserId { get; }
5352-
public ResponseError Error { get; }
5353-
public string Id { get; }
5354-
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; }
5355-
public string Instructions { get; }
5356-
public bool? IsBackgroundModeEnabled { get; }
5357-
public bool IsParallelToolCallsEnabled { get; }
5358-
public int? MaxOutputTokenCount { get; }
5359-
public IDictionary<string, string> Metadata { get; }
5351+
public DateTimeOffset CreatedAt { get; set; }
5352+
public string EndUserId { get; set; }
5353+
public ResponseError Error { get; set; }
5354+
public string Id { get; set; }
5355+
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; }
5356+
public string Instructions { get; set; }
5357+
public bool? IsBackgroundModeEnabled { get; set; }
5358+
public bool IsParallelToolCallsEnabled { get; set; }
5359+
public int? MaxOutputTokenCount { get; set; }
5360+
public IDictionary<string, string> Metadata { get; set; }
53605361
public string Model { get; }
5361-
public string Object { get; }
5362-
public IList<ResponseItem> OutputItems { get; }
5362+
[EditorBrowsable(EditorBrowsableState.Never)]
5363+
public string Object { get; set; }
5364+
public IList<ResponseItem> OutputItems { get; set; }
53635365
[EditorBrowsable(EditorBrowsableState.Never)]
53645366
public ref JsonPatch Patch { get; }
5365-
public string PreviousResponseId { get; }
5366-
public ResponseReasoningOptions ReasoningOptions { get; }
5367-
public ResponseServiceTier? ServiceTier { get; }
5368-
public ResponseStatus? Status { get; }
5369-
public float? Temperature { get; }
5370-
public ResponseTextOptions TextOptions { get; }
5371-
public ResponseToolChoice ToolChoice { get; }
5372-
public IList<ResponseTool> Tools { get; }
5373-
public float? TopP { get; }
5374-
public ResponseTruncationMode? TruncationMode { get; }
5375-
public ResponseTokenUsage Usage { get; }
5367+
public string PreviousResponseId { get; set; }
5368+
public ResponseReasoningOptions ReasoningOptions { get; set; }
5369+
public ResponseServiceTier? ServiceTier { get; set; }
5370+
public ResponseStatus? Status { get; set; }
5371+
public float? Temperature { get; set; }
5372+
public ResponseTextOptions TextOptions { get; set; }
5373+
public ResponseToolChoice ToolChoice { get; set; }
5374+
public IList<ResponseTool> Tools { get; set; }
5375+
public float? TopP { get; set; }
5376+
public ResponseTruncationMode? TruncationMode { get; set; }
5377+
public ResponseTokenUsage Usage { get; set; }
53765378
public string GetOutputText();
53775379
protected virtual ResponseResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options);
53785380
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options);

src/Custom/Responses/CreateResponseOptions.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public CreateResponseOptions(IEnumerable<ResponseItem> inputItems, string model)
9292
[CodeGenMember("Truncation")]
9393
public ResponseTruncationMode? TruncationMode { get; set; }
9494

95+
/// <summary>
96+
/// Gets or sets the end user identifier. This corresponds to the "user" property in the JSON representation.
97+
/// </summary>
98+
[CodeGenMember("User")]
99+
public string EndUserId { get; set; }
100+
95101
internal static CreateResponseOptions Create(IEnumerable<ResponseItem> inputItems, string model, ResponsesClient client, ResponseCreationOptions options = null, bool isStreaming = false)
96102
{
97103
Argument.AssertNotNull(inputItems, nameof(inputItems));

src/Custom/Responses/ResponseResult.cs

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -70,37 +70,37 @@ internal ResponseResult(IDictionary<string, string> metadata, float? temperature
7070
/// <summary>
7171
/// Gets a dictionary of custom metadata for the response. This corresponds to the "metadata" property in the JSON representation.
7272
/// </summary>
73-
public IDictionary<string, string> Metadata { get; }
73+
public IDictionary<string, string> Metadata { get; set; }
7474

7575
/// <summary>
7676
/// Gets the sampling temperature that was used, between 0 and 2. This corresponds to the "temperature" property in the JSON representation.
7777
/// </summary>
78-
public float? Temperature { get; }
78+
public float? Temperature { get; set; }
7979

8080
/// <summary>
8181
/// Gets the nucleus sampling parameter that was used, between 0 and 1. This corresponds to the "top_p" property in the JSON representation.
8282
/// </summary>
83-
public float? TopP { get; }
83+
public float? TopP { get; set; }
8484

8585
/// <summary>
8686
/// Gets the unique identifier representing the end-user. This corresponds to the "user" property in the JSON representation.
8787
/// </summary>
88-
public string EndUserId { get; }
88+
public string EndUserId { get; set; }
8989

9090
/// <summary>
9191
/// Gets the service tier that was used for processing the request. This corresponds to the "service_tier" property in the JSON representation.
9292
/// </summary>
93-
public ResponseServiceTier? ServiceTier { get; }
93+
public ResponseServiceTier? ServiceTier { get; set; }
9494

9595
/// <summary>
9696
/// Gets the ID of the previous response that was continued from, if applicable. This corresponds to the "previous_response_id" property in the JSON representation.
9797
/// </summary>
98-
public string PreviousResponseId { get; }
98+
public string PreviousResponseId { get; set; }
9999

100100
/// <summary>
101101
/// Gets the internal model identifier that was used for generating the response.
102102
/// </summary>
103-
internal ModelIdsResponses? InternalModel { get; }
103+
internal ModelIdsResponses? InternalModel { get; set; }
104104

105105
/// <summary>
106106
/// Gets the model name that was used for generating the response. This corresponds to the "model" property in the JSON representation.
@@ -110,92 +110,93 @@ internal ResponseResult(IDictionary<string, string> metadata, float? temperature
110110
/// <summary>
111111
/// Gets the reasoning options that were used for the response. This corresponds to the "reasoning" property in the JSON representation.
112112
/// </summary>
113-
public ResponseReasoningOptions ReasoningOptions { get; }
113+
public ResponseReasoningOptions ReasoningOptions { get; set; }
114114

115115
/// <summary>
116116
/// Gets whether the response was run in background mode. This corresponds to the "background" property in the JSON representation.
117117
/// </summary>
118-
public bool? IsBackgroundModeEnabled { get; }
118+
public bool? IsBackgroundModeEnabled { get; set; }
119119

120120
/// <summary>
121121
/// Gets the maximum number of output tokens that were configured. This corresponds to the "max_output_tokens" property in the JSON representation.
122122
/// </summary>
123-
public int? MaxOutputTokenCount { get; }
123+
public int? MaxOutputTokenCount { get; set; }
124124

125125
/// <summary>
126126
/// Gets the instructions that were used to guide the response generation. This corresponds to the "instructions" property in the JSON representation.
127127
/// </summary>
128-
public string Instructions { get; }
128+
public string Instructions { get; set; }
129129

130130
/// <summary>
131131
/// Gets the text format options that were used for the response. This corresponds to the "text" property in the JSON representation.
132132
/// </summary>
133-
public ResponseTextOptions TextOptions { get; }
133+
public ResponseTextOptions TextOptions { get; set; }
134134

135135
/// <summary>
136136
/// Gets a list of tools that were available for the response. This corresponds to the "tools" property in the JSON representation.
137137
/// </summary>
138-
public IList<ResponseTool> Tools { get; }
138+
public IList<ResponseTool> Tools { get; set; }
139139

140140
/// <summary>
141141
/// Gets how tool calls were selected during response generation. This corresponds to the "tool_choice" property in the JSON representation.
142142
/// </summary>
143-
public ResponseToolChoice ToolChoice { get; }
143+
public ResponseToolChoice ToolChoice { get; set; }
144144

145145
/// <summary>
146146
/// Gets the truncation mode that was used for the response. This corresponds to the "truncation" property in the JSON representation.
147147
/// </summary>
148-
public ResponseTruncationMode? TruncationMode { get; }
148+
public ResponseTruncationMode? TruncationMode { get; set; }
149149

150150
/// <summary>
151151
/// Gets the unique identifier for the response. This corresponds to the "id" property in the JSON representation.
152152
/// </summary>
153-
public string Id { get; }
153+
public string Id { get; set; }
154154

155155
/// <summary>
156156
/// Gets the object type identifier for the response. This corresponds to the "object" property in the JSON representation.
157157
/// </summary>
158-
public string Object { get; } = "ResponseResult";
158+
[EditorBrowsable(EditorBrowsableState.Never)]
159+
public string Object { get; set; } = "ResponseResult";
159160

160161
/// <summary>
161162
/// Gets the status of the response processing. This corresponds to the "status" property in the JSON representation.
162163
/// </summary>
163-
public ResponseStatus? Status { get; }
164+
public ResponseStatus? Status { get; set; }
164165

165166
/// <summary>
166167
/// Gets the timestamp when the response was created. This corresponds to the "created_at" property in the JSON representation.
167168
/// </summary>
168-
public DateTimeOffset CreatedAt { get; }
169+
public DateTimeOffset CreatedAt { get; set; }
169170

170171
/// <summary>
171172
/// Gets the error information if the response failed. This corresponds to the "error" property in the JSON representation.
172173
/// </summary>
173-
public ResponseError Error { get; }
174+
public ResponseError Error { get; set; }
174175

175176
/// <summary>
176177
/// Gets the details about incomplete status if applicable. This corresponds to the "incomplete_details" property in the JSON representation.
177178
/// </summary>
178-
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; }
179+
public ResponseIncompleteStatusDetails IncompleteStatusDetails { get; set; }
179180

180181
/// <summary>
181182
/// Gets the output items generated by the response. This corresponds to the "output" property in the JSON representation.
182183
/// </summary>
183-
public IList<ResponseItem> OutputItems { get; }
184+
public IList<ResponseItem> OutputItems { get; set; }
184185

185186
/// <summary>
186187
/// Gets the concatenated text output from the response, if any.
187188
/// </summary>
188-
internal string OutputText { get; }
189+
internal string OutputText { get; set; }
189190

190191
/// <summary>
191192
/// Gets the token usage statistics for the response. This corresponds to the "usage" property in the JSON representation.
192193
/// </summary>
193-
public ResponseTokenUsage Usage { get; }
194+
public ResponseTokenUsage Usage { get; set; }
194195

195196
/// <summary>
196197
/// Gets whether multiple tool calls were made in parallel. This corresponds to the "parallel_tool_calls" property in the JSON representation.
197198
/// </summary>
198-
public bool IsParallelToolCallsEnabled { get; }
199+
public bool IsParallelToolCallsEnabled { get; set; }
199200

200201
public string GetOutputText()
201202
{

0 commit comments

Comments
 (0)