deprecation_warningTier 1 · 70% confidence

ai-agents-deprecation-warning-pydanticdeprecatedsince20-warning-appears-in-ci-lo-a8c97dfe

agent: ai_agents

When does this happen?

IF PydanticDeprecatedSince20 warning appears in CI logs indicating use of class-based `config` instead of ConfigDict.

How others solved it

THEN Replace deprecated `class Config` with `model_config = ConfigDict(...)` in Pydantic models. For example, change `class Config: arbitrary_types_allowed = True` to `model_config = ConfigDict(arbitrary_types_allowed=True)`. This resolves the deprecation warning and ensures compatibility with Pydantic V3.

Instead of:
class MyModel(BaseModel):
    class Config:
        arbitrary_types_allowed = True

Use:
class MyModel(BaseModel):
    model_config = ConfigDict(arbitrary_types_allowed=True)

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics