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.
|
|
|
|
|
namespace AI.Models.SpecialMessages
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 知识库查询结果消息,用于存入会话 Store 并在 Prompt 视图中带给 LLM。
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class KnowledgeBaseMessage : ISpecialMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public string TypeName => "KnowledgeBase";
|
|
|
|
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
|
public bool IsLive => false;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>知识条目 ID(如 gridding-flow)</summary>
|
|
|
|
|
|
public string KnowledgeId { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>版本号</summary>
|
|
|
|
|
|
public string Version { get; set; } = "1";
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>命中的主题 key(如 成图)</summary>
|
|
|
|
|
|
public string TopicKey { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>用户原始查询</summary>
|
|
|
|
|
|
public string Query { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>知识库返回的完整内容,供 LLM 与 UI 使用</summary>
|
|
|
|
|
|
public string RawContent { get; set; } = string.Empty;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|