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.
kev/Drawer/AI/Models/SpecialMessages/KnowledgeBaseMessage.cs

33 lines
1.1 KiB
C#

This file contains ambiguous Unicode characters!

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.

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;
}
}