Simplify context models #245
Replies: 1 comment
-
Mostly done with this now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please check for similar discussions first
Description
ContextBase
to be leaves. Don't touch their context, because it represents the actual context used to construct that instanceBaseModel
are also leavesmodel_validate
pathContextBase
propagates context,ContextModel
(ContextStore
?) also saves context as an instance variableContextShare
unifies context when possible, but not for instances already created? And warns?ContextShare
should represent this, and maybe it actually warns on mismatched inner contexts (due to bottom-up model construction).ContextRoot
. Note that root models are incompatible with storing context unless they have aTypedDict
or similar.ContextBase
could have a simple config to avoid passing context down, or even operate in "share" mode? MaybeContextBase
ANDContextStore
can config to run in isolate/share modes.Beta Was this translation helpful? Give feedback.
All reactions