Find answers from the community

Updated 8 months ago

Do FnComponents auto typecast based on

Do FnComponents auto typecast based on func param types? If not is there a plan or roadmap to include this with pydantic or any other way? Would love to explore/contribute to this if possible @Logan M
Attachment
image.png
L
A
2 comments
they do not auto-typecast

You could do that yourself in your function

Or, I thiiiink you can use pydantic Fields in function definitions, unsure
Ooo okay will try out something with pydantic once i see my typecasts fail, maybe we could explore how https://github.com/jxnl/instructor does it πŸ€”
Add a reply
Sign up and join the conversation on Discord