You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
using CommunityToolkit.Mvvm.ComponentModel ;
using System.Collections.Generic ;
namespace AI.Models
{
/// <summary>
/// 工作流步骤的 UI 模型
/// </summary>
public partial class WorkflowStepModel : ObservableObject
{
/// <summary>
/// 步骤唯一标识符
/// </summary>
public string Id { get ; set ; } = string . Empty ;
/// <summary>
/// 显示名称
/// </summary>
public string DisplayName { get ; set ; } = string . Empty ;
/// <summary>
/// 执行顺序
/// </summary>
public int Order { get ; set ; }
/// <summary>
/// 步骤状态
/// </summary>
[ObservableProperty]
private WorkflowStepStatus _status = WorkflowStepStatus . Pending ;
/// <summary>
/// 是否可以重新执行
/// </summary>
[ObservableProperty]
private bool _canReset ;
/// <summary>
/// 存储步骤的输入参数(用于回溯)
/// </summary>
public Dictionary < string , object > ? InputParameters { get ; set ; }
/// <summary>
/// 存储步骤的输出结果
/// </summary>
public object? OutputResult { get ; set ; }
/// <summary>
/// 当前思考过程( ReAct 模式的 Thought)
/// </summary>
[ObservableProperty]
private string? _thought ;
}
}