Skip to content

Error with AI Agent project template #7185

@WeihanLi

Description

@WeihanLi

Description

Error with AI Agent project template

warn: Microsoft.Agents.AI.Hosting.OpenAI.Responses.HostedAgentResponseExecutor[0]
      Failed to resolve agent with name 'publisher'

Reproduction Steps

  1. install the project template
dotnet new install Microsoft.Agents.AI.ProjectTemplates::1.0.0-preview.1.25619.3
  1. create a sample app from project template
dotnet new aiagent-webapi -n NewsAgent
  1. configure the GITHUB_TOKEN environment and run project
  2. switch to the workflow from the dropdown as highlighted, and configure input and run
Image Image

Expected behavior

Works without error

Actual behavior

Nothing happened and warning log from server

warn: Microsoft.Agents.AI.Hosting.OpenAI.Responses.HostedAgentResponseExecutor[0]
      Failed to resolve agent with name 'publisher'

Regression?

No response

Known Workarounds

No response

Configuration

.NET 10

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-ai-templatesMicrosoft.Extensions.AI.TemplatesbugThis issue describes a behavior which is not expected - a bug.untriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions