18 references to ContinueMode
Microsoft.Extensions.AI (18)
ChatCompletion\FunctionInvokingChatClient.cs (18)
246case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode:
252case ContinueMode.AllowOneMoreRoundtrip:
258case ContinueMode.Terminate:
327case ContinueMode.Continue when options.ToolMode is RequiredChatToolMode:
333case ContinueMode.AllowOneMoreRoundtrip:
339case ContinueMode.Terminate:
397/// <returns>A <see cref="ContinueMode"/> value indicating how the caller should proceed.</returns>
398private async Task<(ContinueMode Mode, IList<ChatMessage> MessagesAdded)> ProcessFunctionCallsAsync(
435ContinueMode continueMode = ContinueMode.Continue;
457/// <returns>A <see cref="ContinueMode"/> value indicating how the caller should proceed.</returns>
466return new(ContinueMode.Continue, FunctionStatus.NotFound, functionCallContent, result: null, exception: null);
480context.Terminate ? ContinueMode.Terminate : ContinueMode.Continue,
489RetryOnError ? 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.
632internal FunctionInvocationResult(ContinueMode continueMode, FunctionStatus status, FunctionCallContent callContent, object? result, Exception? exception)
654internal ContinueMode ContinueMode { get; }