MCPcopy
hub / github.com/flatiron/prompt / grab

Function grab

test/prompt-test.js:20–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19// A helper to pass fragments of our schema into prompt as full schemas.
20function 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

Callers 1

prompt-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…