mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
647db9635a
* Renaming Microsoft.Agent.Workflows to Microsoft.Agents.AI.Workflows * Removing local settings. * Removing remining old files from merge.
25 lines
603 B
C#
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;
|
|
}
|