-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathtryAGI.OpenAI.Models.ApplyPatchCreateFileOperation.g.cs
More file actions
73 lines (66 loc) · 2.96 KB
/
tryAGI.OpenAI.Models.ApplyPatchCreateFileOperation.g.cs
File metadata and controls
73 lines (66 loc) · 2.96 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
#nullable enable
namespace tryAGI.OpenAI
{
/// <summary>
/// Instruction describing how to create a file via the apply_patch tool.
/// </summary>
public sealed partial class ApplyPatchCreateFileOperation
{
/// <summary>
/// Create a new file with the provided diff.<br/>
/// Default Value: create_file
/// </summary>
/// <default>global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType.CreateFile</default>
[global::System.Text.Json.Serialization.JsonPropertyName("type")]
[global::System.Text.Json.Serialization.JsonConverter(typeof(global::tryAGI.OpenAI.JsonConverters.ApplyPatchCreateFileOperationTypeJsonConverter))]
public global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType Type { get; set; } = global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType.CreateFile;
/// <summary>
/// Path of the file to create.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("path")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Path { get; set; }
/// <summary>
/// Diff to apply.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("diff")]
[global::System.Text.Json.Serialization.JsonRequired]
public required string Diff { get; set; }
/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
[global::System.Text.Json.Serialization.JsonExtensionData]
public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchCreateFileOperation" /> class.
/// </summary>
/// <param name="path">
/// Path of the file to create.
/// </param>
/// <param name="diff">
/// Diff to apply.
/// </param>
/// <param name="type">
/// Create a new file with the provided diff.<br/>
/// Default Value: create_file
/// </param>
#if NET7_0_OR_GREATER
[global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
#endif
public ApplyPatchCreateFileOperation(
string path,
string diff,
global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType type = global::tryAGI.OpenAI.ApplyPatchCreateFileOperationType.CreateFile)
{
this.Type = type;
this.Path = path ?? throw new global::System.ArgumentNullException(nameof(path));
this.Diff = diff ?? throw new global::System.ArgumentNullException(nameof(diff));
}
/// <summary>
/// Initializes a new instance of the <see cref="ApplyPatchCreateFileOperation" /> class.
/// </summary>
public ApplyPatchCreateFileOperation()
{
}
}
}