-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Expand file tree
/
Copy pathcommon.tsp
More file actions
204 lines (173 loc) · 6.01 KB
/
common.tsp
File metadata and controls
204 lines (173 loc) · 6.01 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
import "@typespec/rest";
import "@typespec/http";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-client-generator-core";
using Azure.ClientGenerator.Core;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;
namespace Language.Conversations.Authoring;
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringProjectKind", "csharp")
union ProjectKind {
string,
/**
* A project to build natural language into apps, bots, and IoT devices.
*/
Conversation: "Conversation",
/**
* A project to connect and orchestrate Conversation, Custom question answering and LUIS projects together in one single project.
*/
Orchestration: "Orchestration",
/**
* A project to build conversation summarization models which are able to summarize long conversations.
*/
@added(Versions.v2024_11_15_preview)
CustomConversationSummarization: "CustomConversationSummarization",
}
/**
* Human-readable error code.
*/
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringErrorCode", "csharp")
union ErrorCode {
string,
InvalidRequest: "InvalidRequest",
InvalidArgument: "InvalidArgument",
Unauthorized: "Unauthorized",
Forbidden: "Forbidden",
NotFound: "NotFound",
ProjectNotFound: "ProjectNotFound",
OperationNotFound: "OperationNotFound",
AzureCognitiveSearchNotFound: "AzureCognitiveSearchNotFound",
AzureCognitiveSearchIndexNotFound: "AzureCognitiveSearchIndexNotFound",
TooManyRequests: "TooManyRequests",
AzureCognitiveSearchThrottling: "AzureCognitiveSearchThrottling",
AzureCognitiveSearchIndexLimitReached: "AzureCognitiveSearchIndexLimitReached",
InternalServerError: "InternalServerError",
ServiceUnavailable: "ServiceUnavailable",
Timeout: "Timeout",
QuotaExceeded: "QuotaExceeded",
Conflict: "Conflict",
Warning: "Warning",
}
/**
* Human-readable error code.
*/
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringInnerErrorCode", "csharp")
union InnerErrorCode {
string,
InvalidRequest: "InvalidRequest",
InvalidParameterValue: "InvalidParameterValue",
KnowledgeBaseNotFound: "KnowledgeBaseNotFound",
AzureCognitiveSearchNotFound: "AzureCognitiveSearchNotFound",
AzureCognitiveSearchThrottling: "AzureCognitiveSearchThrottling",
ExtractionFailure: "ExtractionFailure",
InvalidRequestBodyFormat: "InvalidRequestBodyFormat",
EmptyRequest: "EmptyRequest",
MissingInputDocuments: "MissingInputDocuments",
InvalidDocument: "InvalidDocument",
ModelVersionIncorrect: "ModelVersionIncorrect",
InvalidDocumentBatch: "InvalidDocumentBatch",
UnsupportedLanguageCode: "UnsupportedLanguageCode",
InvalidCountryHint: "InvalidCountryHint",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("StringIndexType", "csharp")
union StringIndexType {
string,
/**
* The offset and length values will correspond to UTF-16 code units. Use this option if your application is written in a language that support Unicode, for example Java, JavaScript.
*/
Utf16CodeUnit: "Utf16CodeUnit",
Utf8CodeUnit: "Utf8CodeUnit",
Utf32CodeUnit: "Utf32CodeUnit",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringExportedProjectFormat", "csharp")
union ExportedProjectFormat {
string,
/**
* Specifies the format for a conversational project.
*/
Conversation: "Conversation",
/**
* Specifies the format for an application that was exported from LUIS.
*/
Luis: "Luis",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringTrainingMode", "csharp")
union TrainingMode {
string,
/**
* Trains using fine-tuned neural network transformer models. Can train multilingual projects.
*/
advanced: "advanced",
/**
* Faster training times for quicker iterations.
*/
standard: "standard",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringEvaluationKind", "csharp")
union EvaluationKind {
string,
/**
* Split the data into training and test sets according to user-defined percentages.
*/
percentage: "percentage",
/**
* Split the data according to the chosen dataset for every example in the data.
*/
manual: "manual",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@lroStatus
@clientName("ConversationAuthoringOperationStatus", "csharp")
union JobStatus {
string,
notStarted: "notStarted",
running: "running",
@lroSucceeded
succeeded: "succeeded",
@lroFailed
failed: "failed",
@lroCanceled
cancelled: "cancelled",
cancelling: "cancelling",
partiallyCompleted: "partiallyCompleted",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("ConversationAuthoringCompositionMode", "csharp")
union CompositionSetting {
string,
/**
* When two or more components are found in the text and overlap, the component with the longest set of characters is returned.
*/
returnLongestOverlap: "returnLongestOverlap",
/**
* All components must overlap at the exact same characters in the text for the entity to return. If one of the defined components is not matched or predicted, the entity will not return.
*/
requireExactOverlap: "requireExactOverlap",
/**
* Every component's match or prediction is returned as a separate instance of the entity.
*/
separateComponents: "separateComponents",
/**
* When two or more components are found in the text and overlap, the components' spans are merged together into one span combining all of them.
*/
combineComponents: "combineComponents",
}
#suppress "@azure-tools/typespec-azure-core/documentation-required"
@clientName("OrchestrationTargetProjectKind", "csharp")
union OrchestrationTargetProjectKind {
string,
Luis: "Luis",
Conversation: "Conversation",
QuestionAnswering: "QuestionAnswering",
}