Repository navigation
Expand file tree
/
Copy pathPgtConfig.cs
More file actions
72 lines (52 loc) · 2.12 KB
/
Copy pathPgtConfig.cs
File metadata and controls
72 lines (52 loc) · 2.12 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
using System.Text.Json.Serialization;
namespace BotSharp.Plugin.Membase.Models;
/// <summary>
/// Full configuration block returned by the pgt-definitions endpoint.
/// </summary>
public class PgtConfig
{
[JsonPropertyName("startId")]
public string? StartId { get; set; }
[JsonPropertyName("maxDepth")]
public int MaxDepth { get; set; }
[JsonPropertyName("renderDepth")]
public int RenderDepth { get; set; }
[JsonPropertyName("appendTopology")]
public bool AppendTopology { get; set; }
[JsonPropertyName("fuzzyThreshold")]
public double FuzzyThreshold { get; set; }
[JsonPropertyName("maxNodes")]
public int MaxNodes { get; set; }
[JsonPropertyName("strategy")]
public string? Strategy { get; set; }
[JsonPropertyName("maxVisitsPerNode")]
public int MaxVisitsPerNode { get; set; }
[JsonPropertyName("timeoutMs")]
public int TimeoutMs { get; set; }
[JsonPropertyName("maxSubgraphNesting")]
public int MaxSubgraphNesting { get; set; }
[JsonPropertyName("recordTrace")]
public bool RecordTrace { get; set; }
[JsonPropertyName("persistRun")]
public bool PersistRun { get; set; }
[JsonPropertyName("validationChecks")]
public List<string>? ValidationChecks { get; set; }
[JsonPropertyName("targetIdsRaw")]
public string? TargetIdsRaw { get; set; }
[JsonPropertyName("allowedEdgeTypesRaw")]
public string? AllowedEdgeTypesRaw { get; set; }
/// <summary>JSON string containing the environment key-value pairs.</summary>
[JsonPropertyName("environmentJson")]
public string? EnvironmentJson { get; set; }
/// <summary>JSON string containing the initial context key-value pairs.</summary>
[JsonPropertyName("initialContextJson")]
public string? InitialContextJson { get; set; }
/// <summary>
/// JSON array string of actor descriptors. Each element has an <c>actor_id</c>
/// field used as the dictionary key when building a traverse request.
/// </summary>
[JsonPropertyName("actorsJson")]
public string? ActorsJson { get; set; }
[JsonPropertyName("dag")]
public bool Dag { get; set; }
}