Skip to content

Wrong documentation of Custom Retry Logic? #3275

@yf-yang

Description

@yf-yang

Initial Checks

Description

https://ai.pydantic.dev/retries/#custom-retry-logic
I directly copied the code and type checker complains. Seems the RetryConfig argument should be retry=retry_if_exception(custom_retry_condition).

Example Code

Python, Pydantic AI & LLM client version

Not applicable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions