2 writes to ContinuationToken
Microsoft.Extensions.AI.Abstractions.Tests (1)
ChatCompletion\ChatResponseTests.cs (1)
134ContinuationToken = ResponseContinuationToken.FromBytes(new byte[] { 1, 2, 3 }),
Microsoft.Extensions.AI.OpenAI (1)
OpenAIResponsesChatClient.cs (1)
141ContinuationToken = CreateContinuationToken(responseResult),
17 references to ContinuationToken
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatOptions.cs (1)
198/// can be polled for completion by obtaining the token from the <see cref="ChatResponse.ContinuationToken"/> property
ChatCompletion\ChatResponse.cs (1)
160ContinuationToken = ContinuationToken,
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatResponseTests.cs (4)
152Assert.NotNull(result.ContinuationToken); 153Assert.Equal(new byte[] { 1, 2, 3 }, result.ContinuationToken.ToBytes().ToArray()); 222Assert.NotNull(result.ContinuationToken); 223Assert.Equal(new byte[] { 1, 2, 3 }, result.ContinuationToken.ToBytes().ToArray());
Microsoft.Extensions.AI.OpenAI.Tests (11)
OpenAIResponseClientIntegrationTests.cs (6)
363Assert.NotNull(response.ContinuationToken); 369while (response.ContinuationToken is not null && ++attempts < 10) 371chatOptions.ContinuationToken = response.ContinuationToken; 396Assert.NotNull(response.ContinuationToken); 402while (response.ContinuationToken is not null && ++attempts < 10) 404chatOptions.ContinuationToken = response.ContinuationToken;
OpenAIResponseClientTests.cs (5)
2994Assert.NotNull(response.ContinuationToken); 2995var responsesContinuationToken = TestOpenAIResponsesContinuationToken.FromToken(response.ContinuationToken); 3088Assert.NotNull(response.ContinuationToken); 3090var responsesContinuationToken = TestOpenAIResponsesContinuationToken.FromToken(response.ContinuationToken); 3103Assert.Null(response.ContinuationToken);