BotSharp/src/Infrastructure/BotSharp.OpenAPI/ViewModels/Knowledges/Request/VectorKnowledgeCreateRequest.cs

16 lines
398 B
C#
Raw Normal View History

2024-08-23 16:25:44 +00:00
using System.Text.Json.Serialization;
namespace BotSharp.OpenAPI.ViewModels.Knowledges;
public class VectorKnowledgeCreateRequest
{
[JsonPropertyName("text")]
public string Text { get; set; }
2024-09-12 22:48:47 +00:00
[JsonPropertyName("data_source")]
2025-08-08 20:27:38 +00:00
public string DataSource { get; set; } = string.Empty;
2024-09-12 22:48:47 +00:00
2024-08-23 16:25:44 +00:00
[JsonPropertyName("payload")]
public Dictionary<string, object>? Payload { get; set; }
2024-08-23 16:25:44 +00:00
}