Skip to content

.NET: AIAgent uses ResponseId in ConversationId field and therefor there is no conversation thread data in the Microsoft Foundry #2935

@michelschep

Description

@michelschep

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);
Image

The traces section in Azure:

Image

Metadata

Metadata

Assignees

Labels

.NETagentsIssues related to single agentsv1.0Features being tracked for the version 1.0 GA

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions