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