16 references to ContinueMode
Microsoft.Extensions.AI (16)
ChatCompletion\FunctionInvokingChatClient.cs (16)
449private static bool UpdateOptionsForMode(ContinueMode mode, ref ChatOptions options, string? chatThreadId)
453case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode:
462case ContinueMode.AllowOneMoreRoundtrip:
471case ContinueMode.Terminate:
498/// <returns>A <see cref="ContinueMode"/> value indicating how the caller should proceed.</returns>
499private async Task<(ContinueMode Mode, IList<ChatMessage> MessagesAdded)> ProcessFunctionCallsAsync(
544ContinueMode continueMode = ContinueMode.Continue;
580/// <returns>A <see cref="ContinueMode"/> value indicating how the caller should proceed.</returns>
591return new(ContinueMode.Continue, FunctionInvocationStatus.NotFound, callContent, result: null, exception: null);
613RetryOnError ? 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.
621context.Terminate ? ContinueMode.Terminate : ContinueMode.Continue,
786internal FunctionInvocationResult(ContinueMode continueMode, FunctionInvocationStatus status, FunctionCallContent callContent, object? result, Exception? exception)
808internal ContinueMode ContinueMode { get; }