3 writes to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
682
return new FunctionResultContent(result.CallContent.CallId, functionResult) {
Exception
= result.Exception };
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\FunctionResultContentTests.cs (2)
57
c.
Exception
= e;
82
var sut = new FunctionResultContent("callId1", null) {
Exception
= new InvalidOperationException("hello") };
10 references to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
117
/// the <see cref="FunctionResultContent.
Exception
"/> property.
Microsoft.Extensions.AI.Abstractions (4)
Contents\FunctionResultContent.cs (4)
57
/// This property is for informational purposes only. The <see cref="
Exception
"/> is not serialized as part of serializing
77
display +=
Exception
is not null ?
78
$"{
Exception
.GetType().Name}(\"{
Exception
.Message}\")" :
Microsoft.Extensions.AI.Abstractions.Tests (5)
Contents\FunctionResultContentTests.cs (5)
20
Assert.Null(c.
Exception
);
31
Assert.Null(c.
Exception
);
55
Assert.Null(c.
Exception
);
58
Assert.Same(e, c.
Exception
);
92
Assert.Null(deserializedSut.
Exception
);