wenjin272 commented on issue #1014:
URL: https://github.com/apache/flink-agents/issues/1014#issuecomment-5313920932

   Thanks for reporting this @Zhuoxi2000. I confirmed the issue on the latest 
`main`. When a schema has properties but no `required` field, `required` is 
`null` and `required.contains(paramName)` throws an NPE. Treating a missing 
`required` field as an empty list in `convertToOllamaTools` is the appropriate 
fix, since omitting it is valid JSON Schema.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to