18 references to ContinueMode
Microsoft.Extensions.AI (18)
ChatCompletion\FunctionInvokingChatClient.cs (18)
273case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode:
279case ContinueMode.AllowOneMoreRoundtrip:
285case ContinueMode.Terminate:
384case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode:
390case ContinueMode.AllowOneMoreRoundtrip:
396case ContinueMode.Terminate:
464/// <returns>A <see cref="ContinueMode"/> value indicating how the caller should proceed.</returns>
465private async Task<(ContinueMode Mode, IList<ChatMessage> MessagesAdded)> ProcessFunctionCallsAsync(
502ContinueMode continueMode = ContinueMode.Continue;
524/// <returns>A <see cref="ContinueMode"/> value indicating how the caller should proceed.</returns>
533return new(ContinueMode.Continue, FunctionStatus.NotFound, functionCallContent, result: null, exception: null);
547context.Terminate ? ContinueMode.Terminate : ContinueMode.Continue,
556RetryOnError ? ContinueMode.Continue : ContinueMode.AllowOneMoreRoundtrip, // We won't allow further function calls, hence the LLM will just get one more chance to give a final answer.
781internal FunctionInvocationResult(ContinueMode continueMode, FunctionStatus status, FunctionCallContent callContent, object? result, Exception? exception)
803internal ContinueMode ContinueMode { get; }