(paramsFromAI: Params, schema: OpenAPIV3_1.SchemaObject)
| 72 | } |
| 73 | |
| 74 | export function fillNoChoiceRequiredParams< |
| 75 | Params extends Record<string, unknown>, |
| 76 | Output extends Params, |
| 77 | >(paramsFromAI: Params, schema: OpenAPIV3_1.SchemaObject): Output { |
| 78 | /** Combines the parameters from the AI with parameters where no |
| 79 | * choice is required by the AI. **/ |
| 80 | const noChoiceParams = getFilledNoChoiceRequiredFields(schema); |
| 81 | return combineParams(paramsFromAI, noChoiceParams); |
| 82 | } |
| 83 | |
| 84 | interface Params { |
| 85 | [key: string | number]: any; |
no test coverage detected