@@ -14,171 +14,60 @@ public sealed class AgentDefinition
14
14
/// <summary>
15
15
/// Gets or sets the version of the schema being used.
16
16
/// </summary>
17
- public string ? Version
18
- {
19
- get => this . _version ;
20
- set
21
- {
22
- Verify . NotNull ( value ) ;
23
- this . _version = value ;
24
- }
25
- }
17
+ public string ? Version { get ; set ; }
26
18
27
19
/// <summary>
28
20
/// Gets or sets the id of the deployed agent.
29
21
/// </summary>
30
- public string ? Id
31
- {
32
- get => this . _id ;
33
- set
34
- {
35
- Verify . NotNull ( value ) ;
36
- this . _id = value ;
37
- }
38
- }
22
+ public string ? Id { get ; set ; }
39
23
40
24
/// <summary>
41
25
/// Gets or sets the type of the agent.
42
26
/// </summary>
43
- public string ? Type
44
- {
45
- get => this . _type ;
46
- set
47
- {
48
- Verify . NotNull ( value ) ;
49
- this . _type = value ;
50
- }
51
- }
27
+ public string ? Type { get ; set ; }
52
28
53
29
/// <summary>
54
30
/// Gets or sets the name of the agent.
55
31
/// </summary>
56
- public string ? Name
57
- {
58
- get => this . _name ;
59
- set
60
- {
61
- Verify . NotNull ( value ) ;
62
- this . _name = value ;
63
- }
64
- }
32
+ public string ? Name { get ; set ; }
65
33
66
34
/// <summary>
67
35
/// Gets or sets the description of the agent.
68
36
/// </summary>
69
- public string ? Description
70
- {
71
- get => this . _description ;
72
- set
73
- {
74
- Verify . NotNull ( value ) ;
75
- this . _description = value ;
76
- }
77
- }
37
+ public string ? Description { get ; set ; }
78
38
79
39
/// <summary>
80
40
/// Gets or sets the instructions for the agent to use.
81
41
/// </summary>
82
- public string ? Instructions
83
- {
84
- get => this . _instructions ;
85
- set
86
- {
87
- Verify . NotNull ( value ) ;
88
- this . _instructions = value ;
89
- }
90
- }
42
+ public string ? Instructions { get ; set ; }
91
43
92
44
/// <summary>
93
45
/// Gets or sets the metadata associated with the agent.
94
46
/// </summary>
95
- public IDictionary < string , object ? > ? Metadata
96
- {
97
- get => this . _metadata ;
98
- set
99
- {
100
- Verify . NotNull ( value ) ;
101
- this . _metadata = value ;
102
- }
103
- }
47
+ public IDictionary < string , object ? > ? Metadata { get ; set ; }
104
48
105
49
/// <summary>
106
50
/// Gets or sets the model used by the agent.
107
51
/// </summary>
108
- public ModelDefinition ? Model
109
- {
110
- get => this . _model ;
111
- set
112
- {
113
- Verify . NotNull ( value ) ;
114
- this . _model = value ;
115
- }
116
- }
52
+ public ModelDefinition ? Model { get ; set ; }
117
53
118
54
/// <summary>
119
55
/// Gets or sets the collection of input variables used by the agent.
120
56
/// </summary>
121
- public IList < InputVariable > Inputs
122
- {
123
- get => this . _inputs ??= [ ] ;
124
- set
125
- {
126
- Verify . NotNull ( value ) ;
127
- this . _inputs = value ;
128
- }
129
- }
57
+ public IList < InputVariable > ? Inputs { get ; set ; }
130
58
131
59
/// <summary>
132
60
/// Gets or sets the collection of output variables supported by the agent.
133
61
/// </summary>
134
- public IList < OutputVariable > Outputs
135
- {
136
- get => this . _outputs ??= [ ] ;
137
- set
138
- {
139
- Verify . NotNull ( value ) ;
140
- this . _outputs = value ;
141
- }
142
- }
62
+ public IList < OutputVariable > ? Outputs { get ; set ; }
143
63
144
64
/// <summary>
145
65
/// Gets or sets the template options used by the agent.
146
66
/// </summary>
147
- public TemplateOptions ? Template
148
- {
149
- get => this . _template ;
150
- set
151
- {
152
- Verify . NotNull ( value ) ;
153
- this . _template = value ;
154
- }
155
- }
67
+ public TemplateOptions ? Template { get ; set ; }
156
68
157
69
/// <summary>
158
70
/// Gets or sets the collection of tools used by the agent.
159
71
/// </summary>
160
- public IList < AgentToolDefinition > Tools
161
- {
162
- get => this . _tools ??= [ ] ;
163
- set
164
- {
165
- Verify . NotNull ( value ) ;
166
- this . _tools = value ;
167
- }
168
- }
169
-
170
- #region
171
- private string ? _version ;
172
- private string ? _type ;
173
- private string ? _id ;
174
- private string ? _name ;
175
- private string ? _description ;
176
- private string ? _instructions ;
177
- private IDictionary < string , object ? > ? _metadata ;
178
- private ModelDefinition ? _model ;
179
- private IList < InputVariable > ? _inputs ;
180
- private IList < OutputVariable > ? _outputs ;
181
- private TemplateOptions ? _template ;
182
- private IList < AgentToolDefinition > ? _tools ;
183
- #endregion
72
+ public IList < AgentToolDefinition > ? Tools { get ; set ; }
184
73
}
0 commit comments