-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expose .messages
, .toolsets
types in top-level pydantic_ai
to aid IDE auto-import
#2957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@DouweM can you take a first look before I proceed with the other modules? Pulled type into top-level module, updated imports, updated examples. Excluded: 2 deprecated types, these are still only importable from |
@moritzwilksch Looks great! Can you replace |
will do! do you prefer separate PRs for the other modules or should I continue here? |
@moritzwilksch I'm fine with you continuing in this PR |
c866f41
to
383cb6c
Compare
pydantic_ai.messages
types in top-level pydantic_ai
.messages
, .providers
, .toolsets
, .direct
types in top-level pydantic_ai
.messages
, .providers
, .toolsets
, .direct
types in top-level pydantic_ai
.messages
, .toolsets
, .direct
types in top-level pydantic_ai
@moritzwilksch Thanks Moritz! Can your revert the changes for |
Done! |
.messages
, .toolsets
, .direct
types in top-level pydantic_ai
.messages
, .toolsets
types in top-level pydantic_ai
.messages
, .toolsets
types in top-level pydantic_ai
.messages
, .toolsets
types in top-level pydantic_ai
to aid IDE auto-import
closes #2931
Expose all types from
messages.py
inpydantic_ai
, except for the two deprecated ones to prevent a circular import.