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);
1586
YieldAsync
(callback(chatContents, chatOptions, cancellationToken).ToChatResponseUpdates()),
1896
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2202
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2266
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2272
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2445
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2578
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2672
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2777
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2879
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2979
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3065
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3157
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3258
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3364
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3670
return
YieldAsync
(response.ToChatResponseUpdates());
3741
return
YieldAsync
(response.ToChatResponseUpdates());
3746
return
YieldAsync
(response.ToChatResponseUpdates());
3804
return
YieldAsync
(response.ToChatResponseUpdates());
3809
return
YieldAsync
(response.ToChatResponseUpdates());