Skip to content

Commit

Permalink
Remove all the "\n" in tsp files and compile again
Browse files Browse the repository at this point in the history
  • Loading branch information
amber-ccc committed Dec 3, 2024
1 parent de0fa96 commit 247f5bb
Show file tree
Hide file tree
Showing 12 changed files with 560 additions and 772 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,8 @@ using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;
/**
* The language service API is a suite of natural language processing (NLP) skills
* built with best-in-class Microsoft machine learning algorithms. The API can be
* used to analyze unstructured text for tasks such as sentiment analysis, key
* phrase extraction, language detection and question answering. Further
* documentation can be found in <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>.
* The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href="https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>.
*/
/** The language service conversations API is a suite of natural language processing (NLP) skills that can be used to analyze structured conversations (textual or spoken). The synchronous API in this suite accepts a request and mediates among multiple language projects, such as LUIS Generally Available, Question Answering, Conversational Language Understanding, and then calls the best candidate service to handle the request. At last, it returns a response with the candidate service's response as a payload.\n\n In some cases, this API needs to forward requests and responses between the caller and an upstream service. The asynchronous APIs in this suite enable tasks like Conversation Summarization and Conversational PII detection. */
@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "Ocp-Apim-Subscription-Key"> | OAuth2Auth<[
{
Expand All @@ -39,8 +33,7 @@ using TypeSpec.Versioning;
"The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview\">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>.",
{
/**
* Supported Cognitive Services endpoint (e.g.,
* https://<resource-name>.api.cognitiveservices.azure.com).
* Supported Cognitive Services endpoint e.g., https://<resource-name>.api.cognitiveservices.azure.com.
*/
Endpoint: string,
}
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Generates a copy project operation authorization to the current target Azure
* resource.
* Generates a copy project operation authorization to the current target Azure resource.
*/
#suppress "@azure-tools/typespec-azure-core/casing-style"
@post
Expand Down Expand Up @@ -144,8 +143,7 @@ interface AnalyzeConversationAuthoring {
ExportedProjectFormat?: ExportedProjectFormat;

/**
* Specifies the method used to interpret string offsets. For additional
* information see https://aka.ms/text-analytics-offsets.
* Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets.
*/
@query("stringIndexType")
stringIndexType: StringIndexType;
Expand All @@ -168,8 +166,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Triggers a job to import a project. If a project with the same name already
* exists, the data of that project is replaced.
* Triggers a job to import a project. If a project with the same name already exists, the data of that project is replaced.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/{projectName}/:import")
Expand Down Expand Up @@ -389,8 +386,7 @@ interface AnalyzeConversationAuthoring {
getSwapDeploymentsStatus is languageOperations.ResourceRead<AnalyzeConversationAuthoringSwapDeploymentsJobState>;

/**
* Gets the status of an export job. Once job completes, returns the project
* metadata, and assets.
* Gets the status of an export job. Once job completes, returns the project metadata, and assets.
*/
getExportStatus is languageOperations.ResourceRead<AnalyzeConversationAuthoringExportProjectJobState>;

Expand Down Expand Up @@ -452,8 +448,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Restores the snapshot of this trained model to be the current working directory
* of the project.
* Restores the snapshot of this trained model to be the current working directory of the project.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/{projectName}/models/{trainedModelLabel}/:load-snapshot")
Expand Down Expand Up @@ -486,8 +481,7 @@ interface AnalyzeConversationAuthoring {
getEvaluationStatus is languageOperations.ResourceRead<AnalyzeConversationAuthoringEvaluationJobState>;

/**
* Gets the detailed results of the evaluation for a trained model. This includes
* the raw inference results for the data included in the evaluation process.
* Gets the detailed results of the evaluation for a trained model. This includes the raw inference results for the data included in the evaluation process.
*/
getModelEvaluationResults is languageOperations.ResourceList<
AnalyzeConversationAuthoringUtteranceEvaluationResult,
Expand All @@ -496,8 +490,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Gets the evaluation summary of a trained model. The summary includes high level
* performance measurements of the model e.g., F1, Precision, Recall, etc.
* Gets the evaluation summary of a trained model. The summary includes high level performance measurements of the model e.g., F1, Precision, Recall, etc.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/{projectName}/models/{trainedModelLabel}/evaluation/summary-result")
Expand Down Expand Up @@ -537,11 +530,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Assign new Azure resources to a project to allow deploying new deployments to
* them. This API is available only via AAD authentication and not supported via
* subscription key authentication. For more details about AAD authentication,
* check here:
* https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory
* Assign new Azure resources to a project to allow deploying new deployments to them. This API is available only via AAD authentication and not supported via subscription key authentication. For more details about AAD authentication, check here: https://learn.microsoft.com/en-us/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-azure-active-directory
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/{projectName}/resources/:assign")
Expand Down Expand Up @@ -571,8 +560,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Unassign resources from a project. This disallows deploying new deployments to
* these resources, and deletes existing deployments assigned to them.
* Unassign resources from a project. This disallows deploying new deployments to these resources, and deletes existing deployments assigned to them.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/{projectName}/resources/:unassign")
Expand Down Expand Up @@ -694,9 +682,7 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Lists the deployments to which an Azure resource is assigned. This doesn't
* return deployments belonging to projects owned by this resource. It only
* returns deployments belonging to projects owned by other resources.
* Lists the deployments to which an Azure resource is assigned. This doesn't return deployments belonging to projects owned by this resource. It only returns deployments belonging to projects owned by other resources.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/global/deployments/resources")
Expand Down Expand Up @@ -766,25 +752,21 @@ interface AnalyzeConversationAuthoring {
>;

/**
* Lists the supported prebuilt entities that can be used while creating composed
* entities.
* Lists the supported prebuilt entities that can be used while creating composed entities.
*/
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/authoring/analyze-conversations/projects/global/prebuilt-entities")
@get
getSupportedPrebuiltEntities is Azure.Core.Foundations.Operation<
{
/**
* The language to get supported prebuilt entities for. Required if multilingual
* is false. This is BCP-47 representation of a language. For example, use "en"
* for English, "en-gb" for English (UK), "es" for Spanish etc.
* The language to get supported prebuilt entities for. Required if multilingual is false. This is BCP-47 representation of a language. For example, use "en" for English, "en-gb" for English (UK), "es" for Spanish etc.
*/
@query("language")
language?: string;

/**
* Whether to get the support prebuilt entities for multilingual or monolingual
* projects. If true, the language parameter is ignored.
* Whether to get the support prebuilt entities for multilingual or monolingual projects. If true, the language parameter is ignored.
*/
@query("multilingual")
multilingual?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ using TypeSpec.Rest;
using TypeSpec.Http;
using TypeSpec.Versioning;
/**
* The language service API is a suite of natural language processing (NLP) skills
* built with best-in-class Microsoft machine learning algorithms. The API can be
* used to analyze unstructured text for tasks such as sentiment analysis, key
* phrase extraction, language detection and question answering. Further
* documentation can be found in <a
* href="https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>.
* The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href="https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>.
*/
@useAuth(
ApiKeyAuth<ApiKeyLocation.header, "Ocp-Apim-Subscription-Key"> | OAuth2Auth<[
Expand All @@ -38,8 +33,7 @@ using TypeSpec.Versioning;
"The language service API is a suite of natural language processing (NLP) skills built with best-in-class Microsoft machine learning algorithms. The API can be used to analyze unstructured text for tasks such as sentiment analysis, key phrase extraction, language detection and question answering. Further documentation can be found in <a href=\"https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview\">https://docs.microsoft.com/en-us/azure/cognitive-services/language-service/overview</a>.",
{
/**
* Supported Cognitive Services endpoint (e.g.,
* https://<resource-name>.api.cognitiveservices.azure.com).
* Supported Cognitive Services endpoint e.g., https://<resource-name>.api.cognitiveservices.azure.com.
*/
@format("url")
Endpoint: string,
Expand Down
Loading

0 comments on commit 247f5bb

Please sign in to comment.