wenjin272 commented on issue #1441: URL: https://github.com/apache/flink-agents/issues/1441#issuecomment-7123814492
Thanks for the detailed report. I verified the type-list alternative you mentioned: converting the nullable `anyOf` to `"type": ["integer", "null"]`. With ollama-python 0.6.1 and Ollama 0.40.15: - The SDK preserves the type list in the outgoing request. - Ollama's `_debug_render_only` output confirms that it survives template rendering for Qwen 3 1.7B, Qwen 2.5 7B, and Qwen 3.5 4B. - All three models successfully handled an integer value, explicit `null`, and an omitted argument. The returned arguments also passed Flink Agents' validation and tool execution. Given these results, I'd prefer the type-list approach, since it preserves the nullable semantics. Could you use this approach in the Python Ollama connection, keeping the original tool metadata unchanged, and add a regression test that checks the schema after SDK serialization? -- 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]
