6 writes to AuthorName
Microsoft.Extensions.AI.Abstractions (2)
ChatCompletion\ChatResponseExtensions.cs (2)
89AuthorName = update.AuthorName, 285message.AuthorName = update.AuthorName;
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatMessageTests.cs (4)
128AuthorName = authorName 132message.AuthorName = "author"; 135message.AuthorName = authorName; 262AuthorName = "Fred",
20 references to AuthorName
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
393AuthorName = message.AuthorName,
Microsoft.Extensions.AI.Abstractions (1)
ChatCompletion\ChatResponse.cs (1)
155AuthorName = message.AuthorName,
Microsoft.Extensions.AI.Abstractions.Tests (8)
ChatCompletion\ChatMessageTests.cs (7)
19Assert.Null(message.AuthorName); 52Assert.Null(message.AuthorName); 115Assert.Null(message.AuthorName); 130Assert.Null(message.AuthorName); 133Assert.Equal("author", message.AuthorName); 136Assert.Null(message.AuthorName); 271Assert.Equal("Fred", deserializedMessage.AuthorName);
ChatCompletion\ChatResponseUpdateExtensionsTests.cs (1)
57Assert.Equal("Someone", message.AuthorName);
Microsoft.Extensions.AI.Evaluation (4)
ChatMessageExtensions.cs (3)
106/// <see cref="ChatMessage.AuthorName"/> (if available). The returned string also always has a new line character 122string? author = message.AuthorName; 146/// <see cref="ChatMessage.AuthorName"/> (if available) in the returned string. The rendered
ChatResponseExtensions.cs (1)
28/// <see cref="ChatMessage.AuthorName"/> (if available) in the returned string. The rendered
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
ScenarioRunResultTests.cs (2)
296=> x?.AuthorName == y?.AuthorName && x?.Role == y?.Role && x?.Text == y?.Text;
Microsoft.Extensions.AI.OpenAI (4)
OpenAIChatClient.cs (4)
131input.Role == ChatRole.System ? new SystemChatMessage(parts) { ParticipantName = input.AuthorName } : 132input.Role == ChatRoleDeveloper ? new DeveloperChatMessage(parts) { ParticipantName = input.AuthorName } : 133new UserChatMessage(parts) { ParticipantName = input.AuthorName }; 162ParticipantName = input.AuthorName