Skip to content

Commit 20630af

Browse files
committed
rename
1 parent b0e91cb commit 20630af

16 files changed

+54
-52
lines changed

api/OpenAI.net8.0.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5330,14 +5330,14 @@ public class OpenAIResponseClient {
53305330
public virtual ClientResult<ResponseDeletionResult> DeleteResponse(string responseId, CancellationToken cancellationToken = default);
53315331
public virtual Task<ClientResult> DeleteResponseAsync(string responseId, RequestOptions options);
53325332
public virtual Task<ClientResult<ResponseDeletionResult>> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default);
5333-
public virtual CollectionResult<ResponseItem> GetInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
5334-
public virtual CollectionResult GetInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
5335-
public virtual AsyncCollectionResult<ResponseItem> GetInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
5336-
public virtual AsyncCollectionResult GetInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
53375333
public virtual ClientResult GetResponse(string responseId, bool? stream, int? startingAfter, RequestOptions options);
53385334
public virtual ClientResult<OpenAIResponse> GetResponse(string responseId, CancellationToken cancellationToken = default);
53395335
public virtual Task<ClientResult> GetResponseAsync(string responseId, bool? stream, int? startingAfter, RequestOptions options);
53405336
public virtual Task<ClientResult<OpenAIResponse>> GetResponseAsync(string responseId, CancellationToken cancellationToken = default);
5337+
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
5338+
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
5339+
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
5340+
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
53415341
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, int? startingAfter = null, CancellationToken cancellationToken = default);
53425342
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, int? startingAfter = null, CancellationToken cancellationToken = default);
53435343
}

api/OpenAI.netstandard2.0.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4702,14 +4702,14 @@ public class OpenAIResponseClient {
47024702
public virtual ClientResult<ResponseDeletionResult> DeleteResponse(string responseId, CancellationToken cancellationToken = default);
47034703
public virtual Task<ClientResult> DeleteResponseAsync(string responseId, RequestOptions options);
47044704
public virtual Task<ClientResult<ResponseDeletionResult>> DeleteResponseAsync(string responseId, CancellationToken cancellationToken = default);
4705-
public virtual CollectionResult<ResponseItem> GetInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
4706-
public virtual CollectionResult GetInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
4707-
public virtual AsyncCollectionResult<ResponseItem> GetInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
4708-
public virtual AsyncCollectionResult GetInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
47094705
public virtual ClientResult GetResponse(string responseId, bool? stream, int? startingAfter, RequestOptions options);
47104706
public virtual ClientResult<OpenAIResponse> GetResponse(string responseId, CancellationToken cancellationToken = default);
47114707
public virtual Task<ClientResult> GetResponseAsync(string responseId, bool? stream, int? startingAfter, RequestOptions options);
47124708
public virtual Task<ClientResult<OpenAIResponse>> GetResponseAsync(string responseId, CancellationToken cancellationToken = default);
4709+
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
4710+
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options);
4711+
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = null, CancellationToken cancellationToken = default);
4712+
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options);
47134713
public virtual CollectionResult<StreamingResponseUpdate> GetResponseStreaming(string responseId, int? startingAfter = null, CancellationToken cancellationToken = default);
47144714
public virtual AsyncCollectionResult<StreamingResponseUpdate> GetResponseStreamingAsync(string responseId, int? startingAfter = null, CancellationToken cancellationToken = default);
47154715
}

codegen/generator/src/Visitors/PaginationVisitor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ public class PaginationVisitor : ScmLibraryVisitor
8888
("ContainerFileResource", "ContainerFileCollectionOptions", _paginationParamsToReplace)
8989
},
9090
{
91-
"GetInputItems",
91+
"GetResponseInputItems",
9292
("ResponseItem", "ResponseItemCollectionOptions", _paginationParamsToReplace)
9393
},
9494
{
95-
"GetInputItemsAsync",
95+
"GetResponseInputItemsAsync",
9696
("ResponseItem", "ResponseItemCollectionOptions", _paginationParamsToReplace)
9797
},
9898
{

specification/client/responses.client.tsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ using Azure.ClientGenerator.Core;
6969

7070
@@clientName(MCPToolFilter.read_only, "IsReadOnly");
7171

72+
@@clientName(Responses.listInputItems, "GetResponseInputItems");
73+
7274
// ------------ Streaming ------------
7375

7476
@@alternateType(ResponseFunctionCallArgumentsDoneEvent.arguments, unknown);

src/Custom/Responses/Pagination/Internal/AsyncResponseItemCollectionResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public async Task<ClientResult> GetNextPageAsync(ClientResult result)
8383

8484
internal virtual async Task<ClientResult> GetResponsesAsync(string responseId, int? limit, string? order, string? after, string? before, RequestOptions? options)
8585
{
86-
using PipelineMessage message = _parentClient.CreateGetInputItemsRequest(responseId, limit, order, after, before, options);
86+
using PipelineMessage message = _parentClient.CreateGetResponseInputItemsRequest(responseId, limit, order, after, before, options);
8787
return ClientResult.FromResponse(await _parentClient.Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
8888
}
8989
}

src/Custom/Responses/Pagination/Internal/ResponseItemCollectionResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static bool HasNextPage(ClientResult result)
9191

9292
internal virtual ClientResult GetResponseInputItems(string responseId, int? limit, string? order, string? after, string? before, RequestOptions? options)
9393
{
94-
using PipelineMessage message = _parentClient.CreateGetInputItemsRequest(responseId, limit, order, after, before, options);
94+
using PipelineMessage message = _parentClient.CreateGetResponseInputItemsRequest(responseId, limit, order, after, before, options);
9595
return ClientResult.FromResponse(_parentClient.Pipeline.ProcessMessage(message, options));
9696
}
9797
}

