https://promptfoo.dev/ logo
running custom assertions through the node module
# ❓|questions
a
Hey, is it possible for someone to run custom assertions through the node module? I couldn't find documentation about it so I figure might as well ask here.
i
You mean like providing an assertion as a function rather than one of the built ins?
a
Yes, I want to define custom assertions in a separate python file and using them with the node module
i
ah got it, that's supported
you should be able to just specify the path
file://...py
even with the node package
a
Ok I will try it out!
Ok I managed to get this to work, thank you!
2 Views