3 writes to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
650
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") };
9 references to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
112
/// the <see cref="FunctionResultContent.
Exception
"/> property.
Microsoft.Extensions.AI.Abstractions (3)
Contents\FunctionResultContent.cs (3)
57
/// This property is for informational purposes only. The <see cref="
Exception
"/> is not serialized as part of serializing
74
display +=
Exception
is not null ?
75
$"Error = {
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
);