3 ms·
Note that this is a very simple library and not very efficient. E.g. for the code that filters an array, it would run N prompts[1]: `You are a filter agent
by thih9 1y ago
Note that this is a very simple library and not very efficient. E.g. for the code that filters an array, it would run N prompts[1]:
`You are a filter agent.\nYour job is to return whether an item matches the criteria: ${criteria}\nRespond only with true or false.`
It's a cool demo, but I wouldn't use that in production; IMO having that code in a separate library offers little benefit and increases the risk of misuse.
[1]: https://github.com/montyanderson/incant/blob/73606e826d6e5b05e6b18a73f63db202e8b97efa/mod.ts#L80-L93 https://github.com/montyanderson/incant/blob/73606e826d6e5b0...