Add option for structured JSON output - #16
Conversation
|
@vietle-bh just to let you know, I have provided a |
1 similar comment
|
@vietle-bh just to let you know, I have provided a |
pawelbaran
left a comment
There was a problem hiding this comment.
Reviewed and tested, happy to approve 👍
|
@BHoMBot check required |
|
@pawelbaran to confirm, the following actions are now queued:
There are 61 requests in the queue ahead of you. |
|
@vietle-bh just to let you know, I have provided a |
1 similar comment
|
@vietle-bh just to let you know, I have provided a |
|
The check |
Issues addressed by this PR
Closes #15
This pull request adds support for structured output using JSON Schema to the prompt execution flow. The main changes introduce new configuration options for specifying a response format and update the request logic to include a JSON Schema when provided.
Structured output support:
OpenAI_oM/Config/PromptExecutionConfig.cs: Added new configuration propertiesResponseFormatNameandResponseFormatJsonSchemato allow specifying a named JSON schema for expected responses.Request logic updates:
OpenAI_Adapter/AdapterActions/Execute.cs: Updated the prompt request logic to include aresponse_formatparameter with the specified JSON schema whenResponseFormatJsonSchemais set; otherwise, the request is sent as before.Default method parameter values are included to ensure existing functionality is maintained.
Test files
Changelog
Additional comments