merge with latest main

This commit is contained in:
SergeyMenshykh
2026-02-13 15:08:47 +00:00
Unverified
115 changed files with 5641 additions and 4360 deletions
@@ -30,14 +30,14 @@ public class OpenAIChatCompletionFixture : IChatClientAgentFixture
public async Task<List<ChatMessage>> GetChatHistoryAsync(AIAgent agent, AgentSession session)
{
var typedSession = (ChatClientAgentSession)session;
var chatHistoryProvider = agent.GetService<ChatHistoryProvider>();
if (typedSession.ChatHistoryProvider is null)
if (chatHistoryProvider is null)
{
return [];
}
return (await typedSession.ChatHistoryProvider.InvokingAsync(new(agent, session, []))).ToList();
return (await chatHistoryProvider.InvokingAsync(new(agent, session, []))).ToList();
}
public Task<ChatClientAgent> CreateChatClientAgentAsync(