5 writes to AuthorName
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\StreamingChatCompletionUpdateExtensions.cs (1)
108message.AuthorName ??= update.AuthorName;
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatMessageTests.cs (4)
111AuthorName = authorName 115message.AuthorName = "author"; 118message.AuthorName = authorName; 296AuthorName = "Fred",
14 references to AuthorName
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatCompletion.cs (1)
139AuthorName = choice.AuthorName,
Microsoft.Extensions.AI.Abstractions.Tests (10)
ChatCompletion\ChatMessageTests.cs (7)
18Assert.Null(message.AuthorName); 51Assert.Null(message.AuthorName); 98Assert.Null(message.AuthorName); 113Assert.Null(message.AuthorName); 116Assert.Equal("author", message.AuthorName); 119Assert.Null(message.AuthorName); 303Assert.Equal("Fred", deserializedMessage.AuthorName);
ChatCompletion\StreamingChatCompletionUpdateExtensionsTests.cs (3)
73Assert.Equal("Someone", message.AuthorName); 81Assert.Equal("Else", message.AuthorName); 90Assert.Null(message.AuthorName);
Microsoft.Extensions.AI.OpenAI (3)
OpenAIChatClient.cs (3)
588new SystemChatMessage(parts) { ParticipantName = input.AuthorName } : 589new UserChatMessage(parts) { ParticipantName = input.AuthorName }; 618ParticipantName = input.AuthorName