pull/20912/head
Bagatur 2 weeks ago
parent 9b7aedcb96
commit 3fa1219d2c

@ -166,7 +166,6 @@ def create_schema_from_function(
del inferred_model.__fields__["run_manager"]
if "callbacks" in inferred_model.__fields__:
del inferred_model.__fields__["callbacks"]
breakpoint()
# Pydantic adds placeholder virtual fields we need to strip
valid_properties = _get_filtered_args(inferred_model, func)
# TODO: we could pass through additional metadata here

@ -939,7 +939,7 @@ def test_create_schema_from_function_with_descriptions() -> None:
Args:
bar: int
"""
raise NotImplementedError()
raise NotImplementedError
schema = create_schema_from_function("foo_annotated", foo_annotated)
assert schema.schema() == {

Loading…
Cancel
Save