1 write to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1882Exception = exception;
8 references to Exception
Microsoft.Extensions.AI (8)
ChatCompletion\FunctionInvokingChatClient.cs (3)
1303if (IncludeDetailedErrors && result.Exception is not null) 1305message = $"{message} Exception: {result.Exception.Message}"; 1311return new FunctionResultContent(result.CallContent.CallId, functionResult) { Exception = result.Exception };
Realtime\FunctionInvokingRealtimeClientSession.cs (5)
350var firstException = results.Find(static r => r.Exception is not null)?.Exception; 375FunctionInvocationStatus.Exception => IncludeDetailedErrors && result.Exception is not null 376? $"Error: {result.Exception.Message}" 384Exception = result.Exception