Follow up issue (#2878):
I can run a new Foundry agent as a MAF AIAgent (thx to help from @markwallace-microsoft).
The only thing that does not work yet is the conversation data in Azure.
The IDE shows as ConversationId "resp_09b2..."
The New foundry in Azure shows this id as the responseId. The conversationId in Azure is empty.
With another trace in Azure I see that the conversationId starts with "conv_"
const string projectEndpoint = "https://xyz.services.ai.azure.com/api/projects/xyz-ai-foundry-project";
AIProjectClient projectClient = new(endpoint: new Uri(projectEndpoint), tokenProvider: new AzureCliCredential());
AIAgent agent = projectClient.GetAIAgent(name:"TheNewFoundryAgent");
AgentThread thread = agent.GetNewThread();
var result = await agent.RunAsync("Are you a real NFA (New Foundry Agent)?", thread);
Console.WriteLine(result);
The traces section in Azure:
