Skip to content

.NET: [Bug]: Inner agent failure does not fail workflow in declarative workflow #7496

Description

@peibekwe

Description

When an agent inside a declarative workflow returned a failed response, the workflow treated it as success. It moved on to the next action and finished with a "completed" status and an empty message, so callers got a blank but apparently successful reply with no indication anything went wrong. This is the source of intermittent "empty
response" reports.

Expected behavior is that an agent failure should fail the workflow and the next node does not execute as if the previous was successful.

Code Sample

Error Messages / Stack Traces

Package Versions

Microsoft.Agents.AI.Worflows.Declarative

.NET Version

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

.NETUsage: [Issues, PRs], Target: .Net

Type

Projects

Status
No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions