Skip to content

Commit 371e4d2

Browse files
[Conv Runtime] remove the extra AIConversation class 20250515preview (#35952)
* remove the extra AIConversation class * compile and fix Typespec validation --------- Co-authored-by: Bidisha Chakraborty <[email protected]>
1 parent 6cbb9eb commit 371e4d2

File tree

2 files changed

+2
-87
lines changed

2 files changed

+2
-87
lines changed

specification/cognitiveservices/Language.Conversations/models/common.tsp

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -418,38 +418,7 @@ model ConversationalAITask extends AnalyzeConversationTask {
418418
@added(Versions.v2025_05_15_preview)
419419
model ConversationalAIAnalysisInput {
420420
/** List of multiple conversations */
421-
conversations: AIConversation[];
422-
}
423-
424-
/** The Conversations for ai conversation analysis */
425-
#suppress "@azure-tools/typespec-azure-core/casing-style"
426-
@added(Versions.v2025_05_15_preview)
427-
model AIConversation {
428-
/** The ID of the conversation. */
429-
id: string;
430-
431-
/** Default modality for all conversation items. */
432-
modality: InputModality;
433-
434-
/** Default language for all conversation items in BCP 47 language representation. */
435-
language: string;
436-
437-
/** List of conversation items. */
438-
conversationItems: ConversationalAIItem[];
439-
}
440-
441-
/** List of conversation items. */
442-
#suppress "@azure-tools/typespec-azure-core/casing-style"
443-
@added(Versions.v2025_05_15_preview)
444-
model ConversationalAIItem {
445-
/** The ID of a conversation item. */
446-
id: string;
447-
448-
/** The participant ID of a conversation item. */
449-
participantId: string;
450-
451-
/** The text input */
452-
text: string;
421+
conversations: TextConversation[];
453422
}
454423

455424
/** The input for a conversation language understanding task. */

specification/cognitiveservices/data-plane/Language/preview/2025-05-15-preview/analyzeconversations.json

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -316,37 +316,6 @@
316316
}
317317
},
318318
"definitions": {
319-
"AIConversation": {
320-
"type": "object",
321-
"description": "The Conversations for ai conversation analysis",
322-
"properties": {
323-
"id": {
324-
"type": "string",
325-
"description": "The ID of the conversation."
326-
},
327-
"modality": {
328-
"$ref": "#/definitions/InputModality",
329-
"description": "Default modality for all conversation items."
330-
},
331-
"language": {
332-
"type": "string",
333-
"description": "Default language for all conversation items in BCP 47 language representation."
334-
},
335-
"conversationItems": {
336-
"type": "array",
337-
"description": "List of conversation items.",
338-
"items": {
339-
"$ref": "#/definitions/ConversationalAIItem"
340-
}
341-
}
342-
},
343-
"required": [
344-
"id",
345-
"modality",
346-
"language",
347-
"conversationItems"
348-
]
349-
},
350319
"AgeResolution": {
351320
"type": "object",
352321
"description": "Represents the Age entity resolution model.",
@@ -2117,7 +2086,7 @@
21172086
"type": "array",
21182087
"description": "List of multiple conversations",
21192088
"items": {
2120-
"$ref": "#/definitions/AIConversation"
2089+
"$ref": "#/definitions/TextConversation"
21212090
}
21222091
}
21232092
},
@@ -2268,29 +2237,6 @@
22682237
"entities"
22692238
]
22702239
},
2271-
"ConversationalAIItem": {
2272-
"type": "object",
2273-
"description": "List of conversation items.",
2274-
"properties": {
2275-
"id": {
2276-
"type": "string",
2277-
"description": "The ID of a conversation item."
2278-
},
2279-
"participantId": {
2280-
"type": "string",
2281-
"description": "The participant ID of a conversation item."
2282-
},
2283-
"text": {
2284-
"type": "string",
2285-
"description": "The text input"
2286-
}
2287-
},
2288-
"required": [
2289-
"id",
2290-
"participantId",
2291-
"text"
2292-
]
2293-
},
22942240
"ConversationalAIResult": {
22952241
"type": "object",
22962242
"description": "Represents the conversational analysis response.",

0 commit comments

Comments
 (0)