The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
docs(agents): steer tests away from implementation details and deliberate reverts (#46317)
yuneng-jiang29202d2b50b9
diff --git a/AGENTS.md b/AGENTS.mdindex 2f254a2dadf..87e4df49299 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -23,7 +23,7 @@ When adding new features, add meaningful tests. Don't add tests that don't checkSame thing for bug fixes. The tests should make it so that this specific bug can never happen again without failing tests (i.e., regression)-Never test structure of code only function of it+Never test structure or implementation details of code, only function of it. A test should catch a change that breaks behavior by accident. If the only way it can fail is someone deliberately undoing the change, don't write itA test must only fail when litellm code changes. Never pin facts we don't own (a vendor's price, a third party's field, an upstream default, today's date) as literals or as "X must be absent". Assert the invariant our code guarantees instead, e.g. two rows agree, a value is within range, a field is derived from another. If an outside fact is truly load-bearing, cite its source and date next to the assertion so a reader can tell stale from broken