You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Represents category-level flags and scores returned by the moderation endpoint.
5
5
/// </summary>
6
+
/// <remarks>
7
+
/// Boolean properties mirror the provider's category flags; score properties are confidence values between 0 and 1 where higher numbers indicate greater risk.
8
+
/// </remarks>
6
9
publicrecordModerationResult
7
10
{
8
11
/// <summary>
9
-
/// Gets or sets a value indicating whether any category flagged the content.
12
+
/// Gets or sets a value indicating whether the provider flagged the content for any category.
10
13
/// </summary>
11
14
publicboolIsFlagged{get;set;}
12
15
13
16
/// <summary>
14
-
/// Gets or sets whether the content is sexual.
17
+
/// Gets or sets whether the provider flagged the content as sexual.
15
18
/// </summary>
16
19
publicboolIsSexual{get;set;}
17
20
18
21
/// <summary>
19
-
/// Gets or sets the score for sexual content.
22
+
/// Gets or sets the confidence score (0-1) for sexual content.
20
23
/// </summary>
21
24
publicdoubleSexualScore{get;set;}
22
25
23
26
/// <summary>
24
-
/// Gets or sets whether the content is sexual and involves minors.
27
+
/// Gets or sets whether the provider flagged the content as sexual content involving minors.
25
28
/// </summary>
26
29
publicboolIsSexualMinors{get;set;}
27
30
28
31
/// <summary>
29
-
/// Gets or sets the score for sexual content involving minors.
32
+
/// Gets or sets the confidence score (0-1) for sexual content involving minors.
30
33
/// </summary>
31
34
publicdoubleSexualMinorsScore{get;set;}
32
35
33
36
/// <summary>
34
-
/// Gets or sets whether the content is harassment.
37
+
/// Gets or sets whether the provider flagged the content as harassment.
35
38
/// </summary>
36
39
publicboolIsHarassment{get;set;}
37
40
38
41
/// <summary>
39
-
/// Gets or sets the score for harassment.
42
+
/// Gets or sets the confidence score (0-1) for harassment.
40
43
/// </summary>
41
44
publicdoubleHarassmentScore{get;set;}
42
45
43
46
/// <summary>
44
-
/// Gets or sets whether the content is threatening harassment.
47
+
/// Gets or sets whether the provider flagged the content as threatening harassment.
45
48
/// </summary>
46
49
publicboolIsHarassmentThreatening{get;set;}
47
50
48
51
/// <summary>
49
-
/// Gets or sets the score for threatening harassment.
52
+
/// Gets or sets the confidence score (0-1) for threatening harassment.
50
53
/// </summary>
51
54
publicdoubleHarassmentThreateningScore{get;set;}
52
55
53
56
/// <summary>
54
-
/// Gets or sets whether the content expresses hate.
57
+
/// Gets or sets whether the provider flagged the content for hate.
55
58
/// </summary>
56
59
publicboolIsHate{get;set;}
57
60
58
61
/// <summary>
59
-
/// Gets or sets the score for hate content.
62
+
/// Gets or sets the confidence score (0-1) for hate content.
60
63
/// </summary>
61
64
publicdoubleHateScore{get;set;}
62
65
63
66
/// <summary>
64
-
/// Gets or sets whether the content is threatening hate.
67
+
/// Gets or sets whether the provider flagged the content for threatening hate.
65
68
/// </summary>
66
69
publicboolIsHateThreatening{get;set;}
67
70
68
71
/// <summary>
69
-
/// Gets or sets the score for threatening hate content.
72
+
/// Gets or sets the confidence score (0-1) for threatening hate content.
70
73
/// </summary>
71
74
publicdoubleHateThreateningScore{get;set;}
72
75
73
76
/// <summary>
74
-
/// Gets or sets whether the content is illicit.
77
+
/// Gets or sets whether the provider flagged the content as illicit.
75
78
/// </summary>
76
79
publicboolIsIllicit{get;set;}
77
80
78
81
/// <summary>
79
-
/// Gets or sets the score for illicit content.
82
+
/// Gets or sets the confidence score (0-1) for illicit content.
80
83
/// </summary>
81
84
publicdoubleIllicitScore{get;set;}
82
85
83
86
/// <summary>
84
-
/// Gets or sets whether the content is illicit and violent.
87
+
/// Gets or sets whether the provider flagged the content as illicit and violent.
85
88
/// </summary>
86
89
publicboolIsIllicitViolent{get;set;}
87
90
88
91
/// <summary>
89
-
/// Gets or sets the score for illicit violent content.
92
+
/// Gets or sets the confidence score (0-1) for illicit violent content.
90
93
/// </summary>
91
94
publicdoubleIllicitViolentScore{get;set;}
92
95
93
96
/// <summary>
94
-
/// Gets or sets whether the content contains self-harm.
97
+
/// Gets or sets whether the provider flagged the content for self-harm.
95
98
/// </summary>
96
99
publicboolIsSelfHarm{get;set;}
97
100
98
101
/// <summary>
99
-
/// Gets or sets the score for self-harm content.
102
+
/// Gets or sets the confidence score (0-1) for self-harm content.
100
103
/// </summary>
101
104
publicdoubleSelfHarmScore{get;set;}
102
105
103
106
/// <summary>
104
-
/// Gets or sets whether the content indicates self-harm intent.
107
+
/// Gets or sets whether the provider flagged the content for self-harm intent.
105
108
/// </summary>
106
109
publicboolIsSelfHarmIntent{get;set;}
107
110
108
111
/// <summary>
109
-
/// Gets or sets the score for self-harm intent.
112
+
/// Gets or sets the confidence score (0-1) for self-harm intent.
110
113
/// </summary>
111
114
publicdoubleSelfHarmIntentScore{get;set;}
112
115
113
116
/// <summary>
114
-
/// Gets or sets whether the content contains self-harm instructions.
117
+
/// Gets or sets whether the provider flagged the content for self-harm instructions.
115
118
/// </summary>
116
119
publicboolIsSelfHarmInstruction{get;set;}
117
120
118
121
/// <summary>
119
-
/// Gets or sets the score for self-harm instructions.
122
+
/// Gets or sets the confidence score (0-1) for self-harm instructions.
120
123
/// </summary>
121
124
publicdoubleSelfHarmInstructionScore{get;set;}
122
125
123
126
/// <summary>
124
-
/// Gets or sets whether the content contains violence.
127
+
/// Gets or sets whether the provider flagged the content for violence.
125
128
/// </summary>
126
129
publicboolIsViolence{get;set;}
127
130
128
131
/// <summary>
129
-
/// Gets or sets the score for violence.
132
+
/// Gets or sets the confidence score (0-1) for violence.
130
133
/// </summary>
131
134
publicdoubleViolenceScore{get;set;}
132
135
133
136
/// <summary>
134
-
/// Gets or sets whether the content contains graphic violence.
137
+
/// Gets or sets whether the provider flagged the content for graphic violence.
135
138
/// </summary>
136
139
publicboolIsViolenceGraphic{get;set;}
137
140
138
141
/// <summary>
139
-
/// Gets or sets the score for graphic violence.
142
+
/// Gets or sets the confidence score (0-1) for graphic violence.
/// Gets or sets an optional API key that overrides the client-level key.
36
+
/// Gets or sets an optional API key that overrides the client-level key for chat completions.
37
37
/// </summary>
38
38
publicstring?ApiKey{get;set;}
39
39
40
40
/// <summary>
41
-
/// Gets or sets an optional stable end-user identifier passed to the provider for safety, abuse, or rate limiting.
41
+
/// Gets or sets an optional stable end-user identifier passed to the provider when the chat instance does not supply one.
42
42
/// </summary>
43
43
publicstring?UserTrackingId{get;set;}
44
44
45
45
/// <summary>
46
-
/// Gets or sets the maximum number of retry attempts for a failed request.
46
+
/// Gets or sets the maximum number of attempts (including the first call) before a request is treated as failed.
47
47
/// </summary>
48
48
publicintMaxAttempts{get;set;}=5;
49
49
50
50
/// <summary>
51
-
/// Gets or sets the maximum number of tokens the model may generate.
51
+
/// Gets or sets the maximum number of tokens the assistant may generate; null uses the provider default.
52
52
/// </summary>
53
53
publicint?MaxOutputTokens{get;set;}
54
54
55
55
/// <summary>
56
-
/// Gets or sets the maximum number of non-system messages to include.
56
+
/// Gets or sets the maximum number of non-system messages to include; the oldest unpinned messages are trimmed first when exceeded.
57
57
/// </summary>
58
58
publicint?MessageLimit{get;set;}
59
59
60
60
/// <summary>
61
-
/// Gets or sets the maximum total character count across user and assistant messages.
61
+
/// Gets or sets the maximum total character count across non-system message content and function results; excess content is trimmed by dropping earlier unpinned messages.
62
62
/// </summary>
63
63
publicint?CharacterLimit{get;set;}
64
64
65
65
/// <summary>
66
-
/// Gets or sets an optional seed for deterministic responses.
66
+
/// Gets or sets an optional seed for deterministic responses when the selected model supports seeding.
67
67
/// </summary>
68
68
publicint?Seed{get;set;}
69
69
70
70
/// <summary>
71
-
/// Gets or sets the sampling temperature.
71
+
/// Gets or sets the sampling temperature; lower values make responses more deterministic.
72
72
/// </summary>
73
73
publicdouble?Temperature{get;set;}
74
74
75
75
/// <summary>
76
-
/// Gets or sets nucleus sampling probability mass.
76
+
/// Gets or sets nucleus sampling probability mass (use with or instead of temperature).
77
77
/// </summary>
78
78
publicdouble?TopP{get;set;}
79
79
80
80
/// <summary>
81
-
/// Gets or sets the frequency penalty applied to repeated tokens.
81
+
/// Gets or sets the frequency penalty applied to repeated tokens to reduce repetition.
82
82
/// </summary>
83
83
publicdouble?FrequencyPenalty{get;set;}
84
84
85
85
/// <summary>
86
-
/// Gets or sets the presence penalty applied to repeated tokens.
86
+
/// Gets or sets the presence penalty applied to repeated tokens to encourage new topics.
87
87
/// </summary>
88
88
publicdouble?PresencePenalty{get;set;}
89
89
90
90
/// <summary>
91
-
/// Gets or sets the desired reasoning effort for the response.
91
+
/// Gets or sets the desired reasoning effort for the response on models that support this control.
/// Gets or sets the fallback function callback used when a function does not have an explicit delegate.
166
+
/// Gets or sets the fallback function callback used when a function does not have an explicit delegate; should return a string or serializable object.
167
167
/// </summary>
168
168
publicFunc<string,string,CancellationToken,ValueTask<object?>>DefaultFunctionCallback{get;set;}=(_,_,_)=>thrownewNotImplementedException("Function callback has not been implemented.");
0 commit comments