3 writes to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
615
return new FunctionResultContent(result.CallContent.CallId, result.CallContent.Name, functionResult) {
Exception
= result.Exception };
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\FunctionResultContentTests.cs (2)
61
c.
Exception
= e;
87
var sut = new FunctionResultContent("callId1", "functionName", null) {
Exception
= new InvalidOperationException("hello") };
9 references to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
97
/// the <see cref="FunctionResultContent.
Exception
"/> property.
Microsoft.Extensions.AI.Abstractions (3)
Contents\FunctionResultContent.cs (3)
64
/// This property is for informational purposes only. The <see cref="
Exception
"/> is not serialized as part of serializing
81
display +=
Exception
is not null ?
82
$"Error = {
Exception
.Message}" :
Microsoft.Extensions.AI.Abstractions.Tests (5)
Contents\FunctionResultContentTests.cs (5)
21
Assert.Null(c.
Exception
);
33
Assert.Null(c.
Exception
);
59
Assert.Null(c.
Exception
);
62
Assert.Same(e, c.
Exception
);
98
Assert.Null(deserializedSut.
Exception
);