Is your feature request related to a problem? Please describe.
I want to validate cypher queries when the LLM generates parameters, but I want it to happen in the retry loop, if possible. The fact that you have async validator decorators indicates that you may be planning for async validation, but the code is not really connected to anything (apparently dead code).
Describe the solution you'd like
I would like to be able to use the async validator decorators and have instructor call them, and have them work for async functions.
Describe alternatives you've considered
I am trying manual validation, but that makes me accept bad input from the LLM and proceeding with it in some way, then only sending a message back with an error to try again, except it's disconnected from the original request. I also tried pydantic-async-validation, but it doesn't work, either. Neither does just putting the regular validator decorators on an async function.
Additional context
These seem to be the same validators in pydantic-async-validation, and if instructor worked with those, that would be fine, as well.
Is your feature request related to a problem? Please describe.
I want to validate cypher queries when the LLM generates parameters, but I want it to happen in the retry loop, if possible. The fact that you have async validator decorators indicates that you may be planning for async validation, but the code is not really connected to anything (apparently dead code).
Describe the solution you'd like
I would like to be able to use the async validator decorators and have instructor call them, and have them work for async functions.
Describe alternatives you've considered
I am trying manual validation, but that makes me accept bad input from the LLM and proceeding with it in some way, then only sending a message back with an error to try again, except it's disconnected from the original request. I also tried pydantic-async-validation, but it doesn't work, either. Neither does just putting the regular validator decorators on an async function.
Additional context
These seem to be the same validators in pydantic-async-validation, and if instructor worked with those, that would be fine, as well.