pydantic-ai/tests
pydanty[bot] cd4a323d49
Normalize CRLF in the pax theme picker shell test so it passes on rich 15 (#14078)
Co-authored-by: pydanty <pydanty@pydantic.dev>
2026-11-20 10:11:24 +00:00
..
assets Send documents of any media type mimetypes knows, with the format taken from it (#12365) 2026-11-05 14:41:52 +00:00
benchmarks Filter CodSpeed runs by benchmark dependencies (#11194) 2026-10-26 16:48:00 +00:00
cassettes Support Gemini 4 Neon (gemini-4-neon) on GoogleModel (#13928) 2026-11-19 00:51:24 +00:00
durable_exec Warn with DeprecatedModelWarning when a request targets a model Anthropic or OpenAI has deprecated (#14038) 2026-11-20 01:09:12 +00:00
evals Keep include_baggage in control of online evaluation event baggage on logfire 6 (#14076) 2026-11-20 09:46:38 +00:00
example_modules Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
ext chore: use specific pyright: ignore rule codes and document run_stream_sync under durable execution (#6646) 2026-07-23 16:37:36 -05:00
graph Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
harness Fix flaky test_a_deletion_ending_a_command_is_unavailable by letting only the deletion end its command (#14058) 2026-11-20 00:03:43 +00:00
json_schema_test_suite Rename $refs under every JSON schema keyword in merge_json_schema_defs, and keep TestModel arguments valid for their schemas (#13993) 2026-11-19 20:54:50 +00:00
models Check the OpenAI conversation before openai_conversation_id trims history through a response whose stream dropped (#14055) 2026-11-20 02:06:41 +00:00
pax Normalize CRLF in the pax theme picker shell test so it passes on rich 15 (#14078) 2026-11-20 10:11:24 +00:00
profiles Warn with DeprecatedModelWarning when a request targets a model Anthropic or OpenAI has deprecated (#14038) 2026-11-20 01:09:12 +00:00
providers Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
realtime Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
ui_roundtrip [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
v2 Replay signed and encrypted history data to providers with the same canonical_system (#11504) 2026-10-27 22:51:55 +00:00
__init__.py Uv workspaces and pydantic-ai-slim (#92) 2024-11-25 21:54:23 +00:00
_inline_snapshot.py Complete the Python 3.11 documentation and tooling cleanup (#9891) 2026-10-06 08:43:27 -04:00
_ports.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
_timeouts.py Fix 16 CI flakes in the tests, so a runner stall no longer changes their outcome (#12933) 2026-11-16 08:58:53 +00:00
AGENTS.md Add tests/capability_cases.py, one case per capability, with contracts that fail when a capability breaks under prefix_tools(), an unset or custom id, a repeated configuration, the run's usage limits or a function-supplied workspace (#14002) 2026-11-19 17:08:28 +00:00
append_only.py Add tests/capability_cases.py, one case per capability, with contracts that fail when a capability breaks under prefix_tools(), an unset or custom id, a repeated configuration, the run's usage limits or a function-supplied workspace (#14002) 2026-11-19 17:08:28 +00:00
batch_utils.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
batch_vcr_utils.py Add provider batch API support with a BatchModelRequests capability and a get_wrapper_model capability hook (#10672) 2026-10-27 01:06:09 +00:00
canonical_system_utils.py Carry ModelResponse.canonical_system through the Vercel AI and AG-UI event streams (#13134) 2026-11-11 23:35:52 +00:00
capability_cases.py Add tests/capability_cases.py, one case per capability, with contracts that fail when a capability breaks under prefix_tools(), an unset or custom id, a repeated configuration, the run's usage limits or a function-supplied workspace (#14002) 2026-11-19 17:08:28 +00:00
capability_models.py Split tests/test_capabilities.py by topic (#7772) 2026-08-28 23:07:28 +00:00
cassette_hooks.py Fall back to 'auto' or raise ModelRequestRejectedError for forced tool choice on OpenRouter's qwen/qwen3.8-flash, which rejects forcing while reasoning (#12262) 2026-11-17 18:05:39 +00:00
cassette_utils.py Check the prompt-cache prefix of FunctionModel and TestModel conversations (#11252) 2026-10-27 18:55:56 +00:00
CLAUDE.md Add AGENTS.md rules extracted from past PR comments (#4214) 2026-02-05 18:58:42 +00:00
clock_utils.py Add a first_event_timeout model setting so a stream that never starts can fall back (#11582) 2026-10-30 22:09:59 +00:00
conftest.py Warn with DeprecatedModelWarning when a request targets a model Anthropic or OpenAI has deprecated (#14038) 2026-11-20 01:09:12 +00:00
continuation_utils.py Target py311 in Ruff and modernize compatible syntax (#9854) 2026-10-06 07:07:09 -04:00
cost_guards.py Import anthropic, openai and hypothesis before collection when PYTEST_COLLECT_BUDGET_SECONDS is set (#12947) 2026-11-09 14:52:04 +00:00
docs_model_aliases.py Name models in the docs through tiered aliases defined in docs/model_aliases/aliases.json (#10250) 2026-10-14 20:48:29 -04:00
function_model_prefix.py Offer each on-demand capability as a route of its own on a DecisionModel, and keep the capability catalog out of its question framing (#8759) 2026-11-13 02:29:18 +00:00
gc_isolation.py Isolate each test's garbage collection and remove timing races from flaky tests (#12523) 2026-11-05 11:24:43 +00:00
history_invariants.py Add Hypothesis property tests for message history repair, serialization and provider request mapping (#11129) 2026-10-24 18:13:39 +00:00
history_strategies.py Add Hypothesis property tests for message history repair, serialization and provider request mapping (#11129) 2026-10-24 18:13:39 +00:00
import_examples.py Target py311 in Ruff and modernize compatible syntax (#9854) 2026-10-06 07:07:09 -04:00
kw_only_walker.py Deprecate RetryPromptPart in favor of ToolReturnPart(outcome='retried') and RetryFeedbackPart (#8094) 2026-10-21 14:05:57 -06:00
manifests.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
mcp_server.py Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
mcp_task_server.py Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
model_lifecycle_utils.py Context-manage models rebuilt inside durable operations (#7954) 2026-08-31 16:39:01 -06:00
parts_from_messages.py Expose .messages, .toolsets types in top-level pydantic_ai (#2957) 2025-09-30 07:06:10 -06:00
realtime_connections.py Make RealtimeConnection yield lifecycle events through a public pydantic_ai.realtime.lifecycle module (#10353) 2026-10-16 10:48:30 -06:00
refactor_capture.py [complexity] Record what realtime sessions do above their connections in tests/refactor_capture.py (#13757) 2026-11-17 21:42:55 +00:00
span_schema.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
temporal_utils.py Use the CI-cached Temporal dev-server binary in the harness Temporal tests (#9650) 2026-10-02 12:15:13 -05:00
test_ag_ui.py Handle deeply nested JSON and oversized integers like invalid JSON in AGUIAdapter, VercelAIAdapter and ArgumentCorrectness (#13952) 2026-11-19 06:17:13 +00:00
test_agent.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_agent_output_schemas.py Add DeferredToolRequests.validated_args so an approver sees the arguments a deferred tool call will run with (#13693) 2026-11-18 00:09:08 +00:00
test_boolean_schema_defs.py Preserve boolean $defs semantics during schema transformation (#10714) 2026-10-20 13:22:35 -05:00
test_builtin_tools.py Add realtime speech-to-speech support with Agent.realtime(), with support for OpenAI, Gemini, Azure, and xAI (#6324) 2026-08-11 08:05:41 -06:00
test_cache_prefix_invariant.py Add on_change='append' to preserve dynamic instruction prefixes (#8188) 2026-10-20 10:41:49 -06:00
test_cache_prefix_stability.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_cache_setting.py Add OpenAI gpt-6.2-sol and gpt-6.2-astra model support (#13760) 2026-11-17 21:20:04 +00:00
test_canonical_system.py Skip an empty ThinkingPart instead of sending bare think tags when replaying assistant history to OpenAI and Bedrock (#13396) 2026-11-16 01:20:26 +00:00
test_canonical_system_live.py Replay signed and encrypted history data to providers with the same canonical_system (#11504) 2026-10-27 22:51:55 +00:00
test_capabilities.py Cache opaque Prefect run IDs across retries (#11896) 2026-11-13 21:55:52 +00:00
test_capability_cases.py Add tests/capability_cases.py, one case per capability, with contracts that fail when a capability breaks under prefix_tools(), an unset or custom id, a repeated configuration, the run's usage limits or a function-supplied workspace (#14002) 2026-11-19 17:08:28 +00:00
test_capability_combine.py Add tests/capability_cases.py, one case per capability, with contracts that fail when a capability breaks under prefix_tools(), an unset or custom id, a repeated configuration, the run's usage limits or a function-supplied workspace (#14002) 2026-11-19 17:08:28 +00:00
test_capability_deferred_loading.py List valid ids for unknown load_capability ids and make loads of already-active capabilities a no-op (#11937) 2026-11-17 20:22:27 +00:00
test_capability_events.py Fix capability events emitted from tools under prefix_tools() (#11863) 2026-10-29 18:05:39 +00:00
test_capability_file_understanding.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_capability_hooks.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_capability_image_generation.py Support OpenAI's gpt-image-2.6-flare and gpt-image-2.6-sunburst image models (#12820) 2026-11-09 16:35:07 +00:00
test_capability_model_fallback.py Add RetryOnModelErrors capability to retry the same model on transient model API errors (#11932) 2026-11-17 19:02:16 +00:00
test_capability_native_or_local.py Spell IPv6 hosts with - in the MCP capability's derived id (#13358) 2026-11-13 12:18:32 +00:00
test_capability_node_streaming.py Make wrap_* hooks enclose complete stage lifecycles (#7053) 2026-10-02 17:15:49 -06:00
test_capability_output_hooks.py Add DeferredToolRequests.validated_args so an approver sees the arguments a deferred tool call will run with (#13693) 2026-11-18 00:09:08 +00:00
test_capability_output_lifecycle.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_capability_parts.py [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
test_capability_pending_messages.py Keep a run paused when content is queued at a DeferredToolRequests or PendingModelResponse pause, and have BackgroundTools wait for its tasks there (#13054) 2026-11-18 14:27:10 +00:00
test_capability_process_event_stream.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_capability_retry_on_model_errors.py Add RetryOnModelErrors capability to retry the same model on transient model API errors (#11932) 2026-11-17 19:02:16 +00:00
test_capability_spec.py Support Gemini 4 Neon (gemini-4-neon) on GoogleModel (#13928) 2026-11-19 00:51:24 +00:00
test_capability_stream_teardown.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_capability_visit_and_replace.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_capability_wrapper_model.py Add a ModelFallback capability, a per-attempt prepare_model_request hook, and RetryModelRequest (#9348) 2026-10-28 21:27:01 +00:00
test_cassette_hooks.py Fall back to 'auto' or raise ModelRequestRejectedError for forced tool choice on OpenRouter's qwen/qwen3.8-flash, which rejects forcing while reasoning (#12262) 2026-11-17 18:05:39 +00:00
test_cassette_utils.py Make cassette test helpers handle cassetter cassettes and fail when there is nothing to check (#9084) 2026-09-29 10:23:19 +00:00
test_choices.py Deprecate RetryPromptPart in favor of ToolReturnPart(outcome='retried') and RetryFeedbackPart (#8094) 2026-10-21 14:05:57 -06:00
test_cli.py Default clai and clai web to openai:gpt-6.1-sol instead of openai:gpt-5 (#14042) 2026-11-19 22:38:31 +00:00
test_code_execution_files_vcr.py Re-record Claude VCR tests on 5-family models and drop tests recorded on retired Claude Sonnet 4 (#11232) 2026-10-26 18:31:21 +00:00
test_concurrency.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_conftest.py Decode compressed TypeSafe requests in test helpers (#10691) 2026-10-20 09:02:55 -05:00
test_conversation.py Add ConversationStore, which keeps a conversation as a log of messages stored once, and Conversation.revision to catch conflicting saves (#10658) 2026-10-31 00:04:15 +00:00
test_conversation_store.py Add title and metadata to ConversationRecord, set with ConversationStore.update() (#12311) 2026-11-18 11:42:57 +00:00
test_cost.py Keep every usage counter in RunUsage.__sub__, so durable runs keep one-hour cache writes and reasoning tokens, and declare cache_write_1h_tokens and output_reasoning_tokens (#10516) 2026-10-19 15:00:53 -06:00
test_cost_guards.py Rename pydantic-clai2 to pydantic-ai-pax, keeping a pydantic-clai2 shim (#13885) 2026-11-19 15:01:41 +00:00
test_custom_events.py Emit results of tool calls that finish together in call order, so Temporal replays hand event_stream_handler the recorded events (#12675) 2026-11-06 17:12:45 +00:00
test_deferred_validated_args.py Add DeferredToolRequests.validated_args so an approver sees the arguments a deferred tool call will run with (#13693) 2026-11-18 00:09:08 +00:00
test_deps.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_direct.py Target py311 in Ruff and modernize compatible syntax (#9854) 2026-10-06 07:07:09 -04:00
test_display.py Design out 15 CI test flakes and serialize IPythonKernel shutdowns (#12347) 2026-11-03 13:06:32 +00:00
test_docs_comparison_counts.py Check comparison page counts against their sources, and date and source each comparison page (#11907) 2026-10-30 22:35:55 +00:00
test_docs_model_aliases.py Add grok-4.7 to xAI known models and Grok reasoning profile (#9750) 2026-10-20 22:02:25 -05:00
test_docs_navigation.py Restore the pydantic-ai-harness base-install, pydantic-clai2 clipboard and docs-navigation CI checks lost in the monorepo move (#9655) 2026-10-02 11:25:41 -05:00
test_docs_parity.py Name models in the docs through tiered aliases defined in docs/model_aliases/aliases.json (#10250) 2026-10-14 20:48:29 -04:00
test_dynamic_system_prompt_changes.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_embeddings.py Fix instrumented embedding spans missing the embeddings attribute when include_content=True (#8295) 2026-11-04 01:22:33 +00:00
test_embeddings_error_categories.py Raise a status a retrying transport gave up on as the error category its body names, like ModelQuotaExceededError (#13485) 2026-11-14 22:09:27 +00:00
test_exa.py Deprecate the Exa search common tools in favor of the ExaSearch capability in Pydantic AI Harness (#6644) 2026-07-21 22:41:44 -05:00
test_examples.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_exceptions.py Raise an HTTP 408 from a provider as ModelTimeoutError (#13838) 2026-11-18 16:30:49 +00:00
test_external_events.py Fold RequestInput into HandleDeferredToolCalls, whose handler can take a resume token (#13285) 2026-11-13 00:37:29 +00:00
test_fallback_native_factory.py Move provider-specific native-tool fields to provider_settings (#7807) 2026-11-09 13:26:46 +00:00
test_format_as_xml.py Write format_as_xml mapping keys that aren't valid XML names to a key attribute (#10651) 2026-10-19 17:19:46 -06:00
test_framework_frames.py [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
test_framing.py Drop register_tag's late-registration UserWarning (#12450) 2026-11-13 20:36:19 +00:00
test_function_model_prefix.py Check the prompt-cache prefix of FunctionModel and TestModel conversations (#11252) 2026-10-27 18:55:56 +00:00
test_function_schema.py Add @durable_operation for capabilities and a public backend API for third-party durable execution engines (#6696) 2026-08-28 15:49:34 -06:00
test_function_signature.py Render keyword and non-identifier tool parameter and field names as valid Python in CodeMode and IPythonCodeMode (#12669) 2026-11-06 06:57:22 +00:00
test_gateway_model_name_suggestions.py Curate KnownModelName and the provider model-name literals to the models a user would pick (#12817) 2026-11-07 22:00:04 +00:00
test_gc_isolation.py Isolate each test's garbage collection and remove timing races from flaky tests (#12523) 2026-11-05 11:24:43 +00:00
test_history_append_only.py Add tests/capability_cases.py, one case per capability, with contracts that fail when a capability breaks under prefix_tools(), an unset or custom id, a repeated configuration, the run's usage limits or a function-supplied workspace (#14002) 2026-11-19 17:08:28 +00:00
test_history_invariants.py Add Hypothesis property tests for message history repair, serialization and provider request mapping (#11129) 2026-10-24 18:13:39 +00:00
test_history_processor.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_history_properties.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_http_client_defaults.py Accept transport= in create_async_httpx2_client() and give the httpx2 retry transports its pool limits (#11073) 2026-10-23 21:20:55 +00:00
test_http_client_lifecycle.py Close the AsyncInferenceClient that HuggingFaceProvider builds when the provider or agent exits (#10393) 2026-10-16 10:50:19 -06:00
test_http_client_timeouts.py Support Gemini 4 Argon (gemini-4-argon) on GoogleModel with long decode past the per-request output cap, and raise the Google providers' default timeout to 20 minutes (#10202) 2026-10-13 18:11:52 -05:00
test_httpx2_sdk_readiness.py Require mistralai>=3.1.0 and drop the legacy httpx import so MistralModel imports on fresh installs (#11549) 2026-10-27 13:40:38 +00:00
test_images.py Raise a status a retrying transport gave up on as the error category its body names, like ModelQuotaExceededError (#13485) 2026-11-14 22:09:27 +00:00
test_include_binary_content.py Add DeferredToolRequests.validated_args so an approver sees the arguments a deferred tool call will run with (#13693) 2026-11-18 00:09:08 +00:00
test_instruction_ids.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_instruction_updates.py [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
test_instrumentation_cache_health.py Store the SummarizingCompaction summary as a CompactionPart instead of a system prompt, and send provider-less CompactionParts to every model (#10573) 2026-10-26 19:10:20 +00:00
test_instrumentation_content_redaction.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_json_schema.py Write out $defs $refs under not, if/then/else and other keywords the inlining walk skips, instead of leaving them dangling (#14044) 2026-11-20 00:50:13 +00:00
test_json_schema_conformance.py Write out $defs $refs under not, if/then/else and other keywords the inlining walk skips, instead of leaving them dangling (#14044) 2026-11-20 00:50:13 +00:00
test_loaded_capability_instructions.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_local_workspace.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_local_workspace_capability.py Add per-path workspace authority with Workspace.authority_of (#12473) 2026-11-04 19:40:19 +00:00
test_logfire.py Skip serializing model request span attributes when the span is sampled out (#13813) 2026-11-18 11:14:44 +00:00
test_manifests.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_mcp.py Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
test_mcp_apps.py Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
test_messages.py Add DeferredToolRequests.validated_args so an approver sees the arguments a deferred tool call will run with (#13693) 2026-11-18 00:09:08 +00:00
test_missing_usage.py Close the Bedrock event stream when a BedrockConverseModel.request_stream() context exits, including on cancellation (#10900) 2026-10-21 14:15:42 -06:00
test_model_name_suggestions.py Curate KnownModelName and the provider model-name literals to the models a user would pick (#12817) 2026-11-07 22:00:04 +00:00
test_model_request_attempts.py Judge each attempt's model in FileUnderstanding, and let prepare_model_request persist history changes (#11802) 2026-10-29 23:08:30 +00:00
test_model_request_message_persistence.py Make wrap_* hooks enclose complete stage lifecycles (#7053) 2026-10-02 17:15:49 -06:00
test_model_response_model_id.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_model_settings_delta.py Record a thinking change after an unanswered ModelSettingsDeltaPart instead of replacing it, so UI streams and hook-rebuilt requests keep it (#11514) 2026-10-27 15:12:33 +00:00
test_native_output_schema.py feat: support template=False on PromptedOutput and NativeOutput to disable schema prompt (#4497) 2026-03-02 14:04:36 -06:00
test_native_tool_search_vcr.py Re-record Claude VCR tests on 5-family models and drop tests recorded on retired Claude Sonnet 4 (#11232) 2026-10-26 18:31:21 +00:00
test_nested_sync_agent.py Reject Agent.run_sync() from synchronous callbacks inside agent runs (#7277) 2026-08-19 11:09:20 +05:30
test_on_event.py Close inner event streams so a raising listener cancels in-flight tool calls (#8822) 2026-10-26 12:13:36 +00:00
test_otel_context_isolation.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_parts_manager.py Add ModelResponsePartsManager.handle_tool_call_delta_events and forward every stream's tool call deltas through it (#12302) 2026-11-03 03:09:12 +00:00
test_prices.py Keep every usage counter in RunUsage.__sub__, so durable runs keep one-hour cache writes and reasoning tokens, and declare cache_write_1h_tokens and output_reasoning_tokens (#10516) 2026-10-19 15:00:53 -06:00
test_public_interface_contracts.py Allow a CancellationToken fired from a workflow signal to cancel a Temporal durable run (#7210) 2026-11-11 23:41:45 +00:00
test_readonly_workspace.py Add workspaces: ctx.workspace gives tools one API for files and commands, on your machine or in a sandbox, with durable execution support (#6492) 2026-09-28 19:08:20 +05:30
test_realtime_examples.py Bound long claude-code: rate-limit retry waits in clai2 (#11674) 2026-11-01 14:11:02 +00:00
test_ref_sibling_wire_contract.py Re-record Claude VCR tests on 5-family models and drop tests recorded on retired Claude Sonnet 4 (#11232) 2026-10-26 18:31:21 +00:00
test_refactor_capture.py [complexity] Record what realtime sessions do above their connections in tests/refactor_capture.py (#13757) 2026-11-17 21:42:55 +00:00
test_removed_v1_names.py Name the V2 replacement when code imports a name V2 removed, like OpenAIModel or MCPServerStdio (#12035) 2026-11-02 22:38:11 +00:00
test_request_timeout.py Fix 16 CI flakes in the tests, so a runner stall no longer changes their outcome (#12933) 2026-11-16 08:58:53 +00:00
test_retry_feedback.py Add is_retry to find retries in message history and list the v2.60.0 RetryPromptPart change as breaking (#11404) 2026-11-13 02:37:29 +00:00
test_retrying_transport_error_categories.py Raise a status a retrying transport gave up on as the error category its body names, like ModelQuotaExceededError (#13485) 2026-11-14 22:09:27 +00:00
test_run_cancellation.py Fix 16 CI flakes in the tests, so a runner stall no longer changes their outcome (#12933) 2026-11-16 08:58:53 +00:00
test_run_context_context_window.py Read the context size of an Anthropic server-side tool loop from its last usage.iterations pass (#10363) 2026-10-22 16:27:08 +00:00
test_run_context_usage_limits.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_run_reference_cycles.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_run_result_serialization.py Raise UserError from StreamedRunResult.result when a run_stream() run stops while finishing (#13087) 2026-11-10 21:40:35 +00:00
test_run_timeout.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_sanitize_messages.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_server_state.py Stop continuing an OpenAI response without a history_digest through openai_previous_response_id (#12575) 2026-11-06 00:02:15 +00:00
test_settings.py [complexity] Split models/openai.py into a models/openai/ package (#13102) 2026-11-11 01:55:33 +00:00
test_skill_examples.py Complete the Python 3.11 documentation and tooling cleanup (#9891) 2026-10-06 08:43:27 -04:00
test_span_schema.py Add tests/manifests.py gates that fail on an unclassified message field, part kind, finish reason, entry-point parameter or span property (#13972) 2026-11-19 07:57:52 +00:00
test_spec.py Leave init=False evaluator fields out of Dataset files and schemas, and stop ClassVar annotations breaking to_file() (#13355) 2026-11-19 03:06:14 +00:00
test_special_tokens.py Add Otari as an OpenAI-compatible gateway provider (#13584) 2026-11-18 12:28:06 +00:00
test_ssrf.py Bracket an IPv6 literal in the Host header of SSRF-protected URL downloads on the default port (#13905) 2026-11-19 13:16:28 +00:00
test_streaming.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_streaming_errors.py Curate KnownModelName and the provider model-name literals to the models a user would pick (#12817) 2026-11-07 22:00:04 +00:00
test_sync_stream_loop_affinity.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_system_prompt_part_metadata.py [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
test_tavily.py Rehaul Tavily search tool (#4158) 2026-03-06 15:10:46 -06:00
test_template.py Bump anyio dev floor to 4.11 and run async tests via anyio_mode = "auto" (#8874) 2026-09-28 08:45:29 +00:00
test_tenacity.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_thinking.py Warn with DeprecatedModelWarning when a request targets a model Anthropic or OpenAI has deprecated (#14038) 2026-11-20 01:09:12 +00:00
test_thinking_max_effort.py Add 'max' to unified thinking effort levels (#10920) 2026-10-23 01:06:59 +00:00
test_thinking_native_tools.py Replace pytest-recording with cassetter for cassette recording (#8893) 2026-09-28 16:50:21 +02:00
test_thinking_part.py Improve CI performance with Depot runners and inline_snapshot bypass (#4346) 2026-02-17 23:22:19 +00:00
test_thinking_placement.py Skip an empty ThinkingPart instead of sending bare think tags when replaying assistant history to OpenAI and Bedrock (#13396) 2026-11-16 01:20:26 +00:00
test_thinking_wire_contract.py Support Gemini 4 Neon (gemini-4-neon) on GoogleModel (#13928) 2026-11-19 00:51:24 +00:00
test_tool_availability.py Keep history before a CompactionPart with an empty summary instead of treating it as a compaction boundary (#11368) 2026-10-26 19:10:01 +00:00
test_tool_availability_portability.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_tool_failed_wire.py [voice-authority] Note text that looks like an application frame in user and tool content instead of escaping it (#11813) 2026-11-12 01:07:45 +00:00
test_tool_population_diff.py Lock the workspace on FastMCP 4 and test FastMCP 3 in its own CI job (#13721) 2026-11-18 11:52:40 +00:00
test_tool_search.py Add ToolBridge, which keeps the tool list fixed behind tool_search, tool_describe and tool_call so the prompt cache holds for large or changing tool sets (#13744) 2026-11-18 15:38:53 +00:00
test_tools.py Pause again when a deferred pause whose step also ran other tools is resumed without deferred_tool_results (#13051) 2026-11-18 12:56:18 +00:00
test_toolsets.py Fix 16 CI flakes in the tests, so a runner stall no longer changes their outcome (#12933) 2026-11-16 08:58:53 +00:00
test_transcript_repair.py Keep a run paused when content is queued at a DeferredToolRequests or PendingModelResponse pause, and have BackgroundTools wait for its tasks there (#13054) 2026-11-18 14:27:10 +00:00
test_typed_tool_parts.py Deprecate RetryPromptPart in favor of ToolReturnPart(outcome='retried') and RetryFeedbackPart (#8094) 2026-10-21 14:05:57 -06:00
test_typed_tool_payload_roundtrip.py Preserve extra keys in tool_search and load_capability message history (#7933) 2026-11-03 18:08:56 +00:00
test_ui.py Pause again when a deferred pause whose step also ran other tools is resumed without deferred_tool_results (#13051) 2026-11-18 12:56:18 +00:00
test_ui_web.py Fix 16 CI flakes in the tests, so a runner stall no longer changes their outcome (#12933) 2026-11-16 08:58:53 +00:00
test_unless_tool_kind.py Check the prompt-cache prefix of FunctionModel and TestModel conversations (#11252) 2026-10-27 18:55:56 +00:00
test_unreadable_tool_files.py Send a tool-returned video on OpenRouter only to models whose profile reads video, so the rest get a note instead of a 404 (#13219) 2026-11-17 21:26:14 +00:00
test_usage_attribution.py Report each agent run's own usage on its span (#8456) 2026-09-17 20:26:32 -06:00
test_usage_extraction.py Warn on unexpected RequestUsage.extract() failures (#8564) 2026-09-29 16:37:36 -05:00
test_usage_limits.py Make TestModel streamed usage match run() for tool calls and text (#11877) 2026-11-16 04:15:02 +00:00
test_utils.py Fail CI when a change adds a real-clock wait to a test or an asyncio primitive to backend-neutral code (#13969) 2026-11-19 13:17:10 +00:00
test_uuid.py Make run ID time-sortable; add agent name and run ID span attrs to all agent run child spans (#4876) 2026-03-30 16:37:58 -06:00
test_validation_context.py Add ModelResponse.model_id recording the model the agent sent each request to (#11807) 2026-10-29 22:50:50 +00:00
test_vercel_ai.py Handle deeply nested JSON and oversized integers like invalid JSON in AGUIAdapter, VercelAIAdapter and ArgumentCorrectness (#13952) 2026-11-19 06:17:13 +00:00
test_web_fetch.py [complexity] Pin the HTML conversion estimate's charges and budget checks in tests/test_web_fetch.py (#14016) 2026-11-19 17:47:18 +00:00
test_windows_workspace.py Start WindowsWorkspaceBackend PowerShell scripts from a temporary file instead of -EncodedCommand (#14028) 2026-11-19 19:17:01 +00:00
test_workspace.py Skip only the POSIX-only tests in tests/test_workspace.py on non-POSIX hosts (#12559) 2026-11-16 03:46:46 +00:00
test_workspace_conformance.py Fix 16 CI flakes in the tests, so a runner stall no longer changes their outcome (#12933) 2026-11-16 08:58:53 +00:00
test_wrapped_tool_retries.py Check the prompt-cache prefix of FunctionModel and TestModel conversations (#11252) 2026-10-27 18:55:56 +00:00
typed_agent.py Use explicit output_type overloads for Agent.from_spec and Agent.from_file (#10886) 2026-10-21 14:21:51 -06:00
typed_capability_parts.py [voice-authority] Add CapabilityPart, a request part for what a capability tells the model, rendered by the framework before any model sees it (#11935) 2026-11-17 18:29:35 +00:00
typed_deps.py Target py311 in Ruff and modernize compatible syntax (#9854) 2026-10-06 07:07:09 -04:00
typed_graph.py Target py311 in Ruff and modernize compatible syntax (#9854) 2026-10-06 07:07:09 -04:00
typed_output.py Accept Annotated, Literal and union output_types as PEP 747 TypeForms, and bump pyright to 1.1.414 (#8690) 2026-09-23 17:23:06 -06:00
typed_tool_kinds.py Let any module define a ToolKind with typed tool parts, and keep unknown kinds loadable (#9710) 2026-10-19 16:56:44 -06:00
workspace_fakes.py Add workspaces: ctx.workspace gives tools one API for files and commands, on your machine or in a sandbox, with durable execution support (#6492) 2026-09-28 19:08:20 +05:30
wrapped_retry_toolsets.py Keep available_tool_names and active_capability_ids on run context copies inside Temporal activities and Render child tasks (#10280) 2026-10-15 15:36:47 -05:00