3 writes to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
615return new FunctionResultContent(result.CallContent.CallId, result.CallContent.Name, functionResult) { Exception = result.Exception };
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\FunctionResultContentTests.cs (2)
61c.Exception = e; 87var 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 81display += Exception is not null ? 82$"Error = {Exception.Message}" :
Microsoft.Extensions.AI.Abstractions.Tests (5)
Contents\FunctionResultContentTests.cs (5)
21Assert.Null(c.Exception); 33Assert.Null(c.Exception); 59Assert.Null(c.Exception); 62Assert.Same(e, c.Exception); 98Assert.Null(deserializedSut.Exception);