4 writes to Exception
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1311return new FunctionResultContent(result.CallContent.CallId, functionResult) { Exception = result.Exception };
Realtime\FunctionInvokingRealtimeClientSession.cs (1)
384Exception = result.Exception
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\FunctionResultContentTests.cs (2)
57c.Exception = e; 82var sut = new FunctionResultContent("callId1", null) { Exception = new InvalidOperationException("hello") };
12 references to Exception
Microsoft.Extensions.AI (3)
ChatCompletion\FunctionInvokingChatClient.cs (3)
133/// the <see cref="FunctionResultContent.Exception"/> property. 1226if (added.Any(static m => m.Contents.Any(static c => c is FunctionResultContent { Exception: not null }))) 1235.Select(frc => frc.Exception!)
Microsoft.Extensions.AI.Abstractions (4)
Contents\FunctionResultContent.cs (4)
47/// This property is for informational purposes only. The <see cref="Exception"/> is not serialized as part of serializing 67display += Exception is not null ? 68$"{Exception.GetType().Name}(\"{Exception.Message}\")" :
Microsoft.Extensions.AI.Abstractions.Tests (5)
Contents\FunctionResultContentTests.cs (5)
20Assert.Null(c.Exception); 31Assert.Null(c.Exception); 55Assert.Null(c.Exception); 58Assert.Same(e, c.Exception); 92Assert.Null(deserializedSut.Exception);