You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2024-11-15-preview and 2024-11-01 updates for Conversations Runtime (Azure#47814)
* Updated the dotnet sdk based on the new commit
* - adjust test examples based on the new generated sdk
* updated samples and snippets
* updated code based on new commit id
* modified the ChangeLog
* remove breaking changes and Bugs Fixed sections
* update sdk based on the latest commit id
* updated class name based on new commit id
* updated the snippets
* add one more version 2024-11-01 in TestBase and add test for ConversationPiiWithCharacterMask
* -adjust the version to 2024-11-01 in the test
* Modified the assertion in conversation pii test with MaskPolicyType
* add async test for ConversationPii_WithCharacterMaskPolicy
* add sync and async test for ConversationPii_WithEntityMaskPolicy
* add sync and async test for ConversationPii_WithNoMaskPolicy
* revert ConversationsClientLiveTests
* modify new test data for previous tests
* revert previous tests to main version.
* testing
* test for authentication
* - update the assets.json
* update recording for some old version apis
* update assets.json
* Succesfully run all the local tests and update the assets.json
* adding new tests to clientLiveTests and update assets.json
* remove the duplicate snippets
* update some remaining test recordings to 2024-11-15-preview
* udpate the new test for MaskWithEntity
* Update the snippets for new feature tests
* update the snippets for the general README file.
* updated the change log
Copy file name to clipboardExpand all lines: sdk/cognitivelanguage/Azure.AI.Language.Conversations/CHANGELOG.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,19 @@
1
1
# Release History
2
2
3
-
## 2.0.0-beta.2 (Unreleased)
3
+
## 2.0.0-beta.2 (2025-02-03)
4
4
5
5
### Features Added
6
6
7
-
- Exposed `JsonModelWriteCore` for model serialization procedure.
8
-
9
-
### Breaking Changes
10
-
11
-
### Bugs Fixed
7
+
- Added three differenct type of Redaction Policy `CharacterMaskPolicyType`, `EntityMaskTypePolicyType` and `NoMaskPolicyType` for the function `AnalyzeConversations`
8
+
- Added support for analyze-conversation API Versions
9
+
- 2024-11-01
10
+
- 2024-11-15-preview
12
11
13
12
### Other Changes
14
13
14
+
- Changed property `CreditCardNumberValue` to `CreditCardValue` and `PhoneNumberValue` to `PhoneValue` for class `ConversationPiiCategoryExclusions`
15
+
- Added a new `Instruction` property to class `ConversationSummarizationActionContent`
Copy file name to clipboardExpand all lines: sdk/cognitivelanguage/Azure.AI.Language.Conversations/README.md
+219Lines changed: 219 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -482,6 +482,225 @@ foreach (AnalyzeConversationOperationResult operationResult in operationState.Ac
482
482
}
483
483
```
484
484
485
+
### Extract PII from a conversation With Character Mask Policy
486
+
487
+
To detect and redact PII in a conversation using Character Mask Policy, you can use the `AnalyzeConversationsAsync` method overload with an action of type `PiiOperationAction` and utilize `CharacterMaskPolicyType` to define the RedactionCharacter (e.g., an asterisk *) to replace sensitive information. The method returns a `Response<AnalyzeConversationOperationState>`::
$"Expected entity '{entity.Text}' to be redacted but found in: {redactedText}");
548
+
549
+
Assert.That(redactedText, Does.Contain("*"),
550
+
$"Expected redacted text to contain '*' but got: {redactedText}");
551
+
}
552
+
}
553
+
}
554
+
}
555
+
}
556
+
}
557
+
```
558
+
559
+
### Extract PII from a conversation With Entity Mask Policy
560
+
561
+
To detect and redact PII in a conversation using Character Mask Policy, you can use the `AnalyzeConversationsAsync` method overload with an action of type `PiiOperationAction` and utilize `EntityMaskTypePolicyType` as Mask Policy to replace sensitive information. The method returns a `Response<AnalyzeConversationOperationState>`::
$"Expected redacted text to contain an entity mask similar to '[{entity.Category}]' but got: {redactedText}");
626
+
}
627
+
}
628
+
}
629
+
}
630
+
}
631
+
}
632
+
```
633
+
634
+
### Extract PII from a conversation With Character Mask Policy
635
+
636
+
To detect and redact PII in a conversation using No Mask Policy, you can use the `AnalyzeConversationsAsync` method overload with an action of type `PiiOperationAction` and utilize `NoMaskPolicyType` as Mask Policy. The method returns a `Response<AnalyzeConversationOperationState>`::
0 commit comments