-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSQLAgentOptions.cs
More file actions
81 lines (65 loc) · 1.81 KB
/
SQLAgentOptions.cs
File metadata and controls
81 lines (65 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
using SQLAgent.Entities;
using SQLAgent.Infrastructure;
namespace SQLAgent.Facade;
public class SQLAgentOptions
{
/// <summary>
/// AI 模型
/// </summary>
public string Model { get; set; }
/// <summary>
/// AI 提供商
/// </summary>
public AIProviderType AIProvider { get; set; }
/// <summary>
/// 终结点
/// </summary>
public string Endpoint { get; set; }
/// <summary>
/// API 密钥
/// </summary>
public string APIKey { get; set; }
/// <summary>
/// 向量模型
/// </summary>
/// <returns></returns>
public string EmbeddingModel { get; set; }
/// <summary>
/// 使用向量数据库索引
/// </summary>
/// <returns></returns>
public bool UseVectorDatabaseIndex { get; set; } = false;
/// <summary>
/// 向量数据库表名
/// </summary>
public string DatabaseIndexTable { get; set; }
/// <summary>
/// 数据库连接字符串
/// </summary>
public string DatabaseIndexConnectionString { get; set; }
public DatabaseIndexType DatabaseIndexType { get; set; } = DatabaseIndexType.Sqlite;
/// <summary>
/// 数据库连接字符串
/// </summary>
public string ConnectionString { get; set; }
/// <summary>
/// 数据库连接 Id
/// </summary>
public string ConnectionId { get; set; }
/// <summary>
/// SQL 类型
/// </summary>
public SqlType SqlType { get; set; }
/// <summary>
/// AI 最大输出令牌数
/// </summary>
public int MaxOutputTokens { get; set; } = 3200;
/// <summary>
/// 是否允许写操作
/// </summary>
public bool AllowWrite { get; set; } = true;
/// <summary>
/// SQL 机器人系统提示语
/// </summary>
public string SqlBotSystemPrompt { get; set; }
}