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()),
1738
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2038
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2102
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2108
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2281
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2414
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2508
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2613
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2715
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2815
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2901
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
2993
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3094
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3200
return
YieldAsync
(new ChatResponse(message).ToChatResponseUpdates());
3474
return
YieldAsync
(response.ToChatResponseUpdates());
3545
return
YieldAsync
(response.ToChatResponseUpdates());
3550
return
YieldAsync
(response.ToChatResponseUpdates());
3608
return
YieldAsync
(response.ToChatResponseUpdates());
3613
return
YieldAsync
(response.ToChatResponseUpdates());