src/Generated/OpenAIResponseClient.RestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ internal virtual PipelineMessage CreateCancelResponseRequest(string responseId,
8484
return message;
8585
}
8686

87-
internal virtual PipelineMessage CreateGetInputItemsRequest(string responseId, int? limit, string order, string after, string before, RequestOptions options)
87+
internal virtual PipelineMessage CreateGetResponseInputItemsRequest(string responseId, int? limit, string order, string after, string before, RequestOptions options)
8888
{
8989
ClientUriBuilder uri = new ClientUriBuilder();
9090
uri.Reset(_endpoint);

src/Generated/OpenAIResponseClient.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ public virtual async Task<ClientResult> CancelResponseAsync(string responseId, R
7777
return ClientResult.FromResponse(await Pipeline.ProcessMessageAsync(message, options).ConfigureAwait(false));
7878
}
7979

80-
public virtual CollectionResult GetInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options)
80+
public virtual CollectionResult GetResponseInputItems(string responseId, int? limit, string order, string after, string before, RequestOptions options)
8181
{
8282
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
8383

84-
return new OpenAIResponseClientGetInputItemsCollectionResult(
84+
return new OpenAIResponseClientGetResponseInputItemsCollectionResult(
8585
this,
8686
responseId,
8787
limit,
@@ -91,11 +91,11 @@ public virtual CollectionResult GetInputItems(string responseId, int? limit, str
9191
options);
9292
}
9393

94-
public virtual AsyncCollectionResult GetInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options)
94+
public virtual AsyncCollectionResult GetResponseInputItemsAsync(string responseId, int? limit, string order, string after, string before, RequestOptions options)
9595
{
9696
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
9797

98-
return new OpenAIResponseClientGetInputItemsAsyncCollectionResult(
98+
return new OpenAIResponseClientGetResponseInputItemsAsyncCollectionResult(
9999
this,
100100
responseId,
101101
limit,
@@ -105,11 +105,11 @@ public virtual AsyncCollectionResult GetInputItemsAsync(string responseId, int?
105105
options);
106106
}
107107

108-
public virtual CollectionResult<ResponseItem> GetInputItems(string responseId, ResponseItemCollectionOptions options = default, CancellationToken cancellationToken = default)
108+
public virtual CollectionResult<ResponseItem> GetResponseInputItems(string responseId, ResponseItemCollectionOptions options = default, CancellationToken cancellationToken = default)
109109
{
110110
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
111111

112-
return new OpenAIResponseClientGetInputItemsCollectionResultOfT(
112+
return new OpenAIResponseClientGetResponseInputItemsCollectionResultOfT(
113113
this,
114114
responseId,
115115
options?.PageSizeLimit,
@@ -119,11 +119,11 @@ public virtual CollectionResult<ResponseItem> GetInputItems(string responseId, R
119119
cancellationToken.CanBeCanceled ? new RequestOptions { CancellationToken = cancellationToken } : null);
120120
}
121121

122-
public virtual AsyncCollectionResult<ResponseItem> GetInputItemsAsync(string responseId, ResponseItemCollectionOptions options = default, CancellationToken cancellationToken = default)
122+
public virtual AsyncCollectionResult<ResponseItem> GetResponseInputItemsAsync(string responseId, ResponseItemCollectionOptions options = default, CancellationToken cancellationToken = default)
123123
{
124124
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
125125

126-
return new OpenAIResponseClientGetInputItemsAsyncCollectionResultOfT(
126+
return new OpenAIResponseClientGetResponseInputItemsAsyncCollectionResultOfT(
127127
this,
128128
responseId,
129129
options?.PageSizeLimit,

src/Generated/OpenAIResponseClientGetInputItemsAsyncCollectionResult.cs renamed to src/Generated/OpenAIResponseClientGetResponseInputItemsAsyncCollectionResult.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace OpenAI.Responses
1212
{
13-
internal partial class OpenAIResponseClientGetInputItemsAsyncCollectionResult : AsyncCollectionResult
13+
internal partial class OpenAIResponseClientGetResponseInputItemsAsyncCollectionResult : AsyncCollectionResult
1414
{
1515
private readonly OpenAIResponseClient _client;
1616
private readonly string _responseId;
@@ -20,7 +20,7 @@ internal partial class OpenAIResponseClientGetInputItemsAsyncCollectionResult :
2020
private readonly string _before;
2121
private readonly RequestOptions _options;
2222

23-
public OpenAIResponseClientGetInputItemsAsyncCollectionResult(OpenAIResponseClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
23+
public OpenAIResponseClientGetResponseInputItemsAsyncCollectionResult(OpenAIResponseClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
2424
{
2525
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
2626

@@ -35,7 +35,7 @@ public OpenAIResponseClientGetInputItemsAsyncCollectionResult(OpenAIResponseClie
3535

3636
public override async IAsyncEnumerable<ClientResult> GetRawPagesAsync()
3737
{
38-
PipelineMessage message = _client.CreateGetInputItemsRequest(_responseId, _limit, _order, _after, _before, _options);
38+
PipelineMessage message = _client.CreateGetResponseInputItemsRequest(_responseId, _limit, _order, _after, _before, _options);
3939
string nextToken = null;
4040
while (true)
4141
{
@@ -50,7 +50,7 @@ public override async IAsyncEnumerable<ClientResult> GetRawPagesAsync()
5050
{
5151
yield break;
5252
}
53-
message = _client.CreateGetInputItemsRequest(_responseId, _limit, _order, nextToken, _before, _options);
53+
message = _client.CreateGetResponseInputItemsRequest(_responseId, _limit, _order, nextToken, _before, _options);
5454
}
5555
}
5656

src/Generated/OpenAIResponseClientGetInputItemsAsyncCollectionResultOfT.cs renamed to src/Generated/OpenAIResponseClientGetResponseInputItemsAsyncCollectionResultOfT.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace OpenAI.Responses
1313
{
14-
internal partial class OpenAIResponseClientGetInputItemsAsyncCollectionResultOfT : AsyncCollectionResult<ResponseItem>
14+
internal partial class OpenAIResponseClientGetResponseInputItemsAsyncCollectionResultOfT : AsyncCollectionResult<ResponseItem>
1515
{
1616
private readonly OpenAIResponseClient _client;
1717
private readonly string _responseId;
@@ -21,7 +21,7 @@ internal partial class OpenAIResponseClientGetInputItemsAsyncCollectionResultOfT
2121
private readonly string _before;
2222
private readonly RequestOptions _options;
2323

24-
public OpenAIResponseClientGetInputItemsAsyncCollectionResultOfT(OpenAIResponseClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
24+
public OpenAIResponseClientGetResponseInputItemsAsyncCollectionResultOfT(OpenAIResponseClient client, string responseId, int? limit, string order, string after, string before, RequestOptions options)
2525
{
2626
Argument.AssertNotNullOrEmpty(responseId, nameof(responseId));
2727

@@ -36,7 +36,7 @@ public OpenAIResponseClientGetInputItemsAsyncCollectionResultOfT(OpenAIResponseC
3636

3737
public override async IAsyncEnumerable<ClientResult> GetRawPagesAsync()
3838
{
39-
PipelineMessage message = _client.CreateGetInputItemsRequest(_responseId, _limit, _order, _after, _before, _options);
39+
PipelineMessage message = _client.CreateGetResponseInputItemsRequest(_responseId, _limit, _order, _after, _before, _options);
4040
string nextToken = null;
4141
while (true)
4242
{
@@ -51,7 +51,7 @@ public override async IAsyncEnumerable<ClientResult> GetRawPagesAsync()
5151
{
5252
yield break;
5353
}
54-
message = _client.CreateGetInputItemsRequest(_responseId, _limit, _order, nextToken, _before, _options);
54+
message = _client.CreateGetResponseInputItemsRequest(_responseId, _limit, _order, nextToken, _before, _options);
5555
}
5656
}
5757

0 commit comments

Comments
 (0)