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.
21 lines
562 B
C#
21 lines
562 B
C#
|
1 month ago
|
using AI.Models.Form;
|
||
|
|
|
||
|
|
namespace AI.Interface
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 表单注册表:根据 formId 获取表单定义。
|
||
|
|
/// </summary>
|
||
|
|
public interface IFormRegistry
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// 根据表单 ID 获取表单定义,未注册则返回 null。
|
||
|
|
/// </summary>
|
||
|
|
FormDefinition? GetForm(string formId);
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 获取所有已注册的表单定义(用于生成 Schema YAML、供 LLM 上下文等)。
|
||
|
|
/// </summary>
|
||
|
|
IEnumerable<FormDefinition> GetAll();
|
||
|
|
}
|
||
|
|
}
|