()
| 18 | |
| 19 | // A helper to pass fragments of our schema into prompt as full schemas. |
| 20 | function grab () { |
| 21 | var names = [].slice.call(arguments), |
| 22 | complete = { schema: {} }; |
| 23 | |
| 24 | names.forEach(function (name) { |
| 25 | complete.path = [name], |
| 26 | complete.schema = schema.properties[name]; |
| 27 | }); |
| 28 | return complete; |
| 29 | }; |
| 30 | |
| 31 | // |
| 32 | // Reset the prompt for mock testing |
no outgoing calls
no test coverage detected
searching dependent graphs…