Documentation métier
Fiche BR-MSG-01
Quand une valeur est repérée, alors elle reçoit un jeton qui nomme son type et un numéro, compté par type dans l'ordre d'apparition.
Défini dans Protéger un message avant l'envoi au modèle
Où vit la règle 2
Tests directs 132
Le test, ou une fonction d'aide de son fichier, appelle le code de la règle.
- tests/acceptance/test_dev.py::TestThreadIsolation::test_a_token_restores_in_its_own_thread_only
- tests/acceptance/test_dpo.py::TestErasure::test_a_forgotten_thread_restores_nothing
- tests/acceptance/test_ops.py::TestSharedMemory::test_two_instances_agree_on_a_thread
- tests/components/guard/test_detector_guard.py::TestPipelineGrammar::test_a_guard_takes_the_pipeline_grammar
- tests/components/guard/test_detector_guard.py::TestPipelineGrammar::test_a_leak_still_raises_with_the_pipeline_grammar
- tests/components/guard/test_detector_guard.py::TestPipelineGrammar::test_an_explicit_recognizer_is_kept
- tests/components/guard/test_detector_guard.py::TestPipelineGrammar::test_the_caller_guard_is_left_unchanged
- tests/integrations/langchain/test_middleware_e2e.py::test_second_model_call_never_sees_clear_tool_args
- tests/integrations/langchain/test_middleware_stream.py::test_middleware_deanonymize_stream_restores_split_token
- tests/integrations/langchain/test_middleware.py::TestAssistantProvenance::test_anonymize_treats_assistant_value_as_pii
- tests/integrations/langchain/test_middleware.py::TestAssistantProvenance::test_ignore_does_not_analyze_assistant_messages
- tests/integrations/langchain/test_middleware.py::TestAssistantProvenance::test_preserve_keeps_assistant_value_clear
et 120 de plus
Tests indirects 45
Le test construit sa classe ou appelle une autre fonction de son module, qui mène à la règle.
- tests/components/anonymizer/test_span_anonymizer.py::TestAnonymize::test_escaping_can_be_disabled
- tests/components/anonymizer/test_span_anonymizer.py::TestAnonymize::test_overlapping_spans_raise
- tests/components/anonymizer/test_span_anonymizer.py::TestAnonymize::test_replaces_several_entities
- tests/components/anonymizer/test_span_anonymizer.py::TestAnonymize::test_result_carries_the_token_of_each_entity
- tests/components/anonymizer/test_span_anonymizer.py::TestAnonymize::test_user_typed_token_cannot_hijack_a_restore
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_no_prefix_collision_when_one_token_prefixes_another
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_no_tokens_leaves_text_unchanged
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_restored_value_holding_a_token_is_not_resubstituted
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_restores_a_novel_text
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_restores_a_single_token
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_restores_every_occurrence
- tests/components/anonymizer/test_span_anonymizer.py::TestDeanonymize::test_restores_several_entities
et 33 de plus
Utilisé par 0
Aucun appelant trouvé.
Lu dans le graphe du code que construit graphify, aux emplacements que donne la documentation métier.