Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.
Python aiburrchatbot-frameworkdagsgenerative-aigraphshacktoberfestllmopsllmsmlopspersistent-data-structurestate-machinestate-managementvisibility
Copies pydantic model config in subset model for pydantic integration
elijahbenizzy57cd247a9cc5
diff --git a/burr/integrations/pydantic.py b/burr/integrations/pydantic.pyindex ebe8a63a..24d366f6 100644--- a/burr/integrations/pydantic.py+++ b/burr/integrations/pydantic.py@@ -77,7 +77,9 @@ def subset_model(if annotation is not None:new_field_info.annotation = Optional[annotation] # type: ignorenew_fields[name] = (new_field_info.annotation, new_field_info)- return pydantic.create_model(model.__name__ + model_name_suffix, **new_fields) # type: ignore+ return pydantic.create_model(+ model.__name__ + model_name_suffix, __config__=model.model_config, **new_fields+ ) # type: ignoredef merge_to_state(model: pydantic.BaseModel, write_keys: List[str], state: State) -> State: