https://promptfoo.dev/ logo
How to use cost metrics with Agents/Chain in pytho...
# ❓|questions
m
I mostly use python as a provider to e2e test my agent, but seem like metrics cost not supported atm or I am currently doing something wrong https://cdn.discordapp.com/attachments/1230627060246904852/1230627060511408180/Screenshot_2024-04-19_at_04.12.28.png?ex=663401c3&is=66218cc3&hm=0ca9c307c3209d7e840d2ddcc4ab6670940ace2548a43c65d985ae9e96ab60e4&
i
Your custom provider will have to return a
cost
field (float)