Files
agent-framework/dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/Entities/EntityExtractionResult.cs
T
Ben Thomas 647db9635a .NET: Rename workflows projects (#975)
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows

* Removing local settings.

* Removing remining old files from merge.
2025-09-29 18:30:45 +00:00

25 lines
603 B
C#

// Copyright (c) Microsoft. All rights reserved.
using Microsoft.PowerFx.Types;
namespace Microsoft.Agents.AI.Workflows.Declarative.Entities;
internal sealed record class EntityExtractionResult
{
public EntityExtractionResult(FormulaValue? value)
{
this.Value = value;
this.ErrorMessage = null;
}
public EntityExtractionResult(string errorMessage)
{
this.Value = null;
this.ErrorMessage = errorMessage;
}
public FormulaValue? Value { get; }
public string? ErrorMessage { get; }
public bool IsValid => this.Value is not null;
}