Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add May Preview and May GA Api for Analyze Conversations in Cognitive Services Language #1

Closed
wants to merge 211 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
211 commits
Select commit Hold shift + click to select a range
9082b57
Adding example TypeSpec definition for CLU (#24309)
Zach-King2 Jun 6, 2023
18e41df
Adding Models to Typespec for CLU (#24376)
Zach-King2 Jun 26, 2023
007a013
Adding Path Object to Typespec for CLU (#24597)
Zach-King2 Jul 14, 2023
da77a3a
Model Changes in TypeSpec for CLU (#24866)
Zach-King2 Jul 18, 2023
787a5bf
TypeSpec updates for SDK generation (#24973)
Zach-King2 Aug 1, 2023
6f9f95d
Added @convientAPI decorator for SDK Generation (#25179)
Zach-King2 Aug 7, 2023
ec4880e
Removed discriminator from AnalyzeConversationTaskResult model (#25250)
Zach-King2 Aug 23, 2023
8503637
Added 2023-04-01 and 2023-04-15-preview version models to TypeSpec fo…
Zach-King2 Sep 18, 2023
1780465
moved to nonstandard LRO and general fixes
quentinRobinson Sep 25, 2023
a38e426
fixed tsp
quentinRobinson Sep 25, 2023
65f6967
added AnalyzeConversationPiiTask
quentinRobinson Sep 25, 2023
f934ea7
first commit for text analytics tsp
quentinRobinson Sep 25, 2023
74d1acf
second commit
quentinRobinson Sep 27, 2023
a7f65a7
fixed refactoring errors
quentinRobinson Sep 27, 2023
74b4de7
refactor analyzetext
quentinRobinson Sep 27, 2023
55615ec
fixed routes
quentinRobinson Sep 27, 2023
62598c7
added 2023-04-01 ga version
quentinRobinson Sep 28, 2023
1896a9b
cleanup
quentinRobinson Oct 3, 2023
08c6eba
Cleanup
quentinRobinson Oct 3, 2023
77fa983
general fixes
quentinRobinson Oct 9, 2023
155783f
Merge branch 'qrobinson/feature-cognitiveserviecs-langueage.Conversat…
quentinRobinson Oct 9, 2023
8c42ce1
updated tsp config and eng folder to match main
quentinRobinson Oct 11, 2023
ed5cdf4
Merge remote-tracking branch 'origin/qrobinson/feature-cognitiveservi…
quentinRobinson Oct 11, 2023
c8abc09
Adding example TypeSpec definition for CLU (#24309)
Zach-King2 Jun 6, 2023
d9b8a51
Adding Models to Typespec for CLU (#24376)
Zach-King2 Jun 26, 2023
fa83e97
Adding Path Object to Typespec for CLU (#24597)
Zach-King2 Jul 14, 2023
67fb474
Model Changes in TypeSpec for CLU (#24866)
Zach-King2 Jul 18, 2023
1218f1c
TypeSpec updates for SDK generation (#24973)
Zach-King2 Aug 1, 2023
c928c91
Added @convientAPI decorator for SDK Generation (#25179)
Zach-King2 Aug 7, 2023
e193aa0
Removed discriminator from AnalyzeConversationTaskResult model (#25250)
Zach-King2 Aug 23, 2023
cc74af9
Added 2023-04-01 and 2023-04-15-preview version models to TypeSpec fo…
Zach-King2 Sep 18, 2023
cadb639
moved to nonstandard LRO and general fixes
quentinRobinson Sep 25, 2023
2022c65
fixed tsp
quentinRobinson Sep 25, 2023
3bf92c6
added AnalyzeConversationPiiTask
quentinRobinson Sep 25, 2023
2f84611
first commit for text analytics tsp
quentinRobinson Sep 25, 2023
1bb8de1
second commit
quentinRobinson Sep 27, 2023
376382d
fixed refactoring errors
quentinRobinson Sep 27, 2023
501f222
refactor analyzetext
quentinRobinson Sep 27, 2023
5b8517a
added 2023-04-01 ga version
quentinRobinson Sep 28, 2023
009dfa7
general fixes
quentinRobinson Oct 9, 2023
37d53ef
cleanup
quentinRobinson Oct 3, 2023
22088bc
Cleanup
quentinRobinson Oct 3, 2023
c276271
updated tsp config and eng folder to match main
quentinRobinson Oct 11, 2023
a5056ae
reset som eng/* and package files to main
quentinRobinson Jan 16, 2024
c9800df
Merge branch 'qrobinson/feature-cognitiveserviecs-langueage.AnalyzeTe…
quentinRobinson Jan 16, 2024
55bca80
update eng files
quentinRobinson Jan 16, 2024
c83c984
reset files to main
quentinRobinson Jan 16, 2024
3d48aea
reset codeowners to main
quentinRobinson Jan 16, 2024
5f0d7ba
Add support for version 2023-11-15-preview in Language.AnalyzeText
quentinRobinson Jan 16, 2024
267ff12
Added exmaples and updated added a language interface
quentinRobinson Jan 22, 2024
c3b92ad
Merge remote-tracking branch 'upstream/main' into qrobinson/feature-c…
quentinRobinson Jan 22, 2024
795081e
Add scriptCode property to DetectedLanguage model
quentinRobinson Jan 22, 2024
1dee70e
Fix general Typespec errors
quentinRobinson Jan 22, 2024
d2bc9ae
Remove exampleValidation.txt file
quentinRobinson Jan 22, 2024
a0f72b7
revert file deletions
quentinRobinson Jan 22, 2024
47ffe16
Update entity recognition documentation
quentinRobinson Jan 22, 2024
b9c9130
Fix general typespec errors
quentinRobinson Jan 22, 2024
2e6163c
Update language detection examples
quentinRobinson Jan 22, 2024
2774f4a
removed unused refrences and fix errors
quentinRobinson Jan 22, 2024
a05648e
updated LanguageConversations
quentinRobinson Jan 24, 2024
20323cd
fix openapi pipeline errors
quentinRobinson Jan 24, 2024
8cf03db
fix more pipeline errors
quentinRobinson Jan 24, 2024
b1c7deb
fixed typespec compile warnings
quentinRobinson Jan 25, 2024
e3219de
remove examples from typespec for sdk generation
quentinRobinson Jan 25, 2024
7638286
tsv fixes
quentinRobinson Jan 25, 2024
5e3f791
Update SentimentResponse model and analyzetext.json for document resp…
quentinRobinson Jan 30, 2024
264cf33
Update healthcare and summarization models
quentinRobinson Feb 1, 2024
734c2ae
Update SentimentResponseWithDocumentDetectedLanguage model
quentinRobinson Feb 7, 2024
7aa1224
fixed prettier checks
quentinRobinson Feb 20, 2024
5321f14
Merge remote-tracking branch 'upstream/main' into qrobinson/feature-c…
quentinRobinson Feb 21, 2024
f1adc5e
TSV validation fixes
quentinRobinson Feb 21, 2024
a980a17
Prettier fixes
quentinRobinson Feb 21, 2024
0ce76a5
Rename C# project to AnalyzeText
quentinRobinson Feb 22, 2024
8270d9c
Add query parameter for generating summary
quentinRobinson Feb 27, 2024
4e109e2
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
quentinRobinson Feb 27, 2024
ed429a1
Merge remote-tracking branch 'upstream/main' into qrobinson/feature-c…
quentinRobinson Mar 11, 2024
5832e6c
ypeSpec Validation fixes
quentinRobinson Mar 11, 2024
d209329
fixed server endpoint
quentinRobinson Mar 12, 2024
3c1eb23
fixed missing comma
quentinRobinson Mar 12, 2024
91f7dc4
Remove x-ms-examples from analyzeconversations.json and analyzetext.json
quentinRobinson Mar 12, 2024
be36504
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
quentinRobinson Mar 13, 2024
39976bc
mitigate some breaking changes
quentinRobinson Mar 13, 2024
d1034e3
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
quentinRobinson Mar 13, 2024
64bc0f7
fixed some breaking changes
quentinRobinson Mar 13, 2024
87d43a6
breaking change fix
quentinRobinson Mar 13, 2024
e63180d
more breaking change fixes
quentinRobinson Mar 13, 2024
7d3bb8f
fixed more breaking changes
quentinRobinson Mar 13, 2024
bd40ac7
fixed breaking changes
quentinRobinson Mar 14, 2024
a76b869
fixed more breaking changes
quentinRobinson Mar 14, 2024
6257d55
fixed breaking change
quentinRobinson Mar 14, 2024
fa1c4a3
breaking changes
quentinRobinson Mar 14, 2024
4f60c8f
reset unintended changes
quentinRobinson Mar 14, 2024
6a5f856
added examples back
quentinRobinson Mar 18, 2024
6749545
tsv fixes
quentinRobinson Mar 18, 2024
2c46e04
fixed examples
quentinRobinson Mar 18, 2024
a91b659
Update Language.Conversations version 2023-11-15-preview doc
quentinRobinson Mar 19, 2024
806a48a
fixed models and removed unneeded file
quentinRobinson Mar 20, 2024
d2b65be
fixed breaking changes
quentinRobinson Mar 21, 2024
ce02026
fix breaking change
quentinRobinson Mar 21, 2024
75bf0c9
more breaking changes
quentinRobinson Mar 21, 2024
7c698bb
fix breaking changes
quentinRobinson Mar 21, 2024
80519fd
breaking chagnes fix
quentinRobinson Mar 27, 2024
c8dc905
commented examples due to not working with autorest
quentinRobinson Mar 27, 2024
2d31a6d
quote autorest flavor
quentinRobinson Mar 28, 2024
0a4e535
removed flavor
quentinRobinson Mar 28, 2024
b67a2b1
add clientname for Association
quentinRobinson Mar 28, 2024
d5d64e4
rename for csharp
quentinRobinson Mar 28, 2024
44ad42d
rename for csharp
quentinRobinson Mar 28, 2024
c8c22cc
bug fix on TemporalSpanMetadata
quentinRobinson Mar 28, 2024
5ad1cec
removed invalid extends
quentinRobinson Mar 29, 2024
025d309
fix more bad extends
quentinRobinson Mar 29, 2024
fb2a40d
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
quentinRobinson Mar 29, 2024
2923f9c
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
quentinRobinson Apr 1, 2024
c14f70f
Add docs for common.models.tsp
Apr 5, 2024
bcc5bee
Updated for entities and language
Apr 9, 2024
3c633af
remove the base object Record<Unknown>
Apr 9, 2024
29253dc
tsv fixes
quentinRobinson Apr 10, 2024
abc885b
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
quentinRobinson Apr 10, 2024
8b704b4
spell check and projectedName to encodedName
quentinRobinson Apr 10, 2024
ecac1b9
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
quentinRobinson Apr 10, 2024
71dda18
fixed encodedname
quentinRobinson Apr 10, 2024
a149469
add docs to healthcare tsp
Dezzley Apr 10, 2024
bb4c207
Few more missing docs
Apr 10, 2024
148b336
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 10, 2024
884610a
fix tsv errors
quentinRobinson Apr 10, 2024
eaacd89
tsv fixes
quentinRobinson Apr 10, 2024
928117a
Merge pull request #2 from Dezzley/dmitryvislov/replace-suppress-with…
quentinRobinson Apr 10, 2024
534993e
Some more missing docs
Apr 10, 2024
c72799b
spec
Apr 10, 2024
105d565
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 10, 2024
edbfed4
missing docs
Apr 10, 2024
513b8c3
fixing typespec validation
Apr 10, 2024
7de482c
tsv fixes
quentinRobinson Apr 10, 2024
66a1409
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 10, 2024
0d9d82a
Fix swagger spell check errors
Apr 10, 2024
3ca889a
fix type validation
Apr 10, 2024
079fa26
typo in /common.models.tsp
Apr 10, 2024
d77f7ef
Add @doc decorators to the Summarization typespec file
moabba Apr 10, 2024
06878ae
More
moabba Apr 10, 2024
0956274
Add Keyphrase and sentiment
moabba Apr 11, 2024
a0074ff
.
moabba Apr 11, 2024
7785470
Update custom-words.txt to contain picometers
quentinRobinson Apr 11, 2024
2280efd
Merge pull request #3 from moabba/moaba/summ_docs
quentinRobinson Apr 11, 2024
6b8b96a
Fix tsv error
Apr 11, 2024
53b83f4
Rename the operation IDs in the examples to match
Apr 11, 2024
91adeb3
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 11, 2024
14881d0
Update examples for analyze-conversations
Apr 11, 2024
40117fe
tsv compile
Apr 11, 2024
49d162c
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 11, 2024
166d48f
fix exclude parameter
Apr 11, 2024
f9e336a
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 11, 2024
9ff53c8
run tsv compile
Apr 11, 2024
1e36c2e
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 12, 2024
6f4ea00
Address comments
Apr 12, 2024
df3b5e1
Some more changes
Apr 12, 2024
df70a98
Add examples and api version for May GA and Preview
Mar 20, 2024
6f5774c
Add Aspect related tsp changes
Apr 5, 2024
78758f6
Some API version corrections
Apr 8, 2024
96128ff
Remove Custom Conv Summarization examples from May GA examples
Apr 8, 2024
04eea23
minor api adjustments for other custom conv summarization attributes
Apr 9, 2024
b3170f3
minor fix
Apr 10, 2024
f34c35a
Add an example and specifications for entity tags (#1)
nithya4 Apr 10, 2024
9ecd999
compile fixes
Apr 12, 2024
e8b2b3e
Add examples
Apr 12, 2024
09542ce
Examples changes
Apr 12, 2024
4c343f0
remove 2023-04-15-preview
Apr 12, 2024
99d39bb
remove @needsRoute
Apr 12, 2024
8ee4c3e
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 12, 2024
586a6ce
Remove readme
Apr 12, 2024
99ea6ae
addressed PR comments
quentinRobinson Apr 14, 2024
684efd8
removed @clientname from models
quentinRobinson Apr 14, 2024
15e78ac
revert removing QnA from analyze-conversations
Apr 15, 2024
832c341
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 15, 2024
7cd14f9
Add some docs
Apr 15, 2024
6656ea5
Address doc comments
Apr 15, 2024
432fec2
fix spellcheck
Apr 15, 2024
0bed559
Remove Record<Unknown>
Apr 16, 2024
1c8c5a5
small change
Apr 16, 2024
2228d89
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 16, 2024
693fe34
fix analyze-conv sync
Apr 16, 2024
ede7e22
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 16, 2024
27cbb0f
fix km
Apr 16, 2024
4bd6198
removing unnecessary QnA reference from analyze-conversations
Apr 16, 2024
8ecebec
Update specification/cognitiveservices/Language.Conversations/main.tsp
bidisha-c Apr 16, 2024
0a3dd9b
Update specification/cognitiveservices/Language.AnalyzeText/client.tsp
bidisha-c Apr 16, 2024
955f374
Address comments
Apr 16, 2024
c06c441
Add client.tsp
Apr 16, 2024
bb1f431
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 16, 2024
78692b2
fx tsp
Apr 16, 2024
30bed50
tsv compile
Apr 16, 2024
d2c7c15
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 16, 2024
8a0530c
remove extra impor
Apr 16, 2024
890b3ad
Update specification/cognitiveservices/Language.AnalyzeText/tspconfig…
bidisha-c Apr 16, 2024
b460f9e
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 16, 2024
25f3f0c
make enable?:true
Apr 16, 2024
9b3895e
fix tsp
Apr 17, 2024
79dccfa
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
Apr 17, 2024
3a61473
address comment
Apr 17, 2024
03436a0
remaining comments
Apr 17, 2024
e371520
use Azure.Core.Foundations.ErrorResponse
Apr 17, 2024
d5adb61
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 17, 2024
ae84639
Address comments of LuisResult
Apr 17, 2024
1b91a0c
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 17, 2024
dcd8481
Merge branch 'main' into qrobinson/feature-congnitiveservices-languag…
bidisha-c Apr 17, 2024
3409c2a
Update doc comments
Apr 17, 2024
4689173
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 17, 2024
bf90d18
tsv compile
Apr 17, 2024
8138775
Merge branch 'qrobinson/feature-congnitiveservices-language.AnalyzeTe…
Apr 23, 2024
ef7ff79
Changes to remove older preview API version in Analyze conversations
Apr 23, 2024
0d7de0c
Merge branch 'main' into aurghob/maypreviewga
aurghob Apr 23, 2024
9e0e41c
Fix compile error and add compiled swagger json
Apr 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tsv compile
  • Loading branch information
Bidisha Chakraborty committed Apr 17, 2024
commit bf90d180ebd037ddb0d9f4b45ed5ef185a3d6ddf
12 changes: 6 additions & 6 deletions specification/cognitiveservices/Language.AnalyzeText/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ using TypeSpec.Versioning;
using Azure.Core;
using Azure.Core.Traits;

/** 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/azure/cognitive-services/language-service/overview\">https://docs.microsoft.com/azure/cognitive-services/language-service/overview</a>.0 */
@useAuth(
TypeSpec.Http.ApiKeyAuth<
TypeSpec.Http.ApiKeyLocation.header,
"Ocp-Apim-Subscription-Key"
>
)
/** 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/azure/cognitive-services/language-service/overview\">https://docs.microsoft.com/azure/cognitive-services/language-service/overview</a>.0 */
@service({
title: "Microsoft Cognitive Language Service - Text Analysis",
})
Expand Down Expand Up @@ -62,27 +62,27 @@ alias ServiceTraits = NoRepeatableRequests &

alias languageOperations = ResourceOperations<ServiceTraits, ErrorResponse>;

/** Request text analysis over a collection of documents. */
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@post
@route("/:analyze-text")
/** Request text analysis over a collection of documents. */
op analyzeText is RpcOperation<
AnalyzeTextTask & AnalyzeTextQueryParameters,
AnalyzeTextTaskResult,
{},
ErrorResponse
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
/** Get the status of an analysis job. A job can consist of one or more tasks. After all tasks succeed, the job transitions to the succeeded state and results are available for each task. */
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@summary("Get analysis status and results")
op analyzeTextJobStatus is languageOperations.ResourceRead<
AnalyzeTextJobState,
AnalyzeTextJobQueryParameters
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
/** Submit a collection of text documents for analysis. Specify one or more unique tasks to be executed as a long-running operation. */
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@route("/analyze-text/jobs")
@pollingOperation(analyzeTextJobStatus)
op analyzeTextSubmitJob is Foundations.LongRunningOperation<
Expand All @@ -92,16 +92,16 @@ op analyzeTextSubmitJob is Foundations.LongRunningOperation<
ErrorResponse
>;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
/** Cancel a long-running Text Analysis job. */
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@summary("Cancel a long-running Text Analysis job.")
@pollingOperation(analyzeTextJobStatus)
@route("/analyze-text/jobs/{jobId}:cancel")
@post
op analyzeTextCancelJob is Foundations.LongRunningOperation<
{
@path
/** The job ID to cancel. */
@path
jobId: uuid;
},
AcceptedResponse,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ using Azure.Core.Traits;

namespace Language.AnalyzeText;

#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Model types must use PascalCase"
/** These are the [Azure Active Directory OAuth2](https://docs.microsoft.com/azure/active-directory/develop/v1-overview) Flows. When paired with [Azure role-based access](https://docs.microsoft.com/azure/role-based-access-control/overview) control it can be used to control access to Azure Maps REST APIs. Azure role-based access controls are used to designate access to one or more Azure Maps resource account or sub-resources. Any user, group, or service principal can be granted access via a built-in role or a custom role composed of one or more permissions to Azure Maps REST APIs.\n\nTo implement scenarios, we recommend viewing [authentication concepts](https://aka.ms/amauth). In summary, this security definition provides a solution for modeling application(s) via objects capable of access control on specific APIs and scopes.\n\n#### Notes\n* This security definition **requires** the use of the `x-ms-client-id` header to indicate which Azure Maps resource the application is requesting access to. This can be acquired from the [Maps management API](https://aka.ms/amauthdetails).\n* \nThe `Authorization URL` is specific to the Azure public cloud instance. Sovereign clouds have unique Authorization URLs and Azure Active directory configurations. \n* \nThe Azure role-based access control is configured from the [Azure management plane](https://aka.ms/amrbac) via Azure portal, PowerShell, CLI, Azure SDKs, or REST APIs.\n* \nUsage of the [Azure Maps Web SDK](https://aka.ms/amaadmc) allows for configuration based setup of an application for multiple use cases.\n* Currently, Azure Active Directory [v1.0 or v2.0](https://docs.microsoft.com/azure/active-directory/develop/azure-ad-endpoint-comparison) supports Work, School, and Guests but does not support Personal accounts. */
#suppress "@azure-tools/typespec-azure-core/casing-style" "The names of Model types must use PascalCase"
model AADToken
is OAuth2Auth<[
{
Expand Down Expand Up @@ -187,22 +187,22 @@ model MultiLanguageAnalysisInput {
documents?: Array<MultiLanguageInput>;
}

@discriminator("kind")
/** Collection of documents to analyze and a single task to execute. */
@discriminator("kind")
model AnalyzeTextTask {
/** The kind of task to perform. */
kind: AnalyzeTextTaskKind;
}
/** The long running task to be performed by the service on the input documents. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
@discriminator("kind")
/** The long running task to be performed by the service on the input documents. */
model AnalyzeTextLROTask is TaskIdentifier {
/** The kind of task to perform. */
kind: AnalyzeTextLROTaskKind;
}

@discriminator("kind")
/** The result object for the analyze task. */
@discriminator("kind")
model AnalyzeTextTaskResult {
/** The kind of task result. */
kind: AnalyzeTextTaskResultsKind;
Expand All @@ -219,8 +219,8 @@ model AnalyzeTextJobsInput {
/** List of tasks to be performed as part of the LRO. */
tasks: Array<AnalyzeTextLROTask>;

@added(Versions.v2023_11_15_preview)
/** Default language to use for records requesting automatic language detection. */
@added(Versions.v2023_11_15_preview)
defaultLanguage?: string;
}

Expand Down Expand Up @@ -309,8 +309,8 @@ union Status {
cancelling: "cancelling",
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Contains the AnalyzeText long running operation result object. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
@discriminator("kind")
model AnalyzeTextLROResult {
...TaskState;
Expand Down Expand Up @@ -700,8 +700,8 @@ union ErrorCode {
Warning: "Warning",
}

#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" // defined as closed enum
/** Predicted sentiment for document (Negative, Neutral, Positive, or Mixed). */
#suppress "@azure-tools/typespec-azure-core/no-closed-literal-union" // defined as closed enum
union DocumentSentimentValue {
/** Positive statement */
positive: "positive",
Expand All @@ -728,8 +728,8 @@ model SentimentConfidenceScores {
negative: float64;
}

@added(Versions.v2023_11_15_preview)
/** Enum that defines the length of the output summaries. */
@added(Versions.v2023_11_15_preview)
union SummaryLengthBucket {
string,

Expand All @@ -743,17 +743,17 @@ union SummaryLengthBucket {
long: "long",
}

@added(Versions.v2023_04_01)
/** Supported parameters for an Abstractive Summarization task. */
@added(Versions.v2023_04_01)
model AbstractiveSummarizationTaskParametersBase {
/** Controls the approximate number of sentences in the output summaries. */
sentenceCount?: int32;

/** String index type */
stringIndexType?: StringIndexType = StringIndexType.TextElements_v8;

@added(Versions.v2023_11_15_preview)
/** (NOTE: Recommended to use summaryLength over sentenceCount) Controls the approximate length of the output summaries. */
@added(Versions.v2023_11_15_preview)
summaryLength?: SummaryLengthBucket;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ using Azure.ClientGenerator.Core;
using TypeSpec.Versioning;

namespace Language.AnalyzeText;
@added(Versions.v2023_11_15_preview)
/** Supported parameters for a custom Healthcare task. */
@added(Versions.v2023_11_15_preview)
model CustomHealthcareTaskParameters is CustomTaskParameters {
/** Optional parameter to provide the string index type used to interpret string offsets. Defaults to TextElements (Graphemes). */
stringIndexType?: StringIndexType = StringIndexType.TextElements_v8;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Contains the custom healthcare task definition. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
@added(Versions.v2023_11_15_preview)
model CustomHealthcareLROTask extends AnalyzeTextLROTask {
/** Kind of the task. */
Expand All @@ -22,22 +22,22 @@ model CustomHealthcareLROTask extends AnalyzeTextLROTask {
parameters?: CustomHealthcareTaskParameters;
}

@added(Versions.v2023_11_15_preview)
/** Contains the custom healthcare result for the request. */
@added(Versions.v2023_11_15_preview)
model CustomHealthcareResult is CustomResult {
/** List of custom healthcare results for the document. */
documents: Array<CustomHealthcareEntitiesDocumentResultWithDocumentDetectedLanguage>;
}

@added(Versions.v2023_11_15_preview)
/** Contains the document custom healthcare results with detected language. */
@added(Versions.v2023_11_15_preview)
model CustomHealthcareEntitiesDocumentResultWithDocumentDetectedLanguage
is CustomHealthcareEntitiesDocumentResult {
...DocumentDetectedLanguage;
}

@added(Versions.v2023_11_15_preview)
/** Contains the document custom healthcare results. */
@added(Versions.v2023_11_15_preview)
model CustomHealthcareEntitiesDocumentResult is DocumentResult {
/** Healthcare entities. */
entities: Array<CustomHealthcareEntity>;
Expand All @@ -53,9 +53,9 @@ model CustomHealthcareEntity is HealthcareEntity {
entityComponentInformation?: Array<EntityComponentInformation>;
}

/** Contains the custom healthcare job result. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
@added(Versions.v2023_11_15_preview)
/** Contains the custom healthcare job result. */
model CustomHealthcareLROResult extends AnalyzeTextLROResult {
/** Kind of the task. */
kind: AnalyzeTextLROResultsKind.CustomHealthcareLROResults;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ model CustomEntitiesTaskParameters is CustomTaskParameters {
stringIndexType?: StringIndexType = StringIndexType.TextElements_v8;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Contains the custom text LRO task. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
model CustomEntitiesLROTask extends AnalyzeTextLROTask {
/** Kind of the task. */
kind: AnalyzeTextLROTaskKind.CustomEntityRecognition;
Expand All @@ -32,8 +32,8 @@ model CustomEntitiesResult is CustomResult {
documents: Array<EntitiesDocumentResult>;
}

@added(Versions.v2023_11_15_preview)
/** Contains the list of detected custom entities result for the documents along with detected language. */
@added(Versions.v2023_11_15_preview)
model CustomEntitiesResultWithDocumentDetectedLanguage is CustomResult {
/** Enumeration of the document results with detected language. */
documents: Array<EntitiesDocumentResultWithDetectedLanguage>;
Expand All @@ -42,8 +42,8 @@ model CustomEntitiesResultWithDocumentDetectedLanguage is CustomResult {
/** Supported parameters for a Custom Single Classification task. */
model CustomSingleLabelClassificationTaskParameters is CustomTaskParameters;

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Use custom models to classify text into single label taxonomy */
#suppress "@azure-tools/typespec-azure-core/casing-style"
model CustomSingleLabelClassificationLROTask extends AnalyzeTextLROTask {
/** Kind of the task. */
kind: AnalyzeTextLROTaskKind.CustomSingleLabelClassification;
Expand All @@ -58,8 +58,8 @@ model CustomLabelClassificationResult is CustomResult {
documents: Array<ClassificationDocumentResult>;
}

@added(Versions.v2023_11_15_preview)
/** Contains the custom label classification with detected language results. */
@added(Versions.v2023_11_15_preview)
model CustomLabelClassificationResultWithDocumentDetectedLanguage
is CustomResult {
/** Response by document */
Expand All @@ -78,8 +78,8 @@ model ClassificationResult {
/** Supported parameters for a Custom Multi Classification task. */
model CustomMultiLabelClassificationTaskParameters is CustomTaskParameters;

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Use custom models to classify text into multi label taxonomy */
#suppress "@azure-tools/typespec-azure-core/casing-style"
model CustomMultiLabelClassificationLROTask extends AnalyzeTextLROTask {
/** Kind of the task. */
kind: AnalyzeTextLROTaskKind.CustomMultiLabelClassification;
Expand All @@ -100,8 +100,8 @@ model ClassificationDocumentResultWithDetectedLanguage
...DocumentDetectedLanguage;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Contains the custom entity recognition job result. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
model CustomEntityRecognitionLROResult extends AnalyzeTextLROResult {
/** Kind of the task. */
kind: AnalyzeTextLROResultsKind.CustomEntityRecognitionLROResults;
Expand All @@ -111,8 +111,8 @@ model CustomEntityRecognitionLROResult extends AnalyzeTextLROResult {
results: CustomEntitiesResultWithDocumentDetectedLanguage;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Contains the custom single label classification job result. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
model CustomSingleLabelClassificationLROResult extends AnalyzeTextLROResult {
/** Kind of the task. */
kind: AnalyzeTextLROResultsKind.CustomSingleLabelClassificationLROResults;
Expand All @@ -125,8 +125,8 @@ model CustomSingleLabelClassificationLROResult extends AnalyzeTextLROResult {
results: CustomLabelClassificationResultWithDocumentDetectedLanguage;
}

#suppress "@azure-tools/typespec-azure-core/casing-style"
/** Contains the custom multi label classification job result. */
#suppress "@azure-tools/typespec-azure-core/casing-style"
model CustomMultiLabelClassificationLROResult extends AnalyzeTextLROResult {
/** Kind of the task. */
kind: AnalyzeTextLROResultsKind.CustomMultiLabelClassificationLROResults;
Expand All @@ -139,8 +139,8 @@ model CustomMultiLabelClassificationLROResult extends AnalyzeTextLROResult {
results: CustomLabelClassificationResultWithDocumentDetectedLanguage;
}

@added(Versions.v2023_11_15_preview)
/** Contains the analyze text dynamic classifications input. */
@added(Versions.v2023_11_15_preview)
model AnalyzeTextDynamicClassificationInput extends AnalyzeTextTask {
/** Kind of the task. */
kind: AnalyzeTextTaskKind.DynamicClassification;
Expand All @@ -152,16 +152,16 @@ model AnalyzeTextDynamicClassificationInput extends AnalyzeTextTask {
parameters?: DynamicClassificationTaskParameters;
}

@added(Versions.v2023_11_15_preview)
/** Contains the Dynamic Classification document result. */
@added(Versions.v2023_11_15_preview)
model DynamicClassificationDocumentResult is DocumentResult {
/** Array of classification results. */
classifications: Array<ClassificationResult>;
}

/** This object contains information of the detected entity components. The possible component types may expand in the future. Parsing code should handle unexpected values gracefully */
@added(Versions.v2023_11_15_preview)
@discriminator("entityComponentKind")
/** This object contains information of the detected entity components. The possible component types may expand in the future. Parsing code should handle unexpected values gracefully */
model EntityComponentInformation {
/** Kind of entity component. */
entityComponentKind: entityComponentKind;
Expand All @@ -182,8 +182,8 @@ union entityComponentKind {
ListComponent: "ListComponent",
}

@added(Versions.v2023_11_15_preview)
/** This object contains information of the prebuilt component of the detected entity. */
@added(Versions.v2023_11_15_preview)
model PrebuiltComponent extends EntityComponentInformation {
/** Kind of entity component. */
entityComponentKind: entityComponentKind.PrebuiltComponent;
Expand All @@ -192,8 +192,8 @@ model PrebuiltComponent extends EntityComponentInformation {
value?: string;
}

@added(Versions.v2023_11_15_preview)
/** This object contains information of the learned component of the detected entity. */
@added(Versions.v2023_11_15_preview)
model LearnedComponent extends EntityComponentInformation {
/** Kind of entity component. */
entityComponentKind: entityComponentKind.LearnedComponent;
Expand All @@ -202,8 +202,8 @@ model LearnedComponent extends EntityComponentInformation {
value?: string;
}

@added(Versions.v2023_11_15_preview)
/** This object contains information of the list component of the detected entity. */
@added(Versions.v2023_11_15_preview)
model ListComponent extends EntityComponentInformation {
/** Kind of entity component. */
entityComponentKind: entityComponentKind.ListComponent;
Expand All @@ -212,8 +212,8 @@ model ListComponent extends EntityComponentInformation {
value?: string;
}

@added(Versions.v2023_11_15_preview)
/** Supported parameters for a Dynamic Classification task. */
@added(Versions.v2023_11_15_preview)
model DynamicClassificationTaskParameters is PreBuiltTaskParameters {
/** Specifies either one or multiple categories per document. Defaults to multi classification which may return more than one class for each document. */
classificationType?: ClassificationType = ClassificationType.Multi;
Expand All @@ -222,8 +222,8 @@ model DynamicClassificationTaskParameters is PreBuiltTaskParameters {
categories: Array<string>;
}

@added(Versions.v2023_11_15_preview)
/** Specifies either one or multiple categories per document. Defaults to multi classification which may return more than one class for each document. */
@added(Versions.v2023_11_15_preview)
union ClassificationType {
string,

Expand All @@ -234,15 +234,15 @@ union ClassificationType {
Single: "Single",
}

@added(Versions.v2023_11_15_preview)
/** Contains the Dynamic Classification result. */
@added(Versions.v2023_11_15_preview)
model DynamicClassificationResult is PreBuiltResult {
/** Response by document */
documents: Array<DynamicClassificationDocumentResult>;
}

@added(Versions.v2023_11_15_preview)
/** Result for Dynamic Classification task. */
@added(Versions.v2023_11_15_preview)
model DynamicClassificationTaskResult extends AnalyzeTextTaskResult {
/** Kind of task result */
kind: AnalyzeTextTaskResultsKind.DynamicClassificationResults;
Expand Down
Loading