Handle settings logs agent failures
PR and Push Build/Test / build-and-test (push) Successful in 9m8s

This commit is contained in:
2026-06-09 17:10:06 +02:00
parent 8af89a622d
commit ecdd23bde7
8 changed files with 147 additions and 15 deletions
@@ -58,7 +58,8 @@ public sealed class WorkflowRulesEditorChatPipeline : IWorkflowRulesEditorChatPi
public async Task<WorkflowRulesEditorChatResult> SendAsync(
IReadOnlyList<WorkflowRulesEditorChatMessage> conversation,
string userMessage,
CancellationToken cancellationToken)
CancellationToken cancellationToken,
Action<string>? statusChanged = null)
{
if (string.IsNullOrWhiteSpace(userMessage))
{
@@ -106,7 +107,8 @@ public sealed class WorkflowRulesEditorChatPipeline : IWorkflowRulesEditorChatPi
agentOptions.ReconnectionDelay,
compactionOptions,
logger,
firstRequestIsUser: true);
firstRequestIsUser: true,
retrying: () => statusChanged?.Invoke("Reconnecting..."));
var functionClient = chatClient
.AsBuilder()
.UseFunctionInvocation(loggerFactory)