litellm/tests/unit/llms/anthropic/chat
ryan-crabbe-berri 77efa8c0b3
fix(guardrails): keep tool_result is_error and system row output_config through /v1/messages guardrail rewrites (#52828)
* test(guardrails): wire tests for /v1/messages guardrail write-back keeping is_error and system fields

* fix(guardrails): keep tool_result is_error and system row fields through /v1/messages write-back

* refactor(guardrails): share tool_use_id queues and system text rule between write-back restorers

* style(guardrails): mark the write-back restorer TypeVar as a deliberate non-Final binding

* test(guardrails): annotate the write-back regression test variables as Final

* fix(guardrails): type system text blocks before the shared non-empty text check
2026-11-19 17:26:35 -08:00
..
guardrail_translation fix(guardrails): keep tool_result is_error and system row output_config through /v1/messages guardrail rewrites (#52828) 2026-11-19 17:26:35 -08:00
__init__.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
conftest.py test: move tests/test_litellm/llms into tests/unit/llms (#43191) 2026-09-25 12:43:23 -07:00
test_anthropic_chat_handler.py fix(anthropic): preserve streamed tool argument fragments verbatim (#50470) 2026-11-07 01:44:48 -08:00
test_anthropic_chat_transformation.py fix(anthropic, bedrock): keep adaptive thinking when tool-call history has no thinking blocks (#52615) 2026-11-18 12:53:47 -08:00
test_code_interpreter_results_extraction.py feat(anthropic): workload identity federation and pluggable identity sources (#44448) 2026-10-03 17:08:30 -07:00
test_transformation.py test: move whole-unit legacy test files into tests/unit and delete dead skips (#44807) 2026-10-07 05:02:28 +00:00