Skip to content

.NET: Error running an Azure Function following samples and using NuGet packages for Microsoft.Agents.AI.Hosting.AzureFunctions and Microsoft.Agents.AI.OpenAi #2327

@FMERI001

Description

@FMERI001

I'm working with the dotnet samples for Azure Functions. I created a new solution with a new function setting it up just like one of the samples referencing the NuGet packages for Microsoft.Agents.AI.OpenAi and Microsoft.Agents.AI.Hosting.AzureFunctions and I'm getting an error consistently.

I took my new function, added it to the agent-framework-dotnet sample solution and changed the package references for Microsoft.Agents.AI.OpenAi and Microsoft.Agents.AI.Hosting.AzureFunctions to use the projects in that solution and my function started to work.

I tried the reverse as well and took one of the sample function apps, put it in my solution and had it get those two packages from NuGet and the sample started to fail with the same error as my function app.

Is there an issue with the NuGet packages? Has anyone else had an issue? Here is the error I see running referencing the NuGet packages.

Microsoft.DurableTask.Entities.EntityOperationFailedException: 'Operation 'RunAgentAsync' of entity '@dafx-@e86fd2952ea25d8787b81c9e14acffbd' failed: Invocation of function 'dafx-' failed with an exception.'

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions