PrefectHQ / ControlFlow

🦾 Take control of your AI agents
https://controlflow.ai
Apache License 2.0
746 stars 53 forks source link

Fix issue with classifying complex labels #276

Closed jlowin closed 2 months ago

jlowin commented 2 months ago

The classifier was recovering the serializable representation of the labels, rather than the actual label objects. For simple cases this didn't matter, but for Pydantic models it meant that classification yielded a dict, not a hydrated model.