Documentation métier
Fiche BR-AGT-07
Quand la réponse du modèle est diffusée au fil de l'eau, alors l'affichage montre des jetons jusqu'à la fin du message, sauf si l'application branche le décodeur de flux prévu.
Défini dans Brancher la protection sur un agent et ses outils
Où vit la règle 3
Tests directs 11
Le test, ou une fonction d'aide de son fichier, appelle le code de la règle.
- tests/integrations/langchain/test_middleware_stream.py::test_middleware_deanonymize_stream_restores_split_token
- tests/integrations/test_deidentify_stream.py::test_invented_token_is_dropped
- tests/integrations/test_deidentify_stream.py::test_invented_token_raises
- tests/integrations/test_deidentify_stream.py::test_literal_text_streams_through
- tests/integrations/test_deidentify_stream.py::test_token_split_across_chunks_is_restored
- tests/integrations/test_deidentify_stream.py::test_trailing_incomplete_token_is_flushed
- tests/integrations/test_deidentify.py::TestAnonymize::test_replaces_pii_with_a_token
- tests/integrations/test_deidentify.py::TestDeanonymize::test_round_trips_a_message
- tests/integrations/test_deidentify.py::TestInventedStrategy::test_drop_removes_an_invented_token
- tests/integrations/test_deidentify.py::TestInventedStrategy::test_keep_leaves_an_invented_token
- tests/integrations/test_deidentify.py::TestInventedStrategy::test_raise_refuses_an_invented_token
Tests indirects 3
Le test construit sa classe ou appelle une autre fonction de son module, qui mène à la règle.
- tests/integrations/langchain/test_middleware_e2e.py::test_second_model_call_never_sees_clear_tool_args
- 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
Utilisé par 1
Lu dans le graphe du code que construit graphify, aux emplacements que donne la documentation métier.