pydantic-ai-slim breaking changes
pydantic-ai-slim 2.67.0 (November 11, 2026) is its newest release with breaking changes, 47 of them. The first: Removed KnownModelName. Every breaking API change we have recorded in pydantic-ai-slim on PyPI: 47 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.79.0, released December 4, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
pydantic-ai-slim 2.67.0 breaking changes
- Removed
KnownModelName
Model-name literals were curated down to the models users would pick, so some previously listed names are no longer in the literals. github.com - Removed
pydantic_ai.models.bedrock.is_multi_modal_content
pydantic_ai.models.bedrock.is_multi_modal_content was removed in pydantic-ai-slim 2.67.0 pypi.org - Renamed
Provider-specific fields on native tools now live under provider_settings. Update code that set them directly on the tool. github.com - Behavior changed
The <system> voice tag is now announced only once a conversation needs it, controlled by the new framing_announcement setting. github.com - Behavior changed
When validation requests approval for an external tool, UserError is now raised. Handle this error or avoid requesting approval for external tools. github.com - Behavior changed
Documents with any media type that mimetypes recognises are sent, with the format taken from it. Check code that relied on the previous set of accepted types. github.com - Behavior changed
ArtifactScanner
ArtifactScanner now strips default-ignorable characters before matching phrases and flags hidden variation selectors, so scan results can differ. github.com - Behavior changed
CapabilityCreation
A CapabilityCreation run is now refused when its directory is below 'operator' authority. Check that the directory has sufficient authority. github.com - Behavior changed
CodeMode
CodeMode now rejects tools whose names match Python builtins, because the sandbox called the builtin instead. Rename such tools. github.com - Behavior changed
ModelProfile.may_tokenize_special_tokens_in_content
Special tokens in message content are broken on open-model routes and restored in model output. Check code that depends on the old tokenization. github.com - Behavior changed
openai_previous_response_id
A response without a history_digest is no longer continued through openai_previous_response_id. Pass the full history instead. github.com - Behavior changed
RepoContext
Nested instruction files are now loaded by default, so the agent sees more instructions. Check which files RepoContext now picks up. github.com - Behavior changed
StreamedRunResult.result
Accessing StreamedRunResult.result now raises UserError if a run_stream() run stops while finishing. Handle this error in code that reads the result. github.com - Default changed
RepoContext
Inlined nested instructions are now capped at 32,000 characters per conversation unless you set nested_max_chars. github.com - Signature changed
pydantic_ai.AdvisorTool.__init__
Was def __init__(self, *, kind: str = 'advisor', optional: bool = False, model: AdvisorModelName, max_uses: int | None = None, max_tokens: int | None = None, caching: Literal['5m', '1h'] | None = None) -> None; now def __init__(self, *... pypi.org - Signature changed
pydantic_ai.AdvisorTool.caching
Was caching: Literal['5m', '1h'] | None; now caching: Annotated[Literal['5m', '1h'] | None, _moved_to_provider_settings(anthropic, caching)]. pypi.org - Signature changed
pydantic_ai.agent.abstract.AgentStream.__init__
Was def __init__(self, *, _raw_stream_response: models.StreamedResponse, _output_schema: OutputSchema[OutputDataT], _model_request_parameters: models.ModelRequestParameters, _output_validators: list[OutputValidator[AgentDepsT... pypi.org - Signature changed
pydantic_ai.capabilities.image_generation.WrapperModel.__init__
Was def __init__(self, wrapped: Model | KnownModelName); now def __init__(self, wrapped: Model | KnownModelName | str). pypi.org - Signature changed
pydantic_ai.capabilities.ImageGeneration.__init__
Was def __init__(self, *, native: ImageGenerationTool | Callable[[RunContext[AgentDepsT]], Awaitable[ImageGenerationTool | None] | ImageGenerationTool | None] | bool = True, local: ImageGenerator | Tool[AgentDepsT] | Callable[..., Any] |... pypi.org - Signature changed
pydantic_ai.capabilities.ImageGeneration.from_spec
Was @classmethod def from_spec(cls, *, native: ImageGenerationTool | bool = True, local: Literal[False] | None = None, fallback_subagent_model: KnownModelName | str | None = None, fallback_image_model: str | None = None, action... pypi.org - Signature changed
pydantic_ai.capabilities.ImageGeneration.quality
Was quality: Literal['low', 'medium', 'high', 'auto'] | None; now quality: ImageQuality | None. pypi.org - Signature changed
pydantic_ai.capabilities.LocalWorkspace.__init__
Was def __init__(self, working_dir: str | Path, *, read_only: bool = False, authority: Authority = 'operator', env: Mapping[str, str] | None = None, id: str | None = 'local_workspace') -> None; now def __init__(self, working_dir: str |... pypi.org - Signature changed
pydantic_ai.ConcurrencyLimitedModel.__init__
Was def __init__(self, wrapped: Model | KnownModelName, limiter: int | ConcurrencyLimit | AbstractConcurrencyLimiter); now def __init__(self, wrapped: Model | KnownModelName | str, limiter: int | ConcurrencyLimit |... pypi.org - Signature changed
pydantic_ai.DocumentUrl.format
Was format: DocumentFormat; now format: str. pypi.org - Signature changed
pydantic_ai.FileSearchTool.__init__
Was def __init__(self, *, kind: str = 'file_search', optional: bool = False, file_store_ids: Sequence[str], max_num_results: int | None = None, instructions: str | None = None, retrieval_mode: Literal['hybrid', 'semantic', 'keyword'] |... pypi.org - Signature changed
pydantic_ai.FileSearchTool.instructions
Was instructions: str | None; now instructions: Annotated[str | None, _moved_to_provider_settings(xai, instructions)]. pypi.org - Signature changed
pydantic_ai.FileSearchTool.retrieval_mode
Was retrieval_mode: Literal['hybrid', 'semantic', 'keyword'] | None; now retrieval_mode: Annotated[Literal['hybrid', 'semantic', 'keyword'] | None, _moved_to_provider_settings(xai, retrieval_mode)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.__init__
Was def __init__(self, *, kind: str = 'image_generation', optional: bool = False, action: Literal['generate', 'edit', 'auto'] = 'auto', background: Literal['transparent', 'opaque', 'auto'] = 'auto', input_fidelity: Literal['high', 'low'] |... pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.action
Was action: Literal['generate', 'edit', 'auto']; now action: Annotated[Literal['generate', 'edit', 'auto'], _moved_to_provider_settings(openai, action)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.background
Was background: Literal['transparent', 'opaque', 'auto']; now background: Annotated[Literal['transparent', 'opaque', 'auto'], _moved_to_provider_settings(openai, background)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.input_fidelity
Was input_fidelity: Literal['high', 'low'] | None; now input_fidelity: Annotated[Literal['high', 'low'] | None, _moved_to_provider_settings(openai, input_fidelity)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.model
Was model: ImageGenerationModelName | None; now model: Annotated[ImageGenerationModelName | None, _moved_to_provider_settings(openai, model)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.moderation
Was moderation: Literal['auto', 'low']; now moderation: Annotated[Literal['auto', 'low'], _moved_to_provider_settings(openai, moderation)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.partial_images
Was partial_images: int; now partial_images: Annotated[int, _moved_to_provider_settings(openai, partial_images)]. pypi.org - Signature changed
pydantic_ai.ImageGenerationTool.quality
Was quality: Literal['low', 'medium', 'high', 'auto']; now quality: Annotated[ImageQuality, _moved_to_provider_settings(openai, quality)]. pypi.org - Signature changed
pydantic_ai.images.openai.OpenAIImageGenerationSettings.openai_quality
Was openai_quality: Literal['low', 'medium', 'high', 'auto']; now openai_quality: ImageQuality. pypi.org - Signature changed
pydantic_ai.limit_model_concurrency
Was def limit_model_concurrency(model: Model | KnownModelName, limiter: AnyConcurrencyLimit) -> Model; now def limit_model_concurrency(model: Model | KnownModelName | str, limiter: AnyConcurrencyLimit) -> Model. pypi.org - Signature changed
pydantic_ai.models.bedrock_mantle.OpenAIChatModelSettings.openai_service_tier
Was openai_service_tier: Literal['auto', 'default', 'flex', 'priority']; now openai_service_tier: responses.ServiceTier. pypi.org - Signature changed
pydantic_ai.models.instrumented.InstrumentedModel.__init__
Was def __init__(self, wrapped: Model | KnownModelName, options: InstrumentationSettings | None = None) -> None; now def __init__(self, wrapped: Model | KnownModelName | str, options: InstrumentationSettings | None = None) -> None. pypi.org - Signature changed
pydantic_ai.models.LoadedInstructionValues.__init__
Was def __init__(self, values: dict[str, str | None] = dict[str, str | None](), _loads: LoadExchanges = LoadExchanges(), _changed: set[str] = set[str]()) -> None; now def __init__(self, values: dict[str, str | None] = dict[str, str |... pypi.org - Signature changed
pydantic_ai.models.LoadedInstructionValues.observe
Was def observe(self, part: ModelRequestPart | ModelResponsePart) -> None; now def observe(self, part: ModelRequestPart | ModelResponsePart) -> list[str]. pypi.org - Signature changed
pydantic_ai.models.ModelRequestParameters.__init__
Was def __init__(self, *, function_tools: list[ToolDefinition] = list[ToolDefinition](), native_tools: list[AbstractNativeTool] = list[AbstractNativeTool](), _telemetry_mcp_url_ids: Annotated[set[str] | None, Field(exclude=True)] = None... pypi.org - Signature changed
pydantic_ai.WebFetchTool.__init__
Was def __init__(self, *, kind: str = 'web_fetch', optional: bool = False, max_uses: int | None = None, allowed_domains: list[str] | None = None, blocked_domains: list[str] | None = None, enable_citations: bool = False, max_content_tokens... pypi.org - Signature changed
pydantic_ai.WebFetchTool.enable_citations
Was enable_citations: bool; now enable_citations: Annotated[bool, _moved_to_provider_settings(anthropic, enable_citations)]. pypi.org - Signature changed
pydantic_ai.WebFetchTool.max_content_tokens
Was max_content_tokens: int | None; now max_content_tokens: Annotated[int | None, _moved_to_provider_settings(anthropic, max_content_tokens)]. pypi.org - Signature changed
pydantic_ai.WebSearchTool.__init__
Was def __init__(self, *, kind: str = 'web_search', optional: bool = False, search_context_size: Literal['low', 'medium', 'high'] = 'medium', user_location: WebSearchUserLocation | None = None, blocked_domains: list[str] | None = None... pypi.org - Signature changed
pydantic_ai.workspaces.AuthorityWorkspace.__init__
Was def __init__(self, wrapped: Workspace, *, authority: Authority); now def __init__(self, wrapped: Workspace, *, authority: Authority, path_authority: Mapping[str, Authority] | None = None). pypi.org
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.