3 writes to Exception
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
650return new FunctionResultContent(result.CallContent.CallId, functionResult) { Exception = 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") };
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 74display += Exception is not null ? 75$"Error = {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);