llm-d-validate 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- llm_d_validate-0.1.1/LICENSE +201 -0
- llm_d_validate-0.1.1/PKG-INFO +154 -0
- llm_d_validate-0.1.1/README.md +107 -0
- llm_d_validate-0.1.1/pyproject.toml +89 -0
- llm_d_validate-0.1.1/setup.cfg +4 -0
- llm_d_validate-0.1.1/src/llm_d_validate.egg-info/PKG-INFO +154 -0
- llm_d_validate-0.1.1/src/llm_d_validate.egg-info/SOURCES.txt +472 -0
- llm_d_validate-0.1.1/src/llm_d_validate.egg-info/dependency_links.txt +1 -0
- llm_d_validate-0.1.1/src/llm_d_validate.egg-info/entry_points.txt +5 -0
- llm_d_validate-0.1.1/src/llm_d_validate.egg-info/requires.txt +17 -0
- llm_d_validate-0.1.1/src/llm_d_validate.egg-info/top_level.txt +1 -0
- llm_d_validate-0.1.1/src/llmdv/__init__.py +3 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/__init__.py +47 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/anthropic.py +236 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/cache.py +74 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/chat_choices.py +92 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/chat_reasoning.py +27 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/chat_tools.py +64 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/common.py +209 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/context.py +129 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/contract.py +133 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/effort_rendering.py +49 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/errors.py +235 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/extension_options.py +28 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/field_disposition.py +38 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/frames.py +186 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/header_probe.py +46 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/images.py +34 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/logprobs.py +47 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/messages.py +236 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/openai_contract.py +276 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/prefix.py +34 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/reasoning.py +27 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/render.py +29 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/response_object.py +90 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/responses.py +402 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/samples.py +338 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/structured_output.py +66 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/thinking.py +39 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/token_logprobs.py +87 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/tool_calls.py +185 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/tools.py +52 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/transport.py +72 -0
- llm_d_validate-0.1.1/src/llmdv/assertions/turns.py +68 -0
- llm_d_validate-0.1.1/src/llmdv/cli/__init__.py +5 -0
- llm_d_validate-0.1.1/src/llmdv/cli/analyze_cmd.py +108 -0
- llm_d_validate-0.1.1/src/llmdv/cli/banner.py +443 -0
- llm_d_validate-0.1.1/src/llmdv/cli/compare_cmd.py +394 -0
- llm_d_validate-0.1.1/src/llmdv/cli/contract_display.py +19 -0
- llm_d_validate-0.1.1/src/llmdv/cli/exit_codes.py +74 -0
- llm_d_validate-0.1.1/src/llmdv/cli/job_cmd.py +378 -0
- llm_d_validate-0.1.1/src/llmdv/cli/main.py +191 -0
- llm_d_validate-0.1.1/src/llmdv/cli/notify_cmd.py +78 -0
- llm_d_validate-0.1.1/src/llmdv/cli/plan_cmd.py +206 -0
- llm_d_validate-0.1.1/src/llmdv/cli/profile_cmd.py +261 -0
- llm_d_validate-0.1.1/src/llmdv/cli/publish_cmd.py +275 -0
- llm_d_validate-0.1.1/src/llmdv/cli/style.py +109 -0
- llm_d_validate-0.1.1/src/llmdv/cli/verify_cmd.py +1403 -0
- llm_d_validate-0.1.1/src/llmdv/clients/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/clients/claude_code.py +156 -0
- llm_d_validate-0.1.1/src/llmdv/clients/process.py +100 -0
- llm_d_validate-0.1.1/src/llmdv/clients/relay.py +156 -0
- llm_d_validate-0.1.1/src/llmdv/collect/__init__.py +13 -0
- llm_d_validate-0.1.1/src/llmdv/collect/base.py +72 -0
- llm_d_validate-0.1.1/src/llmdv/collect/kubectl.py +252 -0
- llm_d_validate-0.1.1/src/llmdv/collect/noop.py +31 -0
- llm_d_validate-0.1.1/src/llmdv/compare/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/compare/archive.py +356 -0
- llm_d_validate-0.1.1/src/llmdv/compare/diff.py +461 -0
- llm_d_validate-0.1.1/src/llmdv/compare/report.py +290 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/__init__.py +6 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/alerts.py +229 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/bundle.py +250 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/dashboard.html +317 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/dashboard.py +718 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/journal.py +125 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/outcome.py +264 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/reproduce.py +145 -0
- llm_d_validate-0.1.1/src/llmdv/evidence/stack.py +126 -0
- llm_d_validate-0.1.1/src/llmdv/fleet/__init__.py +1 -0
- llm_d_validate-0.1.1/src/llmdv/fleet/config.py +242 -0
- llm_d_validate-0.1.1/src/llmdv/fleet/prometheus.py +130 -0
- llm_d_validate-0.1.1/src/llmdv/http/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/http/auth_replay.py +110 -0
- llm_d_validate-0.1.1/src/llmdv/http/client.py +465 -0
- llm_d_validate-0.1.1/src/llmdv/http/redact.py +136 -0
- llm_d_validate-0.1.1/src/llmdv/http/repro.py +102 -0
- llm_d_validate-0.1.1/src/llmdv/http/sse.py +293 -0
- llm_d_validate-0.1.1/src/llmdv/identity.py +116 -0
- llm_d_validate-0.1.1/src/llmdv/ingress/__init__.py +9 -0
- llm_d_validate-0.1.1/src/llmdv/ingress/base.py +141 -0
- llm_d_validate-0.1.1/src/llmdv/ingress/signals.py +274 -0
- llm_d_validate-0.1.1/src/llmdv/instruments/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/instruments/header_echo.py +121 -0
- llm_d_validate-0.1.1/src/llmdv/kube.py +318 -0
- llm_d_validate-0.1.1/src/llmdv/log/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/log/filters.py +40 -0
- llm_d_validate-0.1.1/src/llmdv/log/setup.py +229 -0
- llm_d_validate-0.1.1/src/llmdv/log/writer.py +71 -0
- llm_d_validate-0.1.1/src/llmdv/notify.py +191 -0
- llm_d_validate-0.1.1/src/llmdv/output/__init__.py +23 -0
- llm_d_validate-0.1.1/src/llmdv/output/base.py +30 -0
- llm_d_validate-0.1.1/src/llmdv/output/ibm_cos.py +97 -0
- llm_d_validate-0.1.1/src/llmdv/output/local.py +73 -0
- llm_d_validate-0.1.1/src/llmdv/output/manifest.py +48 -0
- llm_d_validate-0.1.1/src/llmdv/output/offload.py +60 -0
- llm_d_validate-0.1.1/src/llmdv/output/paths.py +49 -0
- llm_d_validate-0.1.1/src/llmdv/output/remote.py +184 -0
- llm_d_validate-0.1.1/src/llmdv/output/s3.py +210 -0
- llm_d_validate-0.1.1/src/llmdv/output/source.py +45 -0
- llm_d_validate-0.1.1/src/llmdv/plugin.py +1564 -0
- llm_d_validate-0.1.1/src/llmdv/preflight.py +721 -0
- llm_d_validate-0.1.1/src/llmdv/profile/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/profile/compose.py +281 -0
- llm_d_validate-0.1.1/src/llmdv/profile/errors.py +36 -0
- llm_d_validate-0.1.1/src/llmdv/profile/evolution.py +174 -0
- llm_d_validate-0.1.1/src/llmdv/profile/fleet.py +618 -0
- llm_d_validate-0.1.1/src/llmdv/profile/inspection.py +175 -0
- llm_d_validate-0.1.1/src/llmdv/profile/known.py +163 -0
- llm_d_validate-0.1.1/src/llmdv/profile/loader.py +1869 -0
- llm_d_validate-0.1.1/src/llmdv/profile/parse.py +83 -0
- llm_d_validate-0.1.1/src/llmdv/profile/schema.py +1106 -0
- llm_d_validate-0.1.1/src/llmdv/profile/test_sets.py +106 -0
- llm_d_validate-0.1.1/src/llmdv/profile/topology.py +250 -0
- llm_d_validate-0.1.1/src/llmdv/profile/transport.py +249 -0
- llm_d_validate-0.1.1/src/llmdv/results/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/results/read.py +116 -0
- llm_d_validate-0.1.1/src/llmdv/results/record.py +147 -0
- llm_d_validate-0.1.1/src/llmdv/suites/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/__init__.py +1 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/features.py +484 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/helpers.py +13 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_basic.py +32 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_block_forms.py +57 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_budget.py +12 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_client_fields.py +67 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_conversation.py +175 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_count_parts.py +79 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_count_tokens.py +82 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_error_types.py +67 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_features.py +136 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_layers.py +68 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_shape.py +85 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_stop.py +67 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_stream_timing.py +27 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_streaming.py +22 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_thinking.py +132 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_tool_result_error.py +49 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_tool_stream.py +25 -0
- llm_d_validate-0.1.1/src/llmdv/suites/anthropic_messages/test_version.py +30 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/helpers.py +158 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/sessions.py +160 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_choice.py +38 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_cli.py +99 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_composed.py +125 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_content.py +93 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_heads.py +90 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_ide.py +79 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_images.py +40 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_ingress.py +48 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_parallel.py +101 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_reasoning.py +97 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_render.py +146 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_reuse.py +61 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_salt.py +98 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_sdk.py +242 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_settings.py +134 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_tools.py +208 -0
- llm_d_validate-0.1.1/src/llmdv/suites/cache/test_turns.py +94 -0
- llm_d_validate-0.1.1/src/llmdv/suites/conftest.py +345 -0
- llm_d_validate-0.1.1/src/llmdv/suites/contract/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/contract/conftest.py +32 -0
- llm_d_validate-0.1.1/src/llmdv/suites/contract/test_declarations.py +211 -0
- llm_d_validate-0.1.1/src/llmdv/suites/discovery/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/discovery/test_model_entries.py +169 -0
- llm_d_validate-0.1.1/src/llmdv/suites/discovery/test_models.py +117 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/__init__.py +1 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/helpers.py +31 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/test_byte_fidelity.py +158 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/test_contract.py +136 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/test_forward_compat.py +159 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/test_prompt_pin.py +57 -0
- llm_d_validate-0.1.1/src/llmdv/suites/evolution/test_render_pin.py +58 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/probe.py +18 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/test_effort_rendering.py +87 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/test_extension.py +83 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/test_reasoning_usage.py +17 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/test_structured_output.py +27 -0
- llm_d_validate-0.1.1/src/llmdv/suites/field_options/test_structured_stream.py +35 -0
- llm_d_validate-0.1.1/src/llmdv/suites/fleet/__init__.py +2 -0
- llm_d_validate-0.1.1/src/llmdv/suites/fleet/conftest.py +163 -0
- llm_d_validate-0.1.1/src/llmdv/suites/fleet/helpers.py +108 -0
- llm_d_validate-0.1.1/src/llmdv/suites/fleet/test_config.py +236 -0
- llm_d_validate-0.1.1/src/llmdv/suites/fleet/test_logs.py +162 -0
- llm_d_validate-0.1.1/src/llmdv/suites/fleet/test_metrics.py +210 -0
- llm_d_validate-0.1.1/src/llmdv/suites/images/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/images/test_counting.py +66 -0
- llm_d_validate-0.1.1/src/llmdv/suites/images/test_read.py +91 -0
- llm_d_validate-0.1.1/src/llmdv/suites/long_context/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/long_context/test_window.py +225 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/fields.py +222 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_basic.py +46 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_budget.py +12 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_choices.py +59 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_contract.py +45 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_engine_options.py +205 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_fidelity.py +101 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_fields.py +48 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_limits.py +148 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_logprobs.py +49 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_messages.py +78 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_reasoning.py +59 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_repeats.py +106 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_sdk_helpers.py +64 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_streaming.py +134 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_thinking.py +185 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_chat/test_tool_stream.py +30 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/__init__.py +1 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/fields.py +88 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_basic.py +20 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_contract.py +39 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_engine_options.py +70 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_fields.py +54 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_limits.py +68 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_logprobs.py +48 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_completions/test_prompts.py +167 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_contract.py +155 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/__init__.py +1 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_agent.py +118 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_basic.py +21 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_counts.py +156 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_features.py +137 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_input.py +213 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_object.py +74 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_options.py +75 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_sdk.py +51 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_state.py +94 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_stored_ids.py +130 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_stream_logprobs.py +56 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_streaming.py +29 -0
- llm_d_validate-0.1.1/src/llmdv/suites/openai_responses/test_tool_stream.py +27 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/conftest.py +29 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/helpers.py +194 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/projects.py +217 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/sessions.py +288 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/test_claude_code.py +58 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/test_reuse.py +112 -0
- llm_d_validate-0.1.1/src/llmdv/suites/real_clients/test_sessions.py +250 -0
- llm_d_validate-0.1.1/src/llmdv/suites/render/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/render/helpers.py +25 -0
- llm_d_validate-0.1.1/src/llmdv/suites/render/prefix_fixtures.py +71 -0
- llm_d_validate-0.1.1/src/llmdv/suites/render/test_prefix.py +45 -0
- llm_d_validate-0.1.1/src/llmdv/suites/render/test_render.py +50 -0
- llm_d_validate-0.1.1/src/llmdv/suites/scenarios/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/scenarios/test_clients.py +227 -0
- llm_d_validate-0.1.1/src/llmdv/suites/scenarios/test_concurrency.py +83 -0
- llm_d_validate-0.1.1/src/llmdv/suites/scenarios/test_content.py +44 -0
- llm_d_validate-0.1.1/src/llmdv/suites/streaming/__init__.py +5 -0
- llm_d_validate-0.1.1/src/llmdv/suites/streaming/helpers.py +44 -0
- llm_d_validate-0.1.1/src/llmdv/suites/streaming/test_disconnect.py +89 -0
- llm_d_validate-0.1.1/src/llmdv/suites/streaming/test_framing.py +146 -0
- llm_d_validate-0.1.1/src/llmdv/suites/streaming/test_timing.py +218 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/common.py +159 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/helpers.py +59 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_choice.py +135 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_definitions.py +572 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_history.py +275 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_limits.py +88 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_loop.py +18 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_parallel.py +88 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_parallel_calls.py +103 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_results.py +495 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_streaming.py +230 -0
- llm_d_validate-0.1.1/src/llmdv/suites/tools/test_tool_types.py +147 -0
- llm_d_validate-0.1.1/src/llmdv/suites/transport/__init__.py +1 -0
- llm_d_validate-0.1.1/src/llmdv/suites/transport/helpers.py +37 -0
- llm_d_validate-0.1.1/src/llmdv/suites/transport/test_connection.py +151 -0
- llm_d_validate-0.1.1/src/llmdv/suites/transport/test_exposure.py +103 -0
- llm_d_validate-0.1.1/src/llmdv/suites/transport/test_http.py +408 -0
- llm_d_validate-0.1.1/src/llmdv/suites/transport/test_retry.py +231 -0
- llm_d_validate-0.1.1/src/llmdv/suites/unhappy/__init__.py +0 -0
- llm_d_validate-0.1.1/src/llmdv/suites/unhappy/test_auth_headers.py +21 -0
- llm_d_validate-0.1.1/src/llmdv/suites/unhappy/test_credentials.py +99 -0
- llm_d_validate-0.1.1/src/llmdv/suites/unhappy/test_error_paths.py +266 -0
- llm_d_validate-0.1.1/src/llmdv/suites/unhappy/test_variants.py +199 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/__init__.py +40 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/base.py +358 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/cache.py +41 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/chat_completions.py +353 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/completions.py +84 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/conversation.py +222 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/error_variants.py +149 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/images.py +108 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/messages.py +543 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/openai.py +136 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/render.py +68 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/responses.py +416 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/responses_features.py +215 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/tool_wire.py +595 -0
- llm_d_validate-0.1.1/src/llmdv/surfaces/variants.py +224 -0
- llm_d_validate-0.1.1/tests/test_alert_feed.py +426 -0
- llm_d_validate-0.1.1/tests/test_answer_budget.py +349 -0
- llm_d_validate-0.1.1/tests/test_archive_containment.py +92 -0
- llm_d_validate-0.1.1/tests/test_assertions.py +152 -0
- llm_d_validate-0.1.1/tests/test_attribution_section.py +267 -0
- llm_d_validate-0.1.1/tests/test_auth_replay.py +176 -0
- llm_d_validate-0.1.1/tests/test_banner_headline.py +63 -0
- llm_d_validate-0.1.1/tests/test_budget_for.py +34 -0
- llm_d_validate-0.1.1/tests/test_cache_choice.py +61 -0
- llm_d_validate-0.1.1/tests/test_cache_cli.py +104 -0
- llm_d_validate-0.1.1/tests/test_cache_composed.py +104 -0
- llm_d_validate-0.1.1/tests/test_cache_content.py +52 -0
- llm_d_validate-0.1.1/tests/test_cache_fields.py +53 -0
- llm_d_validate-0.1.1/tests/test_cache_ide.py +68 -0
- llm_d_validate-0.1.1/tests/test_cache_ingress.py +156 -0
- llm_d_validate-0.1.1/tests/test_cache_repeats.py +213 -0
- llm_d_validate-0.1.1/tests/test_cache_reuse.py +286 -0
- llm_d_validate-0.1.1/tests/test_cache_salt.py +59 -0
- llm_d_validate-0.1.1/tests/test_cache_sdk.py +113 -0
- llm_d_validate-0.1.1/tests/test_cache_sessions.py +393 -0
- llm_d_validate-0.1.1/tests/test_cache_settings.py +288 -0
- llm_d_validate-0.1.1/tests/test_cache_withheld.py +239 -0
- llm_d_validate-0.1.1/tests/test_chat_choices.py +79 -0
- llm_d_validate-0.1.1/tests/test_chat_reasoning.py +125 -0
- llm_d_validate-0.1.1/tests/test_chat_tool_loop.py +90 -0
- llm_d_validate-0.1.1/tests/test_chat_tool_stream.py +34 -0
- llm_d_validate-0.1.1/tests/test_cli_style.py +117 -0
- llm_d_validate-0.1.1/tests/test_client_failure_precedence.py +88 -0
- llm_d_validate-0.1.1/tests/test_client_reuse.py +102 -0
- llm_d_validate-0.1.1/tests/test_client_sessions.py +448 -0
- llm_d_validate-0.1.1/tests/test_collect_and_reproduce.py +391 -0
- llm_d_validate-0.1.1/tests/test_compare_profiles.py +121 -0
- llm_d_validate-0.1.1/tests/test_completions.py +147 -0
- llm_d_validate-0.1.1/tests/test_completions_reply_prompt.py +189 -0
- llm_d_validate-0.1.1/tests/test_connection_lost.py +349 -0
- llm_d_validate-0.1.1/tests/test_context_overflow.py +195 -0
- llm_d_validate-0.1.1/tests/test_coverage_graphic.py +46 -0
- llm_d_validate-0.1.1/tests/test_coverage_review.py +190 -0
- llm_d_validate-0.1.1/tests/test_crashed_runs.py +193 -0
- llm_d_validate-0.1.1/tests/test_dashboard.py +534 -0
- llm_d_validate-0.1.1/tests/test_dashboard_replay_payload.py +79 -0
- llm_d_validate-0.1.1/tests/test_declared_layers.py +140 -0
- llm_d_validate-0.1.1/tests/test_delivery_exits.py +316 -0
- llm_d_validate-0.1.1/tests/test_delta_section.py +74 -0
- llm_d_validate-0.1.1/tests/test_disconnect.py +60 -0
- llm_d_validate-0.1.1/tests/test_effort_rendering.py +171 -0
- llm_d_validate-0.1.1/tests/test_error_variants.py +104 -0
- llm_d_validate-0.1.1/tests/test_evidence_journal.py +87 -0
- llm_d_validate-0.1.1/tests/test_evolution_bytes.py +157 -0
- llm_d_validate-0.1.1/tests/test_evolution_contract.py +240 -0
- llm_d_validate-0.1.1/tests/test_evolution_forward.py +200 -0
- llm_d_validate-0.1.1/tests/test_evolution_pins.py +159 -0
- llm_d_validate-0.1.1/tests/test_evolution_render.py +127 -0
- llm_d_validate-0.1.1/tests/test_example_profiles.py +132 -0
- llm_d_validate-0.1.1/tests/test_exception_redaction.py +90 -0
- llm_d_validate-0.1.1/tests/test_exchange_attribution.py +148 -0
- llm_d_validate-0.1.1/tests/test_exit_codes.py +127 -0
- llm_d_validate-0.1.1/tests/test_extension_options.py +47 -0
- llm_d_validate-0.1.1/tests/test_external_logging.py +118 -0
- llm_d_validate-0.1.1/tests/test_fleet_config.py +552 -0
- llm_d_validate-0.1.1/tests/test_fleet_logs.py +258 -0
- llm_d_validate-0.1.1/tests/test_fleet_metrics.py +334 -0
- llm_d_validate-0.1.1/tests/test_fleet_policy.py +99 -0
- llm_d_validate-0.1.1/tests/test_global_options.py +108 -0
- llm_d_validate-0.1.1/tests/test_guide_drift.py +117 -0
- llm_d_validate-0.1.1/tests/test_header_contracts.py +82 -0
- llm_d_validate-0.1.1/tests/test_header_instrument.py +62 -0
- llm_d_validate-0.1.1/tests/test_ibm_cos.py +213 -0
- llm_d_validate-0.1.1/tests/test_identity.py +141 -0
- llm_d_validate-0.1.1/tests/test_image_cases.py +260 -0
- llm_d_validate-0.1.1/tests/test_infra_smoke.py +263 -0
- llm_d_validate-0.1.1/tests/test_ingress_overrides.py +595 -0
- llm_d_validate-0.1.1/tests/test_ingress_selection.py +136 -0
- llm_d_validate-0.1.1/tests/test_ingress_signals.py +452 -0
- llm_d_validate-0.1.1/tests/test_install.py +77 -0
- llm_d_validate-0.1.1/tests/test_job.py +565 -0
- llm_d_validate-0.1.1/tests/test_job_output_failure.py +56 -0
- llm_d_validate-0.1.1/tests/test_json_key_redaction.py +90 -0
- llm_d_validate-0.1.1/tests/test_known_failures.py +541 -0
- llm_d_validate-0.1.1/tests/test_kube_and_remote.py +72 -0
- llm_d_validate-0.1.1/tests/test_kube_cli.py +504 -0
- llm_d_validate-0.1.1/tests/test_layer_reporting.py +100 -0
- llm_d_validate-0.1.1/tests/test_local_output.py +147 -0
- llm_d_validate-0.1.1/tests/test_log_access.py +252 -0
- llm_d_validate-0.1.1/tests/test_logger_writer.py +45 -0
- llm_d_validate-0.1.1/tests/test_logging_streams.py +109 -0
- llm_d_validate-0.1.1/tests/test_long_context.py +242 -0
- llm_d_validate-0.1.1/tests/test_marker_selection.py +373 -0
- llm_d_validate-0.1.1/tests/test_message_tools.py +69 -0
- llm_d_validate-0.1.1/tests/test_messages.py +254 -0
- llm_d_validate-0.1.1/tests/test_messages_block_forms.py +27 -0
- llm_d_validate-0.1.1/tests/test_messages_client_behaviour.py +260 -0
- llm_d_validate-0.1.1/tests/test_messages_conversation.py +235 -0
- llm_d_validate-0.1.1/tests/test_messages_count_parts.py +52 -0
- llm_d_validate-0.1.1/tests/test_messages_count_tokens.py +244 -0
- llm_d_validate-0.1.1/tests/test_messages_error_types.py +109 -0
- llm_d_validate-0.1.1/tests/test_messages_features.py +365 -0
- llm_d_validate-0.1.1/tests/test_messages_shape.py +71 -0
- llm_d_validate-0.1.1/tests/test_messages_stop.py +61 -0
- llm_d_validate-0.1.1/tests/test_messages_streaming.py +412 -0
- llm_d_validate-0.1.1/tests/test_messages_tool_result_error.py +30 -0
- llm_d_validate-0.1.1/tests/test_model_entries.py +169 -0
- llm_d_validate-0.1.1/tests/test_model_id_env.py +160 -0
- llm_d_validate-0.1.1/tests/test_model_listing.py +36 -0
- llm_d_validate-0.1.1/tests/test_notify.py +210 -0
- llm_d_validate-0.1.1/tests/test_offload.py +61 -0
- llm_d_validate-0.1.1/tests/test_openai_contract.py +1145 -0
- llm_d_validate-0.1.1/tests/test_outcome.py +327 -0
- llm_d_validate-0.1.1/tests/test_outcome_recovery.py +85 -0
- llm_d_validate-0.1.1/tests/test_plan.py +250 -0
- llm_d_validate-0.1.1/tests/test_prefix_stability.py +35 -0
- llm_d_validate-0.1.1/tests/test_preflight.py +389 -0
- llm_d_validate-0.1.1/tests/test_profile_extends.py +700 -0
- llm_d_validate-0.1.1/tests/test_profile_imports.py +56 -0
- llm_d_validate-0.1.1/tests/test_profile_inspection.py +159 -0
- llm_d_validate-0.1.1/tests/test_profile_loader.py +940 -0
- llm_d_validate-0.1.1/tests/test_profile_reference.py +115 -0
- llm_d_validate-0.1.1/tests/test_profile_replay.py +79 -0
- llm_d_validate-0.1.1/tests/test_publication_sources.py +230 -0
- llm_d_validate-0.1.1/tests/test_quiet_fakes.py +36 -0
- llm_d_validate-0.1.1/tests/test_real_clients.py +292 -0
- llm_d_validate-0.1.1/tests/test_reasoning_usage.py +56 -0
- llm_d_validate-0.1.1/tests/test_redact.py +67 -0
- llm_d_validate-0.1.1/tests/test_redacted_run_files.py +100 -0
- llm_d_validate-0.1.1/tests/test_release_gate.py +105 -0
- llm_d_validate-0.1.1/tests/test_render.py +54 -0
- llm_d_validate-0.1.1/tests/test_repro_and_results.py +160 -0
- llm_d_validate-0.1.1/tests/test_requirements_lock.py +41 -0
- llm_d_validate-0.1.1/tests/test_response_agent.py +37 -0
- llm_d_validate-0.1.1/tests/test_response_counts.py +169 -0
- llm_d_validate-0.1.1/tests/test_response_features.py +153 -0
- llm_d_validate-0.1.1/tests/test_response_input.py +127 -0
- llm_d_validate-0.1.1/tests/test_response_object.py +55 -0
- llm_d_validate-0.1.1/tests/test_response_options.py +67 -0
- llm_d_validate-0.1.1/tests/test_response_state.py +57 -0
- llm_d_validate-0.1.1/tests/test_response_stored_ids.py +92 -0
- llm_d_validate-0.1.1/tests/test_response_tools.py +58 -0
- llm_d_validate-0.1.1/tests/test_responses.py +356 -0
- llm_d_validate-0.1.1/tests/test_responses_streaming.py +518 -0
- llm_d_validate-0.1.1/tests/test_results_versions.py +419 -0
- llm_d_validate-0.1.1/tests/test_run_comparison.py +1571 -0
- llm_d_validate-0.1.1/tests/test_s3_prefix_compatibility.py +53 -0
- llm_d_validate-0.1.1/tests/test_s3_sink.py +247 -0
- llm_d_validate-0.1.1/tests/test_samples.py +364 -0
- llm_d_validate-0.1.1/tests/test_scenarios_clients.py +295 -0
- llm_d_validate-0.1.1/tests/test_scenarios_concurrency.py +45 -0
- llm_d_validate-0.1.1/tests/test_scenarios_content.py +41 -0
- llm_d_validate-0.1.1/tests/test_sdk_clients.py +68 -0
- llm_d_validate-0.1.1/tests/test_selection_docs.py +72 -0
- llm_d_validate-0.1.1/tests/test_serial_verify.py +83 -0
- llm_d_validate-0.1.1/tests/test_sse.py +165 -0
- llm_d_validate-0.1.1/tests/test_stack_agnostic_core.py +153 -0
- llm_d_validate-0.1.1/tests/test_stack_identity.py +328 -0
- llm_d_validate-0.1.1/tests/test_stream_framing.py +336 -0
- llm_d_validate-0.1.1/tests/test_stream_timing.py +120 -0
- llm_d_validate-0.1.1/tests/test_structured_output.py +328 -0
- llm_d_validate-0.1.1/tests/test_structured_streams.py +53 -0
- llm_d_validate-0.1.1/tests/test_suites_against_fake.py +1044 -0
- llm_d_validate-0.1.1/tests/test_surfaces.py +180 -0
- llm_d_validate-0.1.1/tests/test_test_sets.py +350 -0
- llm_d_validate-0.1.1/tests/test_thinking_options.py +333 -0
- llm_d_validate-0.1.1/tests/test_throttling.py +156 -0
- llm_d_validate-0.1.1/tests/test_tls.py +62 -0
- llm_d_validate-0.1.1/tests/test_tool_cases.py +940 -0
- llm_d_validate-0.1.1/tests/test_topology.py +704 -0
- llm_d_validate-0.1.1/tests/test_transport_contract.py +462 -0
- llm_d_validate-0.1.1/tests/test_transport_http.py +182 -0
- llm_d_validate-0.1.1/tests/test_transport_profile.py +156 -0
- llm_d_validate-0.1.1/tests/test_trigger.py +332 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: llm-d-validate
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Roll out llm-d with confidence: contract and regression testing for deployed llm-d model serving stacks
|
|
5
|
+
Author: The llm-d Authors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://llm-d.ai
|
|
8
|
+
Project-URL: Documentation, https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/getting-started.md
|
|
9
|
+
Project-URL: Repository, https://github.com/llm-d-incubation/llm-d-validate
|
|
10
|
+
Project-URL: Issues, https://github.com/llm-d-incubation/llm-d-validate/issues
|
|
11
|
+
Project-URL: Releases, https://github.com/llm-d-incubation/llm-d-validate/releases
|
|
12
|
+
Keywords: llm-d,llm,inference,validation,testing
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Environment :: Console
|
|
15
|
+
Classifier: Framework :: Pytest
|
|
16
|
+
Classifier: Intended Audience :: Developers
|
|
17
|
+
Classifier: Intended Audience :: System Administrators
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python :: 3
|
|
20
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
27
|
+
Classifier: Topic :: Software Development :: Testing
|
|
28
|
+
Classifier: Topic :: System :: Monitoring
|
|
29
|
+
Requires-Python: >=3.10
|
|
30
|
+
Description-Content-Type: text/markdown
|
|
31
|
+
License-File: LICENSE
|
|
32
|
+
Requires-Dist: pytest>=8
|
|
33
|
+
Requires-Dist: pyyaml>=6
|
|
34
|
+
Requires-Dist: httpx>=0.27
|
|
35
|
+
Requires-Dist: jsonschema>=4.18
|
|
36
|
+
Requires-Dist: openai==3.11.0
|
|
37
|
+
Requires-Dist: anthropic==1.11.0
|
|
38
|
+
Provides-Extra: s3
|
|
39
|
+
Requires-Dist: boto3>=1.36; extra == "s3"
|
|
40
|
+
Provides-Extra: ibm-cos
|
|
41
|
+
Requires-Dist: ibm-cos-sdk>=2.16.2; extra == "ibm-cos"
|
|
42
|
+
Provides-Extra: dev
|
|
43
|
+
Requires-Dist: ruff==0.16.9; extra == "dev"
|
|
44
|
+
Requires-Dist: pre-commit>=4.1; extra == "dev"
|
|
45
|
+
Requires-Dist: pytest-xdist>=3.6; extra == "dev"
|
|
46
|
+
Dynamic: license-file
|
|
47
|
+
|
|
48
|
+
<h1 align="center">llm-d-validate</h1>
|
|
49
|
+
|
|
50
|
+
<p align="center">
|
|
51
|
+
<b>Roll out <a href="https://github.com/llm-d/llm-d">llm-d</a> with confidence.</b>
|
|
52
|
+
<br><br>
|
|
53
|
+
Demonstrate that your gateway, router, and engine behave as their APIs define.<br>
|
|
54
|
+
Validation for deployed llm-d model serving stacks.
|
|
55
|
+
</p>
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/actions/workflows/offline-tests.yaml?query=branch%3Amain"><img alt="offline tests" src="https://github.com/llm-d-incubation/llm-d-validate/actions/workflows/offline-tests.yaml/badge.svg?branch=main"></a>
|
|
59
|
+
<img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10%2B-3776AB">
|
|
60
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/LICENSE"><img alt="License: Apache 2.0" src="https://img.shields.io/badge/license-Apache%202.0-blue"></a>
|
|
61
|
+
</p>
|
|
62
|
+
|
|
63
|
+
<p align="center">
|
|
64
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate#quick-start-test-a-deployed-llm-d-guide">Quick start</a> ·
|
|
65
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/README.md">Documentation</a> ·
|
|
66
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/cli.md">CLI reference</a> ·
|
|
67
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/test-suites.md">Test suites</a> ·
|
|
68
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/CONTRIBUTING.md">Contributing</a>
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
## How it works
|
|
72
|
+
|
|
73
|
+
`llmdv` is a functional validation framework for deployed model-serving infrastructure. It
|
|
74
|
+
validates gateways, routers and engines against explicit API and deployment expectations,
|
|
75
|
+
identifies regressions across runs, and preserves the evidence needed to investigate failures.
|
|
76
|
+
Built for llm-d, it also supports other OpenAI- and Anthropic-compatible stacks.
|
|
77
|
+
|
|
78
|
+
- **Validate behavior across the serving stack.** Test each reachable layer through Chat,
|
|
79
|
+
Completions, Messages and Responses, covering generation, streaming, tool calls, caching,
|
|
80
|
+
headers and error handling.
|
|
81
|
+
- **Define the contract for your deployment.** Profiles describe the model, topology, APIs and
|
|
82
|
+
capabilities your stack should support. Select focused checks for a guide or build broader
|
|
83
|
+
coverage for production requirements.
|
|
84
|
+
- **Detect regressions, investigate and track failures.** Compare outcomes across layers and
|
|
85
|
+
runs, trace failures to recorded checks and replayable evidence, and link known failures to
|
|
86
|
+
issues so subsequent runs show whether they persist or their fixes have landed.
|
|
87
|
+
- **Integrate validation into your operations.** Run checks locally or unattended, explore
|
|
88
|
+
results in a dashboard, publish evidence to S3-compatible storage and deliver Slack
|
|
89
|
+
notifications.
|
|
90
|
+
- **Extend coverage within one framework.** Add profiles, test sets, cases, APIs, clients and
|
|
91
|
+
assertions while retaining consistent execution, evidence, comparison and reporting.
|
|
92
|
+
|
|
93
|
+
> [!NOTE]
|
|
94
|
+
> `llmdv` validates existing infrastructure; it never deploys, patches, scales or restarts the
|
|
95
|
+
> serving stack. Optional cluster access uses a read-only verb allowlist. Credentials are
|
|
96
|
+
> supplied through environment variables and redacted from logs and recorded evidence.
|
|
97
|
+
|
|
98
|
+
<p align="center">
|
|
99
|
+
<img src="docs/images/llmdv-overview.gif" width="100%" alt="Animated overview: a profile defines the test plan; llmdv sends requests to the reachable gateway, router and engine, records verdicts and evidence, and publishes results and notifications.">
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
## Quick start: test a deployed llm-d guide
|
|
103
|
+
|
|
104
|
+
You need Python 3.10+, Git, a deployed endpoint and a profile matching its configuration.
|
|
105
|
+
From a clean machine:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
git clone https://github.com/llm-d-incubation/llm-d-validate.git
|
|
109
|
+
cd llm-d-validate
|
|
110
|
+
./install.sh
|
|
111
|
+
source .venv/bin/activate
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Choose your profile from the [guide catalog](profiles/llm-d/README.md). For example, if you
|
|
115
|
+
have the optimized-baseline Qwen3-32B/vLLM deployment with parsers, set its URL and run smoke:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
export P=profiles/llm-d/optimized-baseline/vllm-qwen3-32b-parsers-standalone.yaml
|
|
119
|
+
export LLMDV_ROUTER_URL='https://your-router.example'
|
|
120
|
+
llmdv plan --profile "$P" --test-set smoke
|
|
121
|
+
llmdv verify --profile "$P" --test-set smoke --analyze
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Replace the example URL with your reachable router. Smoke checks discovery and basic generation
|
|
125
|
+
on the declared APIs; it does not establish full correctness. The command prints the run
|
|
126
|
+
folder, containing `summary.md` and `dashboard.html`. Follow [Getting started](docs/getting-started.md)
|
|
127
|
+
to interpret the result and run the profile's default coverage.
|
|
128
|
+
|
|
129
|
+
## Test your own stack
|
|
130
|
+
|
|
131
|
+
Have another gateway, router or engine? Start with the
|
|
132
|
+
[custom-stack walkthrough](docs/getting-started.md#run-your-own-stack). It uses a minimal profile
|
|
133
|
+
and your endpoint's model ID, URL and credential. One reachable endpoint is enough; additional
|
|
134
|
+
layers are optional.
|
|
135
|
+
|
|
136
|
+
## What it tests
|
|
137
|
+
|
|
138
|
+
The [suite catalog](docs/test-suites.md) describes the API, model behavior, error-path and
|
|
139
|
+
change-detection checks, and the declarations that enable them. A profile selects applicable
|
|
140
|
+
checks; a passing subset says nothing about checks it did not execute. Guide defaults focus on
|
|
141
|
+
the guide’s promises. Users can extend profiles, select broader suites and add cases as their
|
|
142
|
+
API and production requirements grow. [Plan that progression](docs/getting-started.md#widen-coverage);
|
|
143
|
+
`--full-suite` covers the existing library, not every possible API or production requirement.
|
|
144
|
+
|
|
145
|
+
<p align="center">
|
|
146
|
+
<img src="docs/images/llmdv-coverage.svg" width="100%" alt="Coverage by suite: APIs, model behavior, failure paths, contracts and change detection.">
|
|
147
|
+
</p>
|
|
148
|
+
|
|
149
|
+
## Learn more
|
|
150
|
+
|
|
151
|
+
- [Documentation by task](docs/README.md): first run, profile selection, results and automation.
|
|
152
|
+
- [Choose a profile](profiles/README.md) or [write one](docs/writing-profiles.md).
|
|
153
|
+
- [Select tests](docs/cli.md#test-sets-and-coverage) and [compare runs](docs/compare.md).
|
|
154
|
+
- [Contribute](CONTRIBUTING.md): add cases, profiles or documentation.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<h1 align="center">llm-d-validate</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<b>Roll out <a href="https://github.com/llm-d/llm-d">llm-d</a> with confidence.</b>
|
|
5
|
+
<br><br>
|
|
6
|
+
Demonstrate that your gateway, router, and engine behave as their APIs define.<br>
|
|
7
|
+
Validation for deployed llm-d model serving stacks.
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
<p align="center">
|
|
11
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/actions/workflows/offline-tests.yaml?query=branch%3Amain"><img alt="offline tests" src="https://github.com/llm-d-incubation/llm-d-validate/actions/workflows/offline-tests.yaml/badge.svg?branch=main"></a>
|
|
12
|
+
<img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10%2B-3776AB">
|
|
13
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/LICENSE"><img alt="License: Apache 2.0" src="https://img.shields.io/badge/license-Apache%202.0-blue"></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate#quick-start-test-a-deployed-llm-d-guide">Quick start</a> ·
|
|
18
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/README.md">Documentation</a> ·
|
|
19
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/cli.md">CLI reference</a> ·
|
|
20
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/test-suites.md">Test suites</a> ·
|
|
21
|
+
<a href="https://github.com/llm-d-incubation/llm-d-validate/blob/main/CONTRIBUTING.md">Contributing</a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
## How it works
|
|
25
|
+
|
|
26
|
+
`llmdv` is a functional validation framework for deployed model-serving infrastructure. It
|
|
27
|
+
validates gateways, routers and engines against explicit API and deployment expectations,
|
|
28
|
+
identifies regressions across runs, and preserves the evidence needed to investigate failures.
|
|
29
|
+
Built for llm-d, it also supports other OpenAI- and Anthropic-compatible stacks.
|
|
30
|
+
|
|
31
|
+
- **Validate behavior across the serving stack.** Test each reachable layer through Chat,
|
|
32
|
+
Completions, Messages and Responses, covering generation, streaming, tool calls, caching,
|
|
33
|
+
headers and error handling.
|
|
34
|
+
- **Define the contract for your deployment.** Profiles describe the model, topology, APIs and
|
|
35
|
+
capabilities your stack should support. Select focused checks for a guide or build broader
|
|
36
|
+
coverage for production requirements.
|
|
37
|
+
- **Detect regressions, investigate and track failures.** Compare outcomes across layers and
|
|
38
|
+
runs, trace failures to recorded checks and replayable evidence, and link known failures to
|
|
39
|
+
issues so subsequent runs show whether they persist or their fixes have landed.
|
|
40
|
+
- **Integrate validation into your operations.** Run checks locally or unattended, explore
|
|
41
|
+
results in a dashboard, publish evidence to S3-compatible storage and deliver Slack
|
|
42
|
+
notifications.
|
|
43
|
+
- **Extend coverage within one framework.** Add profiles, test sets, cases, APIs, clients and
|
|
44
|
+
assertions while retaining consistent execution, evidence, comparison and reporting.
|
|
45
|
+
|
|
46
|
+
> [!NOTE]
|
|
47
|
+
> `llmdv` validates existing infrastructure; it never deploys, patches, scales or restarts the
|
|
48
|
+
> serving stack. Optional cluster access uses a read-only verb allowlist. Credentials are
|
|
49
|
+
> supplied through environment variables and redacted from logs and recorded evidence.
|
|
50
|
+
|
|
51
|
+
<p align="center">
|
|
52
|
+
<img src="docs/images/llmdv-overview.gif" width="100%" alt="Animated overview: a profile defines the test plan; llmdv sends requests to the reachable gateway, router and engine, records verdicts and evidence, and publishes results and notifications.">
|
|
53
|
+
</p>
|
|
54
|
+
|
|
55
|
+
## Quick start: test a deployed llm-d guide
|
|
56
|
+
|
|
57
|
+
You need Python 3.10+, Git, a deployed endpoint and a profile matching its configuration.
|
|
58
|
+
From a clean machine:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
git clone https://github.com/llm-d-incubation/llm-d-validate.git
|
|
62
|
+
cd llm-d-validate
|
|
63
|
+
./install.sh
|
|
64
|
+
source .venv/bin/activate
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Choose your profile from the [guide catalog](profiles/llm-d/README.md). For example, if you
|
|
68
|
+
have the optimized-baseline Qwen3-32B/vLLM deployment with parsers, set its URL and run smoke:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
export P=profiles/llm-d/optimized-baseline/vllm-qwen3-32b-parsers-standalone.yaml
|
|
72
|
+
export LLMDV_ROUTER_URL='https://your-router.example'
|
|
73
|
+
llmdv plan --profile "$P" --test-set smoke
|
|
74
|
+
llmdv verify --profile "$P" --test-set smoke --analyze
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Replace the example URL with your reachable router. Smoke checks discovery and basic generation
|
|
78
|
+
on the declared APIs; it does not establish full correctness. The command prints the run
|
|
79
|
+
folder, containing `summary.md` and `dashboard.html`. Follow [Getting started](docs/getting-started.md)
|
|
80
|
+
to interpret the result and run the profile's default coverage.
|
|
81
|
+
|
|
82
|
+
## Test your own stack
|
|
83
|
+
|
|
84
|
+
Have another gateway, router or engine? Start with the
|
|
85
|
+
[custom-stack walkthrough](docs/getting-started.md#run-your-own-stack). It uses a minimal profile
|
|
86
|
+
and your endpoint's model ID, URL and credential. One reachable endpoint is enough; additional
|
|
87
|
+
layers are optional.
|
|
88
|
+
|
|
89
|
+
## What it tests
|
|
90
|
+
|
|
91
|
+
The [suite catalog](docs/test-suites.md) describes the API, model behavior, error-path and
|
|
92
|
+
change-detection checks, and the declarations that enable them. A profile selects applicable
|
|
93
|
+
checks; a passing subset says nothing about checks it did not execute. Guide defaults focus on
|
|
94
|
+
the guide’s promises. Users can extend profiles, select broader suites and add cases as their
|
|
95
|
+
API and production requirements grow. [Plan that progression](docs/getting-started.md#widen-coverage);
|
|
96
|
+
`--full-suite` covers the existing library, not every possible API or production requirement.
|
|
97
|
+
|
|
98
|
+
<p align="center">
|
|
99
|
+
<img src="docs/images/llmdv-coverage.svg" width="100%" alt="Coverage by suite: APIs, model behavior, failure paths, contracts and change detection.">
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
## Learn more
|
|
103
|
+
|
|
104
|
+
- [Documentation by task](docs/README.md): first run, profile selection, results and automation.
|
|
105
|
+
- [Choose a profile](profiles/README.md) or [write one](docs/writing-profiles.md).
|
|
106
|
+
- [Select tests](docs/cli.md#test-sets-and-coverage) and [compare runs](docs/compare.md).
|
|
107
|
+
- [Contribute](CONTRIBUTING.md): add cases, profiles or documentation.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
# Pinned for reproducible package and container builds. PEP 639 needs at least 77.
|
|
3
|
+
requires = ["setuptools==84.2.1"]
|
|
4
|
+
build-backend = "setuptools.build_meta"
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "llm-d-validate"
|
|
8
|
+
dynamic = ["version"] # src/llmdv/__init__.py's __version__, the one place it is written
|
|
9
|
+
description = "Roll out llm-d with confidence: contract and regression testing for deployed llm-d model serving stacks"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
license = "Apache-2.0"
|
|
13
|
+
license-files = ["LICENSE"]
|
|
14
|
+
authors = [{ name = "The llm-d Authors" }]
|
|
15
|
+
keywords = ["llm-d", "llm", "inference", "validation", "testing"]
|
|
16
|
+
# Python versions: only those CI's offline-tests matrix runs.
|
|
17
|
+
classifiers = [
|
|
18
|
+
"Development Status :: 3 - Alpha",
|
|
19
|
+
"Environment :: Console",
|
|
20
|
+
"Framework :: Pytest",
|
|
21
|
+
"Intended Audience :: Developers",
|
|
22
|
+
"Intended Audience :: System Administrators",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Programming Language :: Python :: 3",
|
|
25
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
26
|
+
"Programming Language :: Python :: 3.10",
|
|
27
|
+
"Programming Language :: Python :: 3.11",
|
|
28
|
+
"Programming Language :: Python :: 3.12",
|
|
29
|
+
"Programming Language :: Python :: 3.13",
|
|
30
|
+
"Programming Language :: Python :: 3.14",
|
|
31
|
+
"Programming Language :: Python :: 3.15",
|
|
32
|
+
"Topic :: Software Development :: Testing",
|
|
33
|
+
"Topic :: System :: Monitoring",
|
|
34
|
+
]
|
|
35
|
+
dependencies = [
|
|
36
|
+
"pytest>=8",
|
|
37
|
+
"pyyaml>=6",
|
|
38
|
+
"httpx>=0.27",
|
|
39
|
+
"jsonschema>=4.18", # Includes rpds-py, a compiled extension, via referencing.
|
|
40
|
+
# Pinned exactly on purpose: these stand in for what a real client ships, and a
|
|
41
|
+
# floating range would make an SDK-compatibility result meaningless. The LiteLLM
|
|
42
|
+
# 1.81.9 -> 1.102.0 reasoning-delta divergence is the precedent.
|
|
43
|
+
"openai==3.11.0",
|
|
44
|
+
"anthropic==1.11.0",
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
[project.optional-dependencies]
|
|
48
|
+
# Publishing to S3 or an S3-compatible store with AWS-style credentials, which is also how
|
|
49
|
+
# IBM COS is reached with HMAC keys. 1.36 is the floor for the checksum settings in
|
|
50
|
+
# llmdv/output/s3.py.
|
|
51
|
+
s3 = ["boto3>=1.36"]
|
|
52
|
+
# Only for LLMDV_S3_AUTH=ibm-iam, which authenticates with an IAM API key instead. Separate from
|
|
53
|
+
# `s3` because ibm-cos-sdk is a boto3 fork of comparable size and `llmdv/output/ibm_cos.py` is
|
|
54
|
+
# the only module that imports it -- an AWS-credentialled install should not carry it.
|
|
55
|
+
ibm-cos = ["ibm-cos-sdk>=2.16.2"]
|
|
56
|
+
# Keep Ruff in sync with the version pinned in .pre-commit-config.yaml. pytest-xdist runs
|
|
57
|
+
# llmdv's own offline tests in parallel (`pytest tests -n auto`); it is only for developers, and
|
|
58
|
+
# `llmdv verify` blocks it, so live verification stays serial wherever it is installed.
|
|
59
|
+
dev = ["ruff==0.16.9", "pre-commit>=4.1", "pytest-xdist>=3.6"]
|
|
60
|
+
|
|
61
|
+
[project.urls]
|
|
62
|
+
Homepage = "https://llm-d.ai"
|
|
63
|
+
Documentation = "https://github.com/llm-d-incubation/llm-d-validate/blob/main/docs/getting-started.md"
|
|
64
|
+
Repository = "https://github.com/llm-d-incubation/llm-d-validate"
|
|
65
|
+
Issues = "https://github.com/llm-d-incubation/llm-d-validate/issues"
|
|
66
|
+
Releases = "https://github.com/llm-d-incubation/llm-d-validate/releases"
|
|
67
|
+
|
|
68
|
+
[project.scripts]
|
|
69
|
+
llmdv = "llmdv.cli.main:main"
|
|
70
|
+
|
|
71
|
+
[project.entry-points.pytest11]
|
|
72
|
+
llmdv = "llmdv.plugin"
|
|
73
|
+
|
|
74
|
+
[tool.setuptools.dynamic]
|
|
75
|
+
version = { attr = "llmdv.__version__" }
|
|
76
|
+
|
|
77
|
+
[tool.setuptools.packages.find]
|
|
78
|
+
where = ["src"]
|
|
79
|
+
|
|
80
|
+
[tool.setuptools.package-data]
|
|
81
|
+
llmdv = ["suites/**/*.py", "evidence/*.html"]
|
|
82
|
+
|
|
83
|
+
[tool.ruff]
|
|
84
|
+
line-length = 100
|
|
85
|
+
target-version = "py310"
|
|
86
|
+
|
|
87
|
+
[tool.ruff.lint]
|
|
88
|
+
# T20 bans print(): all output goes through the logger tree. See llmdv/log/setup.py.
|
|
89
|
+
select = ["E", "F", "W", "I", "T20", "B", "UP"]
|