by montyanderson on 6/15/25, 9:33 PM with 11 comments
by thih9 on 6/18/25, 8:02 AM
`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/73606e826d6e5b0...
by voidUpdate on 6/18/25, 10:44 AM
by helloplanets on 6/18/25, 6:42 AM
> color_temp: { type: Type.STRING, enum: ['daylight', 'cool', 'warm'], description: 'Color temperature of the light fixture, which can be `daylight`, `cool` or `warm`.', }
https://ai.google.dev/gemini-api/docs/function-calling?examp...
by marcus_holmes on 6/18/25, 4:03 AM
In the case of the male names, if I include a gender-neutral name like "Sam" does that include it because it is a male name, or exclude it because it is a female name? Can I set this to be inclusive or exclusive?
Looks interesting, though. Nice work.
by jollyllama on 6/18/25, 12:57 PM
by supermatt on 6/18/25, 6:48 AM
It can still hallucinate a response that is defined in the filter.
E.g if you have a filter with names of capital cities [“London”, “Paris”, “Madrid”] , and you ask “What is the capital of France” it could respond “Madrid”