Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
updated tests and samples for removing aiconversation
  • Loading branch information
amber-Chen-86 committed Sep 16, 2025
commit 5101f04847e90f65e5e014128d7c537dd20b0172
Original file line number Diff line number Diff line change
Expand Up @@ -576,16 +576,15 @@ public async Task AnalyzeConversationAsync_AIConversation()

AnalyzeConversationInput data = new ConversationalAITask(
new ConversationalAIAnalysisInput(
conversations: new AIConversation[] {
new AIConversation(
conversations: new TextConversation[] {
new TextConversation(
id: "order",
modality: InputModality.Text,
language: "en-GB",
conversationItems: new ConversationalAIItem[]
conversationItems: new TextConversationItem[]
{
new ConversationalAIItem(id: "1", participantId: "user", text: "Hi"),
new ConversationalAIItem(id: "2", participantId: "bot", text: "Hello, how can I help you?"),
new ConversationalAIItem(id: "3", participantId: "user", text: "I would like to book a flight.")
new TextConversationItem(id: "1", participantId: "user", text: "Hi"),
new TextConversationItem(id: "2", participantId: "bot", text: "Hello, how can I help you?"),
new TextConversationItem(id: "3", participantId: "user", text: "I would like to book a flight.")
}
)
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ public void AnalyzeConversationalAI()

AnalyzeConversationInput data = new ConversationalAITask(
new ConversationalAIAnalysisInput(
conversations: new AIConversation[] {
new AIConversation(
conversations: new TextConversation[] {
new TextConversation(
id: "order",
modality: InputModality.Text,
language: "en-GB",
conversationItems: new ConversationalAIItem[]
conversationItems: new TextConversationItem[]
{
new ConversationalAIItem(id: "1", participantId: "user", text: "Hi"),
new ConversationalAIItem(id: "2", participantId: "bot", text: "Hello, how can I help you?"),
new ConversationalAIItem(id: "3", participantId: "user", text: "Send an email to Carol about tomorrow's demo")
new TextConversationItem(id: "1", participantId: "user", text: "Hi"),
new TextConversationItem(id: "2", participantId: "bot", text: "Hello, how can I help you?"),
new TextConversationItem(id: "3", participantId: "user", text: "Send an email to Carol about tomorrow's demo")
}
)
}),
Expand Down Expand Up @@ -144,17 +143,16 @@ public async Task AnalyzeConversationalAIAsync()

AnalyzeConversationInput data = new ConversationalAITask(
new ConversationalAIAnalysisInput(
conversations: new AIConversation[]
conversations: new TextConversation[]
{
new AIConversation(
new TextConversation(
id: "order",
modality: InputModality.Text,
language: "en-GB",
conversationItems: new ConversationalAIItem[]
conversationItems: new TextConversationItem[]
{
new ConversationalAIItem(id: "1", participantId: "user", text: "Hi"),
new ConversationalAIItem(id: "2", participantId: "bot", text: "Hello, how can I help you?"),
new ConversationalAIItem(id: "3", participantId: "user", text: "Send an email to Carol about tomorrow's demo")
new TextConversationItem(id: "1", participantId: "user", text: "Hi"),
new TextConversationItem(id: "2", participantId: "bot", text: "Hello, how can I help you?"),
new TextConversationItem(id: "3", participantId: "user", text: "Send an email to Carol about tomorrow's demo")
}
)
}),
Expand Down
Loading