Python generics for State & FwdProps; poetry -> uv #306
+404
−374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This started with just adding generics for state or forwarded_props related attributes, but I also changed
poetry
in favour ofuv
. I realize this might be overreaching a little bit, so let me know if you want this rolled back.Inspired by the generics used in
pydantic-ai
, now e.g. RunAgentInput is as follows:With generic types:
This makes it integrate better with type checking in applications / libraries that use these types.
Please raise any worries or thoughts if you have them.