28 references to YieldAsync
Microsoft.Extensions.AI.Tests (28)
ChatCompletion\FunctionInvokingChatClientTests.cs (28)
392
return
YieldAsync
(new ChatResponse(
397
return
YieldAsync
(new ChatResponse(new ChatMessage(ChatRole.Assistant, "done")).ToChatResponseUpdates());
473
return
YieldAsync
(new ChatResponse(
478
return
YieldAsync
(new ChatResponse(new ChatMessage(ChatRole.Assistant, "done")).ToChatResponseUpdates());
554
return
YieldAsync
(new ChatResponse(
559
return
YieldAsync
(new ChatResponse(new ChatMessage(ChatRole.Assistant, "done")).ToChatResponseUpdates());
713
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
1206
return
YieldAsync
(updates);
1433
YieldAsync
(callback(chatContents, chatOptions, cancellationToken).ToChatResponseUpdates()),
1743
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2049
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2113
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2119
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2292
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2425
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2519
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2624
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2726
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2826
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2912
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3004
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3105
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3211
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3485
return
YieldAsync
(response.ToChatResponseUpdates());
3556
return
YieldAsync
(response.ToChatResponseUpdates());
3561
return
YieldAsync
(response.ToChatResponseUpdates());
3619
return
YieldAsync
(response.ToChatResponseUpdates());
3624
return
YieldAsync
(response.ToChatResponseUpdates());