-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
For foundry agents V2, there's a sample code for creating conversations using the OpenAI client obtained from the AIProjectClient in Python.
https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/azure_ai/azure_ai_with_existing_conversation.py
What I’ve tried (in .NET) for V2
I am able to successfully retrieve an existing Azure AI Foundry agent by name using the Azure AI Projects client, as shown in the sample:
https://github.com/microsoft/agent-framework/blob/main/dotnet/samples/GettingStarted/AgentProviders/Agent_With_AzureAIProject/Program.cs
// Use Azure AI Projects client (Foundry v2 approach)
AIProjectClient projectClient = new AIProjectClient(new Uri(endpoint), credential);
// Get the existing Azure AI Foundry agent by name with latest version
_agent = projectClient.GetAIAgent(name: _chatAgentName);
However, I am unable to find an equivalent .NET code sample for V2 implementation that demonstrates:
- Creating a conversation
- Retrieving the conversation ID
- Deleting a conversation
How can this be done in .Net? Please provide sample code
Metadata
Metadata
Assignees
Labels
Type
Projects
Status