'LLM_CHAT_COMPLETE' accepts 'outputSchema', but setting it fails with:
Cannot invoke "com.netflix.conductor.common.metadata.SchemaDef.getData()" because "schema" is null
In 'ai/src/main/java/org/conductoross/conductor/ai/LLMHelper.java' line 297-298, the code checks
'getOutputSchema()' but passes 'getInputSchema()' to 'validateJsonSchema.' Lines 258-265 have the
same problem.
Workaround: set 'inputSchema' to the same value as 'outputSchema' Then validation works.
I've pushed a branch with the fix and a regression test: https://github.com/lokudadalla/conductor/tree/fix/llm-output-schema-validation
Happy to open a PR if this approach looks right.
'LLM_CHAT_COMPLETE' accepts 'outputSchema', but setting it fails with:
In 'ai/src/main/java/org/conductoross/conductor/ai/LLMHelper.java' line 297-298, the code checks
'getOutputSchema()' but passes 'getInputSchema()' to 'validateJsonSchema.' Lines 258-265 have the
same problem.
Workaround: set 'inputSchema' to the same value as 'outputSchema' Then validation works.
I've pushed a branch with the fix and a regression test: https://github.com/lokudadalla/conductor/tree/fix/llm-output-schema-validation
Happy to open a PR if this approach looks right.