BR-AGT-04
When the tool setting is "Full" or "Output only", then the text returned by the tool goes through full detection and is masked before the model.
Plug the protection into an agent and its toolsEn français
Quand le réglage d'outil est « Complet » ou « Sortie seule », alors le texte renvoyé par l'outil passe par le repérage complet et est masqué avant le modèle.
Brancher la protection sur un agent et ses outilsWhere the rule lives 2
Tested by 4
- 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::TestFactoryContract::test_a_pipeline_without_a_recognizer_is_refused
- tests/integrations/langchain/test_middleware.py::TestFactoryContract::test_reads_the_recognizer_from_the_pipeline
Used by 1
Read from the code graph graphify builds, at the places the domain documentation gives. A test that goes through another function does not show here.