-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle collections as return types or error #943
Comments
Are you using the latest version? |
latest i could find in maven central at least. |
Interesting, I remember fixing some related issues recently. I'll have a look tomorrow |
So indeed this is an issue with how upstream LangChain4j creates the json schema |
@gsmet has run into similar so we probably need to rethink the whole approach |
It is also related to #671 |
FWIW, using
|
if one use List, Set, Map etc. as return types the ask to genAI is:
You must answer strictly in the following JSON format: {\n}
- it should have the the json structure.This fails:
but if change it to the following it works:
I would think it should be possible to handle - and if not, throw build error it needs to be a non-collection java type?
The text was updated successfully, but these errors were encountered